Skip to content

ci(docs): deploy the site through the shared mkdocs pages workflow - #58

Merged
jravani merged 1 commit into
mainfrom
chore/shared-mkdocs-pages-workflow
Oct 8, 2026
Merged

jravani merged 1 commit into
mainfrom
chore/shared-mkdocs-pages-workflow

Conversation

@jravani

@jravani jravani commented Oct 8, 2026

Copy link
Copy Markdown
Member

Pages for this repository is set to "GitHub Actions", which ignores the gh-pages branch the old deploy job pushed to with peaceiris. Docs runs succeeded, but the live site stopped updating after 2026-09-29: for example, the landing page does not show the "2,124 of 2,147" validation figure from #56.

Changes:

  • docs.yml now only calls THD-Spatial-AI/.github/.github/workflows/mkdocs-pages.yml@v1. That workflow lints the OpenAPI spec with Redocly 2.51.2, builds with mkdocs build --strict, and publishes with actions/deploy-pages.
  • docs.yml triggers on docs/** and mkdocs.yml, and gains workflow_dispatch for manual runs. Its permission drops from contents: write to contents: read.
  • The build-arc42 job moves unchanged into a new arc42.yml, triggered on documentation/**. The PDF stays a run artifact and is not published.

Checks run locally:

  • mkdocs build --strict passes with no warnings.
  • npx @redocly/cli@2.51.2 lint docs/openapi/openapi.yaml passes with 4 warnings, the same result as before.

The gh-pages branch is left in place.

The repository's Pages source is "GitHub Actions", which ignores the
gh-pages branch that the deploy job pushed to with peaceiris. Docs
runs succeeded, but nothing they built reached the live site.

docs.yml now only calls the organisation's reusable workflow
THD-Spatial-AI/.github mkdocs-pages.yml@v1. It lints the OpenAPI spec
with Redocly, builds with mkdocs --strict and publishes through
actions/deploy-pages. It triggers on docs/** and mkdocs.yml, which
are the only inputs MkDocs reads, and can be run manually through
workflow_dispatch. The workflow needs contents: read only.

The arc42 PDF build moves unchanged into its own arc42.yml, triggered
on documentation/**. The PDF stays a run artifact and is not
published.

The strict build and the Redocly 2.51.2 lint both pass on the
current docs.
@jravani
jravani merged commit a07826c into main Oct 8, 2026
2 checks passed
@jravani
jravani deleted the chore/shared-mkdocs-pages-workflow branch October 8, 2026 22:13
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