Skip to content

build-docs-preview.py for end-to-end local docs build#1854

Merged
mpharrigan merged 7 commits into
quantumlib:mainfrom
mpharrigan:2026-05/doc-build
May 14, 2026
Merged

build-docs-preview.py for end-to-end local docs build#1854
mpharrigan merged 7 commits into
quantumlib:mainfrom
mpharrigan:2026-05/doc-build

Conversation

@mpharrigan
Copy link
Copy Markdown
Collaborator

The multistep doc build

  • execute jupyter notebooks
  • extract reference docs from docstrings
  • sphinx build

We're at a point now where each of these can be run in an "iterative" mode where it only generates changed content for fast iteration (re-building the docs in ~seconds) at the expense of potentially out-of-date side navbar. Re-running all the notebooks and doing a clean sphinx build takes a few minutes in total.

@mpharrigan mpharrigan added the devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics label May 13, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new script, dev_tools/build-docs-preview.py, to automate the local build and preview of Qualtran documentation. The script orchestrates several steps, including cleaning the build environment, executing notebooks, and generating reference documentation. Feedback from the review suggests improving cross-platform compatibility by handling Windows-specific build commands (make.bat) and expanding exception handling to catch FileNotFoundError when external tools like git or make are missing from the system path.

Comment thread dev_tools/build-docs-preview.py Outdated
Comment thread dev_tools/build-docs-preview.py Outdated
@mpharrigan mpharrigan mentioned this pull request May 13, 2026
@mpharrigan mpharrigan merged commit 52d59be into quantumlib:main May 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops Involves build systems, Make files, Bazel files, continuous integration, and or other DevOps topics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant