Repository navigation
Add an API reference and a Read the Docs config to the docs - #68
Merged
Merged
Conversation
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Sphinx docs consisted only of the usage example. They had no API reference, and
conf.pywas still the 2014sphinx-quickstarttemplate.Changes
doc/api.rst(new): an autodoc-generated reference forcreate,check_dimensionality,KDNode(including inheritedNodemembers),Node,level_order,visualizeandrequire_axis, in source order. It is linked from the index toctree.doc/conf.py: rewritten to contain only the settings in use."One line description of project."placeholder. The texinfo description is now the module docstring's first line._static/_templates. Those directories don't exist and caused a Sphinx warning.defaultis an alias ofclassic..readthedocs.yaml(new): Read the Docs has required a config file since 2023, so builds without one fail. It buildsdoc/conf.pyand 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 htmlpasses without warnings. The API page contains every public function and method.texinfoandmanbuilders andmake htmlalso succeed.Follow-ups
doc/index.rst, in a different part of the file, so the two PRs merge cleanly in either order.Generated by Claude Code