Skip to content
Projects
Release 0.14.1

starlight-theme

One Astro + Starlight setup for the docs of the max-models projects, shown here on a small example package.
npx --package github:max-models/starlight-theme starlight-theme-init

A project’s docs/astro.config.mjs names the project and its pages, and defineDocs writes the rest: the base path, KaTeX math with the project’s macros, the API reference from the docstrings, the link check, and this look, the same for every max-models site.

import { defineDocs } from '@max-models/starlight-theme';
export default defineDocs({
repo: 'example',
title: 'example',
pythonPackage: 'example_pkg',
nav: [{ label: 'Tutorials', link: '/tutorials/', description: 'Notebooks, run in CI.' }],
});

Notebooks in tutorials/ and scripts in examples/ are run when the docs are built and turned into pages (starlight-notebooks, starlight-gallery), so every figure on the site comes from the code as it is.