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

RTD: Redirect pages to .html files #984

Open
LecrisUT opened this issue Mar 14, 2024 · 1 comment
Open

RTD: Redirect pages to .html files #984

LecrisUT opened this issue Mar 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@LecrisUT
Copy link
Contributor

LecrisUT commented Mar 14, 2024

Description

Navigating a static page seems to be broken when hosted on RTD. The files are there, but the path /quickstart does not automatically translate to /quickstart.html

Workaround

Was hoping that adding symlinks would resolve this issue, but apparently not:

    - find $READTHEDOCS_OUTPUT/html -type f -iname "*.html" -exec sh -c "ln -s \$(basename \"\$1\") \$(dirname \"\$1\")/\$(basename \"\$1\" .html)" sh {} \;

So back to the drawing board

Proposed solution

Wish I knew 😞

Related

@LecrisUT
Copy link
Contributor Author

There might be a solution for RTD using their builtin redirection readthedocs/readthedocs.org#11220. Still I'm not sure if this is an issue to be solved at the generation level or at the hosting level. npx serve indeed seems to redirect all urls appropriately, but how does it do that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant