-
-
Notifications
You must be signed in to change notification settings - Fork 685
Closed
Description
Steps To Reproduce
build the html files via the doc-html build target
Expected Behavior
the URLs of all assets in all *html pages must be relative, not absolute.
Actual Behavior
The doc-html build target produces the *.html artifacts. They contain an absolute paths:
~/sage-git/local/share/doc/sage/html$ grep -R /user/sage-git/local/share/mathjax/mathjax/tex-chtml.js | head
ru/tutorial/interfaces.html: <script defer="defer" src="/home/user/sage-git/local/share/mathjax/mathjax/tex-chtml.js"></script>
ru/tutorial/interactive_shell.html: <script defer="defer" src="/home/user/sage-git/local/share/mathjax/mathjax/tex-chtml.js"></script>
ru/tutorial/tour_help.html: <script defer="defer" src="/home/user/sage-git/local/share/mathjax/mathjax/tex-chtml.js"></script>
ru/tutorial/tour_linalg.html: <script defer="defer" src="/home/user/sage-git/local/share/mathjax/mathjax/tex-chtml.js"></script>
ru/tutorial/tour_polynomial.html: <script defer="defer" src="/home/user/sage-git/local/share/mathjax/mathjax/tex-chtml.js"></script>
ru/tutorial/tour_advanced.html: <script defer="defer" src="/home/user/sage-git/local/share/mathjax/mathjax/tex-chtml.js"></script>
ru/tutorial/tour_functions.html: <script defer="defer" src="/home/user/sage-git/local/share/mathjax/mathjax/tex-chtml.js"></script>
[...]
Additional Information
The browser can't load the asset. This is the error.
GET https://doc.sagemath.org/home/user/sage-git/local/share/mathjax/mathjax/tex-chtml.js net::ERR_ABORTED 404 (Not Found)
The "/home/user/sage-git/local/" shouldn't be there.
In the vicinity of this in the generated html pages at the bottom, there are other assets loaded like that:
<script src="_static/scripts/furo.js"></script>
<script src="_static/clipboard.min.js"></script>
<script src="_static/copybutton.js"></script>
P.S.: I had to click on the "I have read the documentation and troubleshoot guide" checkbox to submit this issue, although I did NOT read it. Please let me know if there is a fix for this anywhere in it.
Environment
- **OS**: Linux
- **Sage Version**: 10.2Checklist
- I have searched the existing issues for a bug report that matches the one I want to file, without success.
- I have read the documentation and troubleshoot guide