Skip to content

Trim the Sphinx configuration to the settings in use - #119

Merged
stefankoegl merged 1 commit into
claude/pensive-wright-ioey78from
claude/trim-sphinx-conf
Nov 11, 2026
Merged

stefankoegl merged 1 commit into
claude/pensive-wright-ioey78from
claude/trim-sphinx-conf

Conversation

@stefankoegl

Copy link
Copy Markdown
Owner

Stacked on #114. Once that merges, retarget this to master.

doc/conf.py was still the 2013 sphinx-quickstart template, about 245 lines of mostly commented-out defaults. This keeps only the settings that differ from Sphinx's defaults:

  • html_theme = 'default' becomes 'classic'. default is a legacy alias for classic.
  • templates_path and html_static_path are removed. They pointed at a missing directory and an empty one, and the empty doc/_static/.empty is deleted.
  • The author is defined once and reused for the LaTeX, man and Texinfo outputs.

Verification: I built the HTML before and after the change and diffed the output. The only difference is the _static/default.css alias stylesheet, which is no longer generated. The -W builds for html, man, texinfo and latex all pass.


Generated by Claude Code

doc/conf.py was the 2013 sphinx-quickstart template, mostly
commented-out defaults. Keep only the settings that differ from
Sphinx's defaults, and:

- use the "classic" theme name instead of its legacy alias "default"
  (the generated HTML is identical apart from the alias stylesheet)
- drop templates_path and html_static_path, which pointed at an empty
  or missing directory, along with doc/_static/.empty
- define the author once and reuse it for the LaTeX, man and Texinfo
  outputs

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PewzpjhRBV84QNbKy9H564
@stefankoegl
stefankoegl merged commit 570ffe1 into claude/pensive-wright-ioey78 Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants