8000 DOC Fix broken link to docs by thomasjpfan · Pull Request #15364 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC Fix broken link to docs #15364

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

Merged
merged 4 commits into from
Oct 27, 2019
Merged

Conversation

thomasjpfan
Copy link
Member
@thomasjpfan thomasjpfan commented Oct 25, 2019

Reference Issues/PRs

Fixes #15362

What does this implement/fix? Explain your changes.

Adds documentation as a redirect to index

@thomasjpfan thomasjpfan changed the title DOC Fix broken link to docs [doc build] [MRG] DOC Fix broken link to docs Oct 25, 2019
@thomasjpfan
Copy link
Member Author

Copy link
Member
@NicolasHug NicolasHug left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nits but LGTM, can't hurt I guess

<meta http-equiv="Refresh" content="0; url={{ pathto('index') }}" />
</head>
<body>
<p>Please follow <a href="{{ pathto('index') }}">this link</a>.</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe something like

"You will be automatically redirected to the main page"

doc/conf.py Outdated
@@ -171,7 +171,8 @@

# Additional templates that should be rendered to pages, maps page names to
# template names.
html_additional_pages = {'index': 'index.html'}
html_additional_pages = {'index': 'index.html',
'documentation': 'documentation.html'}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'documentation': 'documentation.html'}
'documentation': 'documentation.html'} # redirects to index```

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Refresh" content="0; url={{ pathto('index') }}" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably also use a <link rel=canonical to tell search engines this is permanent

Copy link
Member
@rth rth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! CI is failing because of an unrelated issue on master..

@rth rth changed the title [MRG] DOC Fix broken link to docs DOC Fix broken link to docs Oct 27, 2019
@rth rth merged commit 9caf835 into scikit-learn:master Oct 27, 2019
@oke-aditya
Copy link
  • It is not fixed yet.

image

@oke-aditya
Copy link

image

  • This link is the problem

@NicolasHug
Copy link
Member

Can confirm it works now @oke-aditya . Maybe the build wasn't updated yet when you tried

@oke-aditya
Copy link
  • Yes, it works now. No issues.

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.

Website Broken, not loading
5 participants
0