Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded Sphinx templates and static files #9712

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

jakelishman
Copy link
Member

Summary

These files are several files left over from old versions of the documentation, and several from before qiskit-sphinx-theme was entirely separate from the Terra docs-build process. Having them remain in the repository causes local (or CI) builds of the documentation to pull from these templates instead of those provided by the theme package, which causes us to get different behaviour to what will actually be deployed during the metapackage docs build.

Details and comments

Found during the process of writing the bugfix Qiskit/qiskit_sphinx_theme#197. Other Qiskit projects may well want to copy the spirit of this PR if they haven't already, in particular ensuring that they're not providing a layout.html template that overrides the up-to-date, unified one provided by qiskit_sphinx_theme (though likely everyone will want to get rid of everything in templates except for their autosummary settings).

These files are several files left over from old versions of the
documentation, and several from before `qiskit-sphinx-theme` was
entirely separate from the Terra docs-build process.  Having them remain
in the repository causes local (or CI) builds of the documentation to
pull from these templates instead of those provided by the theme
package, which causes us to get different behaviour to what will
actually be deployed during the metapackage docs build.
@jakelishman jakelishman added documentation Something is not clear or an error documentation stable backport potential The bug might be minimal and/or import enough to be port to stable Changelog: None Do not include in changelog labels Mar 3, 2023
@jakelishman jakelishman requested a review from a team as a code owner March 3, 2023 01:31
@qiskit-bot
Copy link
Collaborator

Thank you for opening a new pull request.

Before your PR can be merged it will first need to pass continuous integration tests and be reviewed. Sometimes the review process can be slow, so please be patient.

While you're waiting, please feel free to review other open PRs. While only a subset of people are authorized to approve pull requests for merging, everyone is encouraged to review open pull requests. Doing reviews helps reduce the burden on the core team and helps make the project's code better for everyone.

One or more of the the following people are requested to review this:

  • @Qiskit/terra-core

@coveralls
Copy link

coveralls commented Mar 3, 2023

Pull Request Test Coverage Report for Build 4323873994

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 9 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.02%) to 85.335%

Files with Coverage Reduction New Missed Lines %
qiskit/transpiler/passes/synthesis/unitary_synthesis.py 1 95.04%
src/vf2_layout.rs 8 86.44%
Totals Coverage Status
Change from base Build 4320773410: -0.02%
Covered Lines: 67891
Relevant Lines: 79558

💛 - Coveralls

@HuangJunye HuangJunye self-assigned this Mar 3, 2023
Copy link
Member

@mtreinish mtreinish left a comment

Choose a reason for hiding this comment

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

This makes sense to me these templates are locally overriding things for no reason, we should keep in sync with the theme layout for these builds. At some point this will get more important when there is a unified docs build here without a metapackage and the terra docs builds are what get published.

Copy link
Collaborator

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Excellent, thank you! cc @javabster - perhaps this explains some docs behavior?

@mergify mergify bot merged commit 40f73a3 into Qiskit:main Mar 3, 2023
@jakelishman jakelishman deleted the remove-sphinx-overrides branch March 3, 2023 14:14
mergify bot pushed a commit that referenced this pull request Mar 3, 2023
These files are several files left over from old versions of the
documentation, and several from before `qiskit-sphinx-theme` was
entirely separate from the Terra docs-build process.  Having them remain
in the repository causes local (or CI) builds of the documentation to
pull from these templates instead of those provided by the theme
package, which causes us to get different behaviour to what will
actually be deployed during the metapackage docs build.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 40f73a3)
mergify bot added a commit that referenced this pull request Mar 3, 2023
These files are several files left over from old versions of the
documentation, and several from before `qiskit-sphinx-theme` was
entirely separate from the Terra docs-build process.  Having them remain
in the repository causes local (or CI) builds of the documentation to
pull from these templates instead of those provided by the theme
package, which causes us to get different behaviour to what will
actually be deployed during the metapackage docs build.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
(cherry picked from commit 40f73a3)

Co-authored-by: Jake Lishman <jake.lishman@ibm.com>
king-p3nguin pushed a commit to king-p3nguin/qiskit-terra that referenced this pull request May 22, 2023
These files are several files left over from old versions of the
documentation, and several from before `qiskit-sphinx-theme` was
entirely separate from the Terra docs-build process.  Having them remain
in the repository causes local (or CI) builds of the documentation to
pull from these templates instead of those provided by the theme
package, which causes us to get different behaviour to what will
actually be deployed during the metapackage docs build.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog documentation Something is not clear or an error documentation stable backport potential The bug might be minimal and/or import enough to be port to stable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants