File tree Expand file tree Collapse file tree 3 files changed +18
-20
lines changed
examples/feature_selection Expand file tree Collapse file tree 3 files changed +18
-20
lines changed Original file line number Diff line number Diff line change 182
182
183
183
# Additional templates that should be rendered to pages, maps page names to
184
184
# template names.
185
- html_additional_pages = {
186
- "index" : "index.html" ,
187
- "documentation" : "documentation.html" ,
188
- } # redirects to index
185
+ html_additional_pages = {"index" : "index.html" }
189
186
190
187
# If false, no module index is generated.
191
188
html_domain_indices = False
232
229
highlight_version = "." .join (latest_highlights .split ("_" )[- 3 :- 1 ])
233
230
html_context ["release_highlights_version" ] = highlight_version
234
231
232
+
233
+ # redirects dictionary maps from old links to new links
234
+ redirects = {
235
+ "documentation" : "index" ,
236
+ "auto_examples/feature_selection/plot_permutation_test_for_classification" : (
237
+ "auto_examples/model_selection/plot_permutation_tests_for_classification"
238
+ ),
239
+ }
240
+ html_context ["redirects" ] = redirects
241
+ for old_link in redirects :
242
+ html_additional_pages [old_link ] = "redirects.html"
243
+
244
+
235
245
# -- Options for LaTeX output ------------------------------------------------
236
246
latex_elements = {
237
247
# The paper size ('letterpaper' or 'a4paper').
Original file line number Diff line number Diff line change
1
+ {% set redirect = pathto(redirects[pagename]) %}
1
2
<!DOCTYPE html>
2
3
< html >
3
4
< head >
4
5
< meta charset ="utf-8 ">
5
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
6
- < meta http-equiv ="Refresh " content ="0; url={{ pathto('index') }} " />
7
+ < meta http-equiv ="Refresh " content ="0; url={{ redirect }} " />
7
8
< meta name ="Description " content ="scikit-learn: machine learning in Python ">
8
- < link rel ="canonical " href ="{{ pathto('index') }} " />
9
+ < link rel ="canonical " href ="{{ redirect }} " />
9
10
< title > scikit-learn: machine learning in Python</ title >
10
11
</ head >
11
12
< body >
12
- < p > You will be automatically redirected to the < a href ="{{ pathto('index') }} "> main page</ a > .</ p >
13
+ < p > You will be automatically redirected to the < a href ="{{ redirect }} "> new location of this page</ a > .</ p >
13
14
</ body >
14
15
</ html >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments