Repository navigation
docs: build a docs site with the OpenSCAD docs engine - #4
Merged
Merged
Conversation
Each example opened with a path comment, several naming a file that had since moved. They now open with a title and a one-line description, which the docs site shows on its Examples page. The cube and torture test examples move into folders of their own, like every other module's. A docs site built from examples/ reads only the top level when it has files there, so it would have shown those two and none of the other 14. All 16 examples export the same STL as before (cmp against main).
docs-site.yml publishes docs/ as the site's pages, with docs/index.md as the home page, and the engine adds an Examples page with a 3D view of each example. The pages get front matter for their titles and order; without it Jekyll copies a Markdown file through unbuilt. The workflow is the one the other OpenSCAD repos use, on engine v2: it builds the site on every pull request and deploys it from main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This builds a docs site with the OpenSCAD docs engine (
just-the-docs-template-openscad@v2), the same workflow the other OpenSCAD repos use.docs-site.yml:pages: docspublishes the existingdocs/pages, anddocs/index.mdbecomes the home page. The engine adds an Examples page with a 3D view and a customizer for each of the 16 examples, titled by docs(examples): title every example and give each module a folder #3.titleand anav_order(Home, Usage, Calibration towers, Bed level patterns, Cube and torture test). Without front matter, Jekyll copies a Markdown file through unbuilt.docs/README.mdstays a GitHub-only pointer; the engine leaves it out.docs.yml: builds the site on every pull request and deploys it from main.This is stacked on #3 and targets it; GitHub retargets it to main when #3 merges.
To deploy, the repo needs Pages turned on with GitHub Actions as its source. It has no Pages site yet (
GET /pagesreturns 404). This PR'sbuildcheck builds the whole site without deploying.