# ocp-spec-tools **Repository Path**: mirrors_opencomputeproject/ocp-spec-tools ## Basic Information - **Project Name**: ocp-spec-tools - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-20 - **Last Updated**: 2026-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # OCP Specification Tools This repo contains tooling for rendering OCP specifications from Markdown. ## TCG Pandoc The scripts in this repository rely on TCG's [Pandoc](https://github.com/TrustedComputingGroup/pandoc) tooling. See the [Guide](https://github.com/TrustedComputingGroup/pandoc/blob/main/guide.tcg) (in PDF form on the TCG Pandoc [Releases](https://github.com/TrustedComputingGroup/pandoc/releases) page). ## How to integrate with Github Pages This repo provides a [reusable Github workflow](.github/workflows/render.yml) for rendering specifications to PDF or HTML and publishing them to Github Pages. See [GITHUB_PAGES.md](GITHUB_PAGES.md) for details. ## How to run locally This tooling requires Docker to be installed before it can run. - On a Windows platform, this tooling can be run using Windows Linux Subsystem (WLS) and Docker. The installation flow is described in [INSTALL_WINDOWS.md](INSTALL_WINDOWS.md). - On an Ubuntu platform, Docker can be installed by following [this](https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository) guide. Once Docker has been installed, the following commands will install the OCP spec rendering tooling. To run these commands on Windows, open the WLS app. This will launch a Command Window for Ubuntu, with the prompt at the home directory (~). ```sh # One-time setup. $ git clone https://github.com/opencomputeproject/ocp-spec-tools.git $ ocp-spec-tools/docker-pull.sh $ echo alias ocp_render=\"$(realpath ocp-spec-tools/docker-run.sh)\" >> ~/.bashrc && source ~/.bashrc # Demonstrating use with the sample specification. # Must run from the directory containing the input file. $ cd ocp-spec-tools/sample-spec $ ocp_render --pdf spec.pdf spec.ocp # HTML is also supported. $ ocp_render --html spec.html spec.ocp ``` ## How to build the tooling locally If you would like to make changes to the rendering tooling and test them locally, see the TCG Pandoc [README](https://github.com/TrustedComputingGroup/pandoc/blob/main/README.md#how-to-build-locally) for how to build the tooling on your local machine. ## Tips and tricks ### Diagrams Specification diagrams may be generated using draw.io. These can be edited with the [Draw.io Integration](https://marketplace.visualstudio.com/items?itemName=hediet.vscode-drawio) Visual Studio Code extension. When creating new diagrams, be sure to enable a white background. Otherwise, the diagram will not be legible to viewers with dark mode enabled.