yams/.github/workflows/docs.yml
trvon 3addda7f50
docs: regroup the site navigation, fix its URL and dead links, check it in CI
- Navigation is grouped into Get started, Reference, Benchmarks and
  Project, so the reference pages that were reachable only from the home
  page's link list are in the menu, and no tab holds a single page.
- site_url points at yamsmemory.ai (the GitHub Pages URL returned 404),
  and the header links to GitHub.
- Links to meson_options.txt and examples/config.toml pointed outside
  the docs directory and broke the strict build; they now go to GitHub.
- The logo is cropped and its white background removed; it rendered as a
  sliver in the header.
- A pull request touching the docs now runs mkdocs build --strict.

Signed-off-by: trvon <git@trevon.dev>
2026-11-13 18:29:16 -07:00

34 lines
861 B
YAML

# yamllint disable rule:line-length
# The site itself is built and published by Cloudflare Pages. This check only
# fails a pull request whose docs would build with broken links or nav entries.
name: Docs
'on':
pull_request:
paths:
- 'docs/**'
- 'mkdocs.yml'
- '.github/workflows/docs.yml'
permissions:
contents: read
jobs:
strict-build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install MkDocs Material
# Same major version the published site is built with.
run: python -m pip install 'mkdocs-material==9.*'
- name: Build in strict mode
env:
NO_MKDOCS_2_WARNING: '1'
run: mkdocs build --strict --site-dir "$RUNNER_TEMP/site"