Skip to content
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

HTML builder produces links to absolute paths for JS- and CSS-files #35

Open
holmboe opened this issue Sep 25, 2024 · 0 comments
Open

Comments

@holmboe
Copy link
Contributor

holmboe commented Sep 25, 2024

Describe the bug

The HTML builder uses absolute paths to the JS- and CSS-file.

For whatever reason RTD actually resolves the absolute paths. However in my own tests an absolute path to <script src="/home/MYUSER/.local/pipx/venvs/sphinx/lib/python3.11/site-packages/sphinxcontrib/icon/node_modules/@fortawesome/fontawesome-free/js/all.min.js?v=ec35c6c9"></script> is not found by the webserver.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://sphinx-icon.readthedocs.io/en/latest/quickstart.html
  2. View source
  3. Observe <script src="/home/docs/checkouts/readthedocs.org/user_builds/sphinx-icon/envs/latest/lib/python3.10/site-packages/sphinxcontrib/icon/node_modules/@fortawesome/fontawesome-free/js/all.min.js?v=ec35c6c9"></script> in the source code.

Expected behavior

Relative paths that the webserver can locate and serve.

Desktop (please complete the following information):

  • OS: Linux (WSL1 on Windows 11)
  • Browser: Firefox
sphinx-7.4.7
sphinx_design-0.6.1
sphinx_icon-0.2.2
sphinx_immaterial-0.12.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant