octavo

Build static sites from notebooks and markdown

Octavo builds static sites from notebooks and Markdown. It writes an HTML page and a GitHub-flavored Markdown file for each document, with links resolved for each format. Sites include navigation, a table of contents, and Pagefind search.

It's like quarto but smaller, faster, and ours.

Get started

Install from pypi: pip install aai-octavo

To build a site create a directory containing Markdown files or notebooks and an octavo.yml file. For example:

docs/
    octavo.yml
    index.md
    guide.ipynb

In docs/octavo.yml:

title: My project
output: ../_site

The output path is relative to docs/. Sources and output must be separate directories; neither may contain the other. The build replaces the output directory, so reserve it for generated files.

In docs/index.md:

---
title: My project
---

Read the [guide](guide.ipynb).

Write the guide in docs/guide.ipynb. Links use source filenames. Octavo rewrites this link to guide.html for HTML output and retains guide.md for Markdown output.

From the directory containing docs/, build the site:

octavo-build docs

To serve it locally and rebuild after edits:

octavo-preview docs

Both commands default to the current directory when the path is omitted. Preview opens a browser; refresh it after a rebuild. Use octavo-preview --help for server options.

An explicit --output preview overrides the YAML destination and is relative to your working directory.

Python callers can use Site.from_dir('docs').build() from octavo.site.

Your site is saved in _site/:

index.html  # html pages
guide.html
index.md    # md pages
guide.md
pagefind/   # helpers
_octavo/

Migrating from Quarto

For octavo-migrate-quarto, read the migration guide.