-
Notifications
You must be signed in to change notification settings - Fork 323
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
Allow multiple url_template
in version switcher
#573
Comments
I suppose having an additional, optional entry in the json file might be the cleanest solution. Another issue about potentially expanding the json file: #556 |
I like this option best too. |
If it's just a matter of adapting the current JS in the HTML (and doc OC), I could give this a try 😃 |
Yes, I think it's certainly fine to improve the current JS, before it is moved. So if you want to give this a try, that would be very welcome! |
@jorisvandenbossche I created a PR (and another one for the extra classes). |
url_template
allows to have a template to build the URL for each versions. The problem is that old versions or development ones can be stored elsewhere and not respect the template.I can see a few options:
url
in the json configuration which would overwriteurl_template
.conf.py
and add a way to select which template has to be used. Could be a regex with the version/name, another optional parameter in the json, etc.A use case with discussions can be seen in scipy/scipy#15380
The text was updated successfully, but these errors were encountered: