-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Fix blank URL_ROOT #4916
Fix blank URL_ROOT #4916
Conversation
Codecov Report
@@ Coverage Diff @@
## 1.7 #4916 +/- ##
=======================================
Coverage 81.96% 81.96%
=======================================
Files 282 282
Lines 37594 37594
Branches 5829 5829
=======================================
Hits 30814 30814
Misses 5477 5477
Partials 1303 1303 Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1: But this should be merged into 1.7.x release. Could you rebase this into 1.7 branch please?
pathto doesn't expand in non-HTML templates so the workaround involves expanding it in the HTML file and passing it as a data attribute to the script.
Merged. Thank you for your contribution! |
A few things got refactored in sphinx, especially for 4.x. Therefore, use provided helpers. As a reference for the future, always look at what the "basic" sphinx theme (bundled as `sphinx/themes/basic`) does. See: - sphinx-doc/sphinx@a957d6f710 - sphinx-doc/sphinx#4916 - sphinx-doc/sphinx#4915 - readthedocs/sphinx_rtd_theme#1021
A few things got refactored in sphinx, especially for 4.x. Therefore, use provided helpers. As a reference for the future, always look at what the "basic" sphinx theme (bundled as `sphinx/themes/basic`) does. See: - sphinx-doc/sphinx@a957d6f710 - sphinx-doc/sphinx#4916 - sphinx-doc/sphinx#4915 - readthedocs/sphinx_rtd_theme#1021
Subject: Fix blank URL_ROOT
Feature or Bugfix
Purpose
pathto doesn't expand in non-HTML templates so the workaround involves
expanding it in the HTML file and passing it as a data attribute to
the script.
Detail
Relates