8000 DOC Fix broken link to docs (#15364) · scikit-learn/scikit-learn@9caf835 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9caf835

Browse files
thomasjpfanrth
authored andcommitted
DOC Fix broken link to docs (#15364)
1 parent 67ea25d commit 9caf835

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

doc/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,9 @@
171171

172172
# Additional templates that should be rendered to pages, maps page names to
173173
# template names.
174-
html_additional_pages = {'index': 'index.html'}
174+
html_additional_pages = {
175+
'index': 'index.html',
176+
'documentation': 'documentation.html'} # redirects to index
175177

176178
# If false, no module index is generated.
177179
html_domain_indices = False

doc/templates/documentation.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="Refresh" content="0; url={{ pathto('index') }}" />
7+
<meta name="Description" content="scikit-learn: machine learning in Python">
8+
<link rel="canonical" href="{{ pathto('index') }}" />
9+
<title>scikit-learn: machine learning in Python</title>
10+
</head>
11+
<body>
12+
<p>You will be automatically redirected to the <a href="{{ pathto('index') }}">main page</a>.</p>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)
0