Closed Eric-Arellano closed 1 year ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
You mentioned that nbsphinx is not working on your mac. Does it mean that you can't make a successful local build using tox on your mac?
Does it mean that you can't make a successful local build using tox on your mac?
Exactly. But I time-boxed trying to figure this out—there are a few other higher priorities I'm focused on. The main reason I'm cleaning up this repo is to unblock enabling -W
in qiskit-metapackage, which is blocked by enabling -W
in this repo.
Some forward progress is better than none. While I couldn't get local to work on my mac, CI at least still works.
Summary
Previously, there was no standardized way to build the docs locally. While Tox isn't perfect, it aligns us with the rest of the Qiskit ecosystem.
Switching to Tox is important here because it de-duplicates our requirements, which were specified both in requirements-dev.txt and again in azure-pipelines.yaml.
Details and comments
This also fixes two Sphinx warnings due to bad config in
conf.py
.I couldn't actually get NBSphinx to work on my mac due to import errors. But this is still some forward progress, so I put up the PR. CI at least will now use tox, and continue to produce a zip of the docs that CI users can inspect.