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

Checking this plugin without deploying: CORS issues and RTD PR integration #33

Open
rth opened this issue Apr 17, 2021 · 0 comments
Open

Comments

@rth
Copy link

rth commented Apr 17, 2021

Thanks for this package!

I was just wondering how would one check that it's working as expected without deploying.

  • If I build the doc locally, I get the following error,
    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at file:///..../docs/_build/html/_static/data/versionwarning-data.json. (Reason: CORS request not http)
    
  • If I build it locally, served via python -m http.server I get,
    Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://readthedocs.org/api/v2/version/?project__slug=&active=true. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)
    
  • I build it via ReadTheDocs PR integration in DOC Make dev documentation consistent + version warnings pyodide/pyodide#1479 the console shows,
    Running version: 1479
    getHighestVersion
    
    but that's not really sufficient to determine what would be the latest version linked, and the banner is not shown since there is already a banner injected by RTD.

Eventually I could test it by deploying the docs as latest, but I would also like to check that for older versions the redirected version is stable not latest and it seems that that's not possible, without actually releasing 2 versions, unless I'm missing something?

Maybe increasing the verbosity of console logging would already help.

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