Skip to main content
tests/test_docs_site.py · chapter Tests and team tooling, file 13 · 40 lines · open in the repository

What it does

The documentation site (docs-site/, decision 0011) must cover every file and be up to date. If a test here fails: for a new file, add it to a chapter in docs-site/reading_order.json; then run python3 scripts/build_docs.py and stage docs-site/ with your change.

What is inside

What it checks

  • every file has a place in the tour (line 15)
  • the site is up to date (line 20)
  • text is escaped for mdx but code is left alone (line 25)
  • commands indented in a docstring become a code block (line 31)
  • every file gets a stable page name (line 36)

Source

tests/test_docs_site.py