Loading
feat: #3626343 Add MkDocs support and a site-builder-friendly documentation site
Summary
ai and ai_agents both publish a MkDocs site; ai_agents_views had
neither a mkdocs.yml nor the pages CI stage those two rely on, so
nothing in docs/ was ever built or published anywhere. Adds that
support, reorganizes docs/ with the actual reader in mind (site
builders using the module vs. contributors to it), and fixes two broken
internal cross-references along the way - one a dead link outside
docs_dir, the other a relative path that escaped the module root
entirely instead of reaching its own sibling file.
Changes
mkdocs.yml(new): modeled onai_agents's simpler configuration. Nav: Home, Example Prompts (Views Agent / Views Assistant), Views Assistant Submodule, Testing.architecture.mdis intentionally left out of the nav - a repo-only contributor reference, not published to the site-builder-facing site.docs/index.md(new): a site-builder-friendly Home page for the published site..gitlab-ci.yml: added thepages: stage: .poststub present in both sibling modules, required for the shared CI template to build/publish the site at all..gitignore(new): ignores/site, the MkDocs build output..cspell-project-words.txt: addedmkdocs.docs/prompts.md: replaced a dead link to../config/install/ai_agents.ai_agent.views_agent.yml(outsidedocs_dir, unresolvable once published) with plain prose.docs/views-assistant-prompts.md: fixed a broken relative link (../../docs/prompts.md, which escapes the module root rather than reaching its sibling file) to a real link, and reworded a claim that prior bug write-ups live "at the repo root" - they live in a different, outer project, not in this repository.README.md: added a Documentation section (published-site link plus localmkdocs servesteps), converted bare doc-path mentions into real links, and added thedocs/views-assistant-prompts.mdreference that was missing entirely.
Test plan
-
mkdocs build --strict(mkdocs + mkdocs-material, in a throwaway virtualenv) against the module'smkdocs.ymlbuilds cleanly (exit 0), with the only message being the expected, intentional notice thatarchitecture.mdexists but isn't in the nav. - Confirmed the two previously-broken cross-references now resolve:
docs/views-assistant-prompts.md's link toprompts.mdand every other internal doc link. - Not applicable: documentation and build-tooling change only, no code or config behavior to regression-test with PHPUnit.
Closes #3626343
AI-Generated: Yes (Used Claude Code to design the MkDocs setup, reorganize and fix the documentation, and verify the build.)