File tree Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change 70
70
- name : Copy versions.json to build output
71
71
run : cp docs/versions.json docs/_build/
72
72
73
- - name : Create 404 page for GitHub Pages
74
- if : ${{ github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
75
- run : |
76
- # Create a symlink of the 404.html file in the root directory for GitHub Pages
77
- # This ensures that the 404 page is used for all missing pages across all versions
78
- cp docs/_build/404.html docs/_build/404.html.bak
79
- cat <<EOF > docs/_build/404.html
80
- <!DOCTYPE html>
81
- <html>
82
- <head>
83
- <meta charset="UTF-8">
84
- <meta http-equiv="refresh" content="0; url=./latest/404.html">
85
- <title>Page Not Found</title>
86
- </head>
87
- <body>
88
- <p>If you are not redirected automatically, follow this <a href="./latest/404.html">link to the 404 page</a>.</p>
89
- </body>
90
- </html>
91
- EOF
92
- # Restore the original 404.html in the version directory
93
- mv docs/_build/404.html.bak docs/_build/404.html
94
-
95
73
- name : Create redirect index.html
96
74
if : ${{ github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/main') }}
97
75
run : |
Original file line number Diff line number Diff line change 57
57
"icon" : "fa-solid fa-box" ,
58
58
},
59
59
],
60
+ "navbar_start" : ["navbar-logo" , "version-switcher" ],
60
61
"external_links" : [
61
62
{"name" : "xarray" , "url" : "https://xarray.pydata.org/" },
62
63
],
You can’t perform that action at this time.
0 commit comments