Skip to content

Move apidoc generation to doc building script - #891

Closed
AVHopp wants to merge 1 commit into
docs/fix_doc_referencesfrom
docs/refactor-apidoc
Closed

Move apidoc generation to doc building script#891
AVHopp wants to merge 1 commit into
docs/fix_doc_referencesfrom
docs/refactor-apidoc

Conversation

@AVHopp

@AVHopp AVHopp commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

This is a small PR, removing an old defensive guard and moving a part of the doc generation to another file to streamline the files a bit.


Stack created with GitHub Stacks CLIGive Feedback 💬

Copilot AI lite review requested due to automatic review settings August 18, 2026 08:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR streamlines the documentation build by moving sphinx-apidoc execution out of the Sphinx conf.py (which is imported as part of any Sphinx run) into the dedicated documentation build script.

Changes:

  • Added an internal _run_apidoc() helper to docs/scripts/build_documentation.py and invoked it before sphinx-build.
  • Removed the legacy “run sphinx-apidoc inside docs/conf.py” block (and related imports), reducing side effects during Sphinx configuration import.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/scripts/build_documentation.py Adds and runs a sphinx-apidoc generation step as part of the scripted docs build flow.
docs/conf.py Removes the old apidoc-on-import logic to keep Sphinx configuration focused on configuration only.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +115 to +116
# Generate the API reference stubs via sphinx-apidoc
_run_apidoc()
@AVHopp
AVHopp force-pushed the docs/refactor-apidoc branch from 7dd762c to 317f6dc Compare August 18, 2026 08:45
@AVHopp
AVHopp force-pushed the docs/refactor-apidoc branch from 317f6dc to 17c208d Compare August 18, 2026 10:45
@AVHopp
AVHopp force-pushed the docs/refactor-apidoc branch from 17c208d to 203d2cc Compare August 18, 2026 11:13
@AVHopp
AVHopp force-pushed the docs/refactor-apidoc branch from 203d2cc to 361f033 Compare August 18, 2026 11:30
@AVHopp
AVHopp force-pushed the docs/refactor-apidoc branch from 361f033 to 5b5fe2c Compare August 18, 2026 11:45
@AVHopp
AVHopp force-pushed the docs/refactor-apidoc branch from 5b5fe2c to 580dd00 Compare August 18, 2026 11:59
@AVHopp
AVHopp force-pushed the docs/refactor-apidoc branch from 580dd00 to dfe90ce Compare August 18, 2026 13:48
@AVHopp
AVHopp force-pushed the docs/refactor-apidoc branch from dfe90ce to dd0f2e2 Compare August 18, 2026 14:42
@AVHopp

AVHopp commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator Author

Closing due to weird stuff happening with stacked PR

@AVHopp AVHopp closed this Aug 18, 2026
@AVHopp
AVHopp deleted the docs/refactor-apidoc branch August 18, 2026 15:25
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