ansys / ansys-sphinx-theme

PyData-based Sphinx theme from the PyAnsys community
https://sphinxdocs.ansys.com
MIT License
23 stars 8 forks source link

Dropdown menu should take you to the equivalent vXXX page #175

Closed RobPasMue closed 1 year ago

RobPasMue commented 1 year ago

📝 Description of the feature

I think it will be nice if the dropdown takes you to the equivalent page in the previous/newer version.

For example if we are in `v2ofexamples.htmland we select versionv1, it should take you to the version 1 ofexamples.html``, not back to main. So we can compare changes in the API easier.

I think it should not be difficult to implement. I understand that a 404 error should be shown if that specific page didn't exist in the newly selected version.

💡 Steps for implementing the feature

No response

🔗 Useful links and references

No response

Originally posted by @germa89 in https://github.com/pyansys/actions/issues/122

Revathyvenugopal162 commented 1 year ago

closing as solved this issue with https://github.com/pyansys/actions/issues/151 and upgrade of pydata-sphinx-theme. Implementation in https://sphinxdocs.ansys.com/dev/user_guide/index.html

germa89 commented 1 year ago

Thank you guys!! :D