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

Docs: Add redirects from old documenation #4457

Merged
merged 2 commits into from
Oct 19, 2020

Conversation

chrisjsewell
Copy link
Member

@codecov
Copy link

codecov bot commented Oct 19, 2020

Codecov Report

Merging #4457 into develop will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             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     
Flag Coverage Δ
#django 73.14% <ø> (+0.01%) ⬆️
#sqlalchemy 72.36% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiida/transports/plugins/local.py 82.83% <0.00%> (+0.26%) ⬆️
aiida/engine/daemon/runner.py 82.76% <0.00%> (+3.45%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0fb6f72...b7494f0. Read the comment docs.

@ltalirz
Copy link
Member

ltalirz commented Oct 19, 2020

Will this also redirect links of the form: https://aiida-core.readthedocs.io/en/stable/apidoc/aiida.orm.html ?

@ramirezfranciscof
Copy link
Member

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

@chrisjsewell
Copy link
Member Author

Will this also redirect links of the form

I'm not sure what you mean "of the form"? As in with the "stable"

@chrisjsewell
Copy link
Member Author

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>

@ltalirz
Copy link
Member

ltalirz commented Oct 19, 2020

I'm not sure what you mean "of the form"?

The link has the aiida-core prefix, not aiida and then with projects/aiida-core.
In any case, I guess it will work but we will nevertheless need the list of broken links to check that things have been fixed.

@chrisjsewell
Copy link
Member Author

it will also "solve" chained redirects, such that you won't be redirected through multiple pages

@chrisjsewell
Copy link
Member Author

chrisjsewell commented Oct 19, 2020

The link has the aiida-core prefix, not aiida and then with projects/aiida-core.

Yeh it does not matter about the prefix, since it is still pointed at the same site with the same HTML pages

@chrisjsewell
Copy link
Member Author

@ltalirz
Copy link
Member

ltalirz commented Oct 19, 2020

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

@giovannipizzi
Copy link
Member

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

@ltalirz
Copy link
Member

ltalirz commented Oct 19, 2020

Fyi, the google doc with the list of broken links is here: https://docs.google.com/document/d/1ayC2jO3zPLybE3tbmBsUMl7SqWwUltzerDYn3ym8nG8/edit#

(only accessible from EPFL)

@sphuber sphuber merged commit 4791046 into aiidateam:develop Oct 19, 2020
@ltalirz
Copy link
Member

ltalirz commented Oct 19, 2020

@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.
https://aiida-core.readthedocs.io/en/stable/import_export/main.html#export-file-format

@ltalirz
Copy link
Member

ltalirz commented Oct 19, 2020

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/

@chrisjsewell
Copy link
Member Author

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

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

Successfully merging this pull request may close these issues.

5 participants