diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..cd7ea0c --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,40 @@ +name: Docs site + +on: + push: + branches: [main] + pull_request: + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: docs-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v7 + - id: site + uses: CameronBrooks11/just-the-docs-template-openscad@v2 + - if: github.event_name != 'pull_request' + uses: actions/upload-pages-artifact@v5 + with: + path: ${{ steps.site.outputs.site-dir }} + + deploy: + if: github.event_name != 'pull_request' + needs: build + runs-on: ubuntu-24.04 + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + steps: + - id: deployment + uses: actions/deploy-pages@v5 diff --git a/docs-site.yml b/docs-site.yml new file mode 100644 index 0000000..02b6896 --- /dev/null +++ b/docs-site.yml @@ -0,0 +1,3 @@ +title: parametric-calibration-objects +description: Parametric OpenSCAD calibration objects for 3D printers +pages: docs diff --git a/docs/bed-level-pattern.md b/docs/bed-level-pattern.md index dd1a4f5..2a4707a 100644 --- a/docs/bed-level-pattern.md +++ b/docs/bed-level-pattern.md @@ -1,3 +1,8 @@ +--- +title: Bed level patterns +nav_order: 4 +--- + # Bed Level Pattern Reference **File:** `src/bedlevelpattern.scad` | **Examples:** `examples/bedlevelpattern_examples/` diff --git a/docs/index.md b/docs/index.md index beebf69..59face2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,3 +1,8 @@ +--- +title: Home +nav_order: 1 +--- + # Documentation Index parametric-calibration-objects is a library of parametric OpenSCAD modules for diff --git a/docs/towers.md b/docs/towers.md index 681c864..17854bd 100644 --- a/docs/towers.md +++ b/docs/towers.md @@ -1,3 +1,8 @@ +--- +title: Calibration towers +nav_order: 3 +--- + # Tower Module Reference Parameter reference for all five calibration tower generators. diff --git a/docs/usage.md b/docs/usage.md index fb25939..f26fe9b 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -1,3 +1,8 @@ +--- +title: Usage +nav_order: 2 +--- + # Usage ## Include and call diff --git a/docs/utility-models.md b/docs/utility-models.md index 46457ff..929f5fd 100644 --- a/docs/utility-models.md +++ b/docs/utility-models.md @@ -1,3 +1,8 @@ +--- +title: Cube and torture test +nav_order: 5 +--- + # Utility Model Reference ---