docs-init
Installation
SKILL.md
Docs init
Sets up documentation as code in the repository the user is working in. Pages are Markdown files in docs/<space>/. scripts/build_docs.py turns them into a static site with a health page that lists pages without an owner and pages past their review date.
Inputs
- The repository: the current working directory, or a path the user names.
- The spaces. A space is one section of the docs with its own home page. For each:
key(folder name, a-z, 0-9 and -),name,about(one sentence) andowner(a person or a team). - Optional: the output folder (default
site/docs), the URL prefix (default/docs/) and the base URL for canonical links (default none).
Steps
- Check the repository. Find the root with
git rev-parse --show-toplevel. Checkpython3 --version(3.9 or later). Ifdocs/docs.json,docs/_templates/orscripts/build_docs.pyexists, list what is there and ask before going on. Look at how the site deploys (.github/workflows/, asite/orpublic/folder) so the output folder fits it. - Interview, briefly. Propose the defaults:
eng(Engineering) anddecisions(Decisions, written by thedecisionsmodule). Ask which spaces to keep or add, and the name, about line and owner of each. Ask for the output folder, URL prefix and base URL only when the defaults do not fit the deploy. One round of questions; do not ask for more than these fields. - Copy without overwriting.