-
Notifications
You must be signed in to change notification settings - Fork 191
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
Docs: Add redirects from old documenation #4457
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #4457 +/- ##
===========================================
+ Coverage 79.29% 79.29% +0.01%
===========================================
Files 475 475
Lines 34835 34835
===========================================
+ Hits 27618 27620 +2
+ Misses 7217 7215 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Will this also redirect links of the form: https://aiida-core.readthedocs.io/en/stable/apidoc/aiida.orm.html ? |
Also to add to leopold's: does it also rederict link to sections? https://aiida-core.readthedocs.io/en/v1.0.0/apidoc/aiida.orm.html#module-aiida.orm |
I'm not sure what you mean "of the form"? As in with the "stable" |
You have to specify every page you wish redirected, then it basically just adds an HTML page like: docs/build/html/working_with_aiida/index.html <html>
<head>
<noscript>
<meta http-equiv="refresh" content="0; url=../howto/index.html"/>
</noscript>
</head>
<body>
<p>You should have been redirected.</p>
<a href="../howto/index.html">If not, click here to continue.</a>
<script>
window.location.href = '../howto/index.html' + (window.location.search || '') + (window.location.hash || '');
</script>
</body>
</html> |
The link has the aiida-core prefix, not aiida and then with projects/aiida-core. |
it will also "solve" chained redirects, such that you won't be redirected through multiple pages |
Yeh it does not matter about the prefix, since it is still pointed at the same site with the same HTML pages |
you can give it a go now at e.g. https://1394-77234579-gh.circle-artifacts.com/0/html/install/prerequisites.html |
Thanks @chrisjsewell , this looks great to me! Can you take care of searching the items in the list and make sure that the doc links mentioned there are added to the redirects? After this, I'm happy to review/approve the PR |
Thanks! Looks great, lets maybe keep this open and we merge it tomorrow night - anybody who finds more redirects can add them as comments to this PR |
Fyi, the google doc with the list of broken links is here: https://docs.google.com/document/d/1ayC2jO3zPLybE3tbmBsUMl7SqWwUltzerDYn3ym8nG8/edit# (only accessible from EPFL) |
@chrisjsewell Not sure which links you already covered but the link I mentioned in the issue above remains broken: https://aiida-core.readthedocs.io/en/stable/apidoc/aiida.orm.html Also e.g. |
Hmm that may not be this PR's fault - there seem to be issues with building the docs https://readthedocs.org/projects/aiida-core/builds/ |
Yeh I haven't covered any of them yet, since people wanted to use this feature imminently, I was going to add the specific ones from the google docs in a separate PR |
This adds redirects from old documentation,
e.g. if you try to open https://aiida.readthedocs.io/projects/aiida-core/en/latest/install/quick_installation.html, it will redirect you to https://aiida.readthedocs.io/projects/aiida-core/en/v1.0.0/intro/get_started.html