# octavo > Build static sites, Python API docs, and `llms.txt` from Markdown, `.qmd`, notebooks, and `.py` modules; run literate `.py` tests; configure GitHub Pages. Base URL: https://answerdotai.github.io/octavo/ - Authoring, structuring, or testing docs: read `doc(octavo.guidance)` - Migrating a Quarto site or nbdev project: read `doc(octavo.migrate)` ### CLIs - `octavo-build [path] [--output dir]`: build HTML + `.md` pages, Pagefind search, sitemap, RSS feeds, and `llms.txt`; auto-detects Python projects (`pyproject.toml` + `README.md` + `docs/` + public `.py` modules with docstring + `# - ...` frontmatter) and delegates `[tool.nbdev]` repo roots to `nbdev.docs` - `octavo-preview [path] [--output dir] [--port N]`: serve built site and rebuild on file edits via `watchdog` - `octavo-llms [path] [--out file] [--base-url url]`: generate or refresh `llms.txt`, `llms-*.txt` companions, and `pkg/_modidx.py` - `octavo-test [path]`: execute literate `.py` module docstring ```` ```{python} ```` blocks in isolated `execnb.minipy` processes (also registered as `pytest11` plugin; delegates `[tool.nbdev]` to `nbdev-test`) - `octavo-pages`: write `.github/workflows/docs.yml` (`AnswerDotAI/workflows/octavo-docs@master`), enable GitHub Pages workflow deployment, and set `[project.urls].Documentation` and `[project.entry-points.nbdev]` - `octavo-migrate-quarto [path]`: convert a Quarto project in place (`nbdev-migrate-octavo` for nbdev repos) ### Conventions - `.md` and `.py` `{python}` fences never execute at build time (rendered statically with `#| hide` dropped and `#| ` directives stripped; tested by `octavo-test`); `.qmd` executes `{python}` at build time via `execnb.minipy` (zero Jupyter) - output links use `.md` for Markdown copies (not `.html.md`); backticked symbols link automatically via `octavo.doclinks.DocLookup` (AST-loaded `_modidx.py`) and `octavo.site.Linker` - sidebar sections derive recursively from folders and `dir/index.md` metadata; ordering uses explicit `order:` / `# - order:`, then numeric filename prefix (`00_`, `00a_`), then title ## Docs - [octavo.guidance](llms-guidance.txt): Guidance for structuring, writing, and testing documentation with Octavo (Markdown, Quarto Markdown, notebooks, and Python modules). - [core](core.md): Convert notebook content and Markdown to HTML and GitHub-flavored Markdown - [pages](pages.md): Read source documents, metadata, and output destinations - [theme](theme.md): Default styles, icons, and page layout - [site](site.md): Configure and build a documentation website - [migrate](migrate.md): Convert Quarto sources and settings for Octavo - [cli](cli.md): Build, preview and migrate sites from the command line ## API - [octavo.doclinks](doclinks.md): Resolve and linkify backticked Python symbols across `nbdev` entry points and live package indexes. - [octavo.ghpages](ghpages.md): Configure GitHub Pages workflow deployment and `pyproject.toml` docs metadata for Octavo sites. - [octavo.llms](llms.md): Generate `llms.txt`, companion `llms-*.txt` files, and `docs_tree` metadata from `pkg/skill.py` and project docs. - [octavo.pydocs](pydocs.md): Render Python modules, `{{< doc ... >}}` shortcodes, and `pyproject.toml` site defaults for Octavo. - [octavo.test](test.md): Execute literate `.py` modules as tests by running top-level code interspersed with ```` ```{python} ```` docstring examples.