Skip to content

Latest commit

 

History

History
49 lines (38 loc) · 2.5 KB

README.md

File metadata and controls

49 lines (38 loc) · 2.5 KB

docs-tooling

Shared documentation tooling for Kataglyphis repositories. With the sibling sphinx-kataglyphis-theme/ package it makes DocumANTation the single source of truth for how the Kataglyphis docs sites are themed, templated and generated. Downstream repos consume it as a git submodule.

Contents

Path Purpose
source_templates/sphinx-book/ Landing-page template for a docs site, and how to call setup_theme() — see its README

Only genuinely shared things live here. Three former residents left:

  • source_templates/sphinx-book/conf_base.py and its generated custom.css copy, a Sphinx baseline that AccelerANTgine and BeschleunigerBallett loaded by file path, were deleted once both called setup_theme() (2026-10-19).
  • source_templates/sphinx-python/, a baseline for Python API docs (autodoc/napoleon), was removed: an org-wide audit found no conf.py that read it, and it imports sphinx_kataglyphis, so any consumer able to load it could call setup_theme() instead and get the brand CSS and shared code palette the baseline lacked. git log -- docs-tooling/source_templates/sphinx-python/ has it if a Python project wants the autodoc defaults back.
  • sync_versions.py and generate-website-licenses.py moved back to ANTfrastructure: they read that repo's linux/Dockerfile.*, windows/Dockerfile* and versions.env, so no other consumer could run them, and keeping them here cost a submodule commit and a pin bump on every ANTfrastructure version bump.

The Sphinx theme (the setup_theme() helper, scaffold CLI and base CSS) is a separate package in ../sphinx-kataglyphis-theme, so consumers can pip install -e it.

Colours and fonts are not defined here. They live once in ../style/brand.json and are generated into the LaTeX, Pandoc, CSS and JSON consumers; style/README.md shows how to read the brand from Python, Sphinx, LaTeX or any other language.

Consuming from another repository

Add this repo as a submodule (the family layout puts it under third_party/):

git submodule add https://github.com/Kataglyphis/DocumANTation third_party/DocumANTation

Then install the theme package and call setup_theme(): source_templates/sphinx-book/README.md. There is deliberately no copy-the-files route: every copy this repo handed out drifted.