Comments (2)
This is only broken on Qiskit version 0.43 https://qiskit.org/documentation/stable/0.43/index.html. It works everywhere else, including https://qiskit.org/documentation/stable/0.44/index.html. To reproduce, you go to the stable version and then try clicking any other release in the Previous Releases left tab.
There are three builds to compare:
- 0.42 docs on March 21, Qiskit/qiskit-metapackage@4d5c2de. qiskit-sphinx-theme 1.10.2
- 0.43 docs on July 19, Qiskit/qiskit-metapackage@888fa5c. qiskit-sphinx-theme 1.13.1
- 0.44 docs Aug 17 in Qiskit Terra repo, Qiskit/qiskit@39b0cb8. qiskit-sphinx-theme 1.14.0
--
Between 0.43 and 0.44, the major difference is that 0.43 sets the option docs_url_prefix
to documentation/stable/<version>
whereas 0.44 always keeps it to documentation/
:
https://github.com/Qiskit/qiskit/blob/39b0cb82ab2f3bce5aee663ec1f1e0817aca71db/docs/conf.py#L34-L36
Jake was correct when he moved the docs config to always use documentation/
. That is a bug to set it to include /stable
, and it explains why the URL has /stable
twice:
--
So, then the only remaining question is why did this work in 0.42 and prior versions? In 0.42 and earlier, the option was called content_prefix
:
At that point, our previous versions logic ignored content_prefix
and the code solely worked for Qiskit Terra:
qiskit_sphinx_theme/qiskit_sphinx_theme/stable_versions.html
Lines 5 to 7 in 73f4d2c
We used content_prefix
for translations only:
qiskit_sphinx_theme/qiskit_sphinx_theme/versionutils.py
Lines 107 to 115 in 73f4d2c
qiskit_sphinx_theme/qiskit_sphinx_theme/versionutils.py
Lines 71 to 73 in 73f4d2c
Note that we don't deploy translations to versions, though! So the config was always bogus. If you click the language drop down on https://qiskit.org/documentation/stable/0.42/locale/bn_BN/index.html, it 404s, even though we had those translations provided in 0.42.
#321 replaced content_prefix
with docs_url_prefix
to fix Ecosystem projects using Previous Releases, which previously did not work. The implementation was sound in #321, but it was not correct to keep setting content_prefix=documentation/stable/<version>
and to rename that to docs_url_prefix
.
from qiskit_sphinx_theme.
This is now fixed via a manual redeploy of the 0.43 docs with keeping docs_url_prefix
only set to documentation/
. https://qiskit.org/documentation/stable/0.43/tutorials.html
from qiskit_sphinx_theme.
Related Issues (20)
- CI always fails for snapshots HOT 1
- Add snapshot tests for announcement banner
- Add a customisable announcement banner component for the ecosystem theme HOT 2
- Rename options to make clear what is Qiskit specific? HOT 1
- Check if new builds fixed 404s on translated pages
- Add "noindex" to unwanted pages
- Generate report of translation-related 404 errors HOT 2
- Tutorial gallery border should be solid, not dotted
- Sync to newest Furo
- Ideas to improve docs guide
- Generalize translations & previous releases to non-Qiskit.org websites HOT 1
- Pinned furo release has been yanked
- Github links HOT 1
- Remove Pytorch theme
- Use new variation of Qiskit Ecosystem theme
- Add dark mode to ecosystem theme!
- Remove Qiskit theme
- Fix link to Qiskit Ecosystem overview page
- Update docs guide to stop talking about qiskit.org deploys
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qiskit_sphinx_theme.