Skip to content

Add an API reference and a Read the Docs config to the docs - #68

Merged
stefankoegl merged 1 commit into
masterfrom
claude/vibrant-dijkstra-6s8trl-sphinx-api
Nov 11, 2026
Merged

stefankoegl merged 1 commit into
masterfrom
claude/vibrant-dijkstra-6s8trl-sphinx-api

Conversation

@stefankoegl

Copy link
Copy Markdown
Owner

The Sphinx docs consisted only of the usage example. They had no API reference, and conf.py was still the 2014 sphinx-quickstart template.

Changes

  • doc/api.rst (new): an autodoc-generated reference for create, check_dimensionality, KDNode (including inherited Node members), Node, level_order, visualize and require_axis, in source order. It is linked from the index toctree.
  • doc/conf.py: rewritten to contain only the settings in use.
    • Removes the "One line description of project." placeholder. The texinfo description is now the module docstring's first line.
    • Removes _static/_templates. Those directories don't exist and caused a Sphinx warning.
    • The theme is unchanged: default is an alias of classic.
  • .readthedocs.yaml (new): Read the Docs has required a config file since 2023, so builds without one fail. It builds doc/conf.py and fails on warnings.
  • doc/requirements.txt (new): installs Sphinx for the RTD build.
  • doc/index.rst: removes the quickstart comment.

Testing

  • sphinx-build -W -b html passes without warnings. The API page contains every public function and method.
  • The texinfo and man builders and make html also succeed.

Follow-ups

  • I couldn't reach readthedocs.io from my environment, so I couldn't check whether the RTD project is still connected to this repository. Please check the first RTD build after merging.
  • Test the readme examples and include them in the docs #67 also edits doc/index.rst, in a different part of the file, so the two PRs merge cleanly in either order.

Generated by Claude Code

- doc/api.rst documents the module with autodoc, so the docstrings
  show up on Read the Docs; until now the docs were only the usage
  example.
- doc/conf.py: replace the 2014 sphinx-quickstart boilerplate with the
  settings actually used. This removes the "One line description of
  project." placeholder (the module docstring is used now) and the
  references to the non-existent _static and _templates directories,
  which made Sphinx warn. The theme is unchanged ("default" is an alias
  of "classic").
- .readthedocs.yaml: Read the Docs requires a configuration file for
  builds; warnings fail the build. doc/requirements.txt installs Sphinx.
- doc/index.rst: drop the quickstart comment, link the API page.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Pewzpiih3qbqQ1YhUbhbvk
@coveralls

Copy link
Copy Markdown

Coverage Status

coverage: 100.0%. remained the same — claude/vibrant-dijkstra-6s8trl-sphinx-api into master

@stefankoegl
stefankoegl merged commit c8dceb0 into master Nov 11, 2026
19 checks passed
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.

3 participants