Skip to content

docs: build a docs site with the OpenSCAD docs engine - #4

Merged
CameronBrooks11 merged 3 commits into
mainfrom
docs/site
Nov 16, 2026
Merged

CameronBrooks11 merged 3 commits into
mainfrom
docs/site

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

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: docs publishes the existing docs/ pages, and docs/index.md becomes 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.
  • Front matter: each docs page gets a title and a nav_order (Home, Usage, Calibration towers, Bed level patterns, Cube and torture test). Without front matter, Jekyll copies a Markdown file through unbuilt. docs/README.md stays 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 /pages returns 404). This PR's build check builds the whole site without deploying.

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.
Base automatically changed from docs/example-titles to main November 16, 2026 02:39
@CameronBrooks11
CameronBrooks11 merged commit fdf967a into main Nov 16, 2026
6 checks passed
@CameronBrooks11
CameronBrooks11 deleted the docs/site branch November 16, 2026 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant