File tree Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Expand file tree Collapse file tree 4 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 18
18
- uses : actions/setup-python@v5
19
19
with :
20
20
python-version : ' 3.13'
21
- - run : pip install sphinx sphinx_rtd_theme
21
+ - run : pip install sphinx sphinx_rtd_theme sphinx-reredirects
22
22
- run : make gh-pages
23
23
- name : Upload artifact
24
24
uses : actions/upload-pages-artifact@v3
Original file line number Diff line number Diff line change 1
1
FROM python:3.13-alpine
2
2
3
- RUN pip install --no-cache-dir sphinx sphinx_rtd_theme sphinx-autobuild
3
+ RUN pip install --no-cache-dir sphinx sphinx_rtd_theme sphinx-autobuild sphinx-reredirects
Original file line number Diff line number Diff line change @@ -18,6 +18,15 @@ livehtml:
18
18
19
19
gh-pages :
20
20
@$(SPHINXBUILD ) -b html " $( SOURCEDIR) " $(BUILDDIR ) /html/en/latest $(SPHINXOPTS )
21
+ # Ensure Jekyll is enabled with correct YAML formatting
22
+ printf -- " plugins:\n - jekyll-redirect-from\n" > $(BUILDDIR ) /html/_config.yml
23
+ # Create redirect for root to /en/latest/
24
+ printf -- " ---\nredirect_to: /en/latest/\n---\n" > $(BUILDDIR ) /html/index.md
25
+ # Create redirect for /en/ to /en/latest/
26
+ printf -- " ---\nredirect_to: /en/latest/\n---\n" > $(BUILDDIR ) /html/en/index.md
27
+ # Ensure GitHub Pages processes Jekyll
28
+ rm -f $(BUILDDIR ) /html/.nojekyll
29
+
21
30
# Catch-all target: route all unknown targets to Sphinx using the new
22
31
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
23
32
% : Makefile
Original file line number Diff line number Diff line change 42
42
# ones.
43
43
#
44
44
extensions = [
45
- 'sphinx.ext.todo'
45
+ 'sphinx.ext.todo' ,
46
+ 'sphinx_reredirects'
46
47
]
47
48
48
49
# Add any paths that contain templates here, relative to this directory.
121
122
122
123
html_favicon = 'img/favicon.ico'
123
124
125
+ redirects = {
126
+ "hub/setup/requirements/index" : "/hub/deployment.html#hardware-requirements" ,
127
+ "hub/setup/billing/index" : "/hub/license.html" ,
128
+ "hub/setup/keycloak-administration/index" : "/hub/user-group-management.html" ,
129
+ "hub/setup/index" : "/hub/deployment.html" ,
130
+ "hub/access-vault/unlocking-a-vault/4.-vault-unlocked/index" : "/hub/access-vault/unlocking-a-vault/vault-unlocked.html" ,
131
+ "hub/access-vault/unlocking-a-vault/3.-add-device/index" : "/hub/access-vault/unlocking-a-vault/add-device.html" ,
132
+ "hub/access-vault/unlocking-a-vault/2.-authenticate/index" : "/hub/access-vault/unlocking-a-vault/authenticate.html" ,
133
+ "hub/access-vault/unlocking-a-vault/1.-click-unlock/index" : "/hub/access-vault/unlocking-a-vault/click-unlock.html" ,
134
+ "desktop/vault-mounting/index" : "/desktop/volume-type.html"
135
+ }
136
+
124
137
# -- Options for HTMLHelp output ---------------------------------------------
125
138
126
139
# Output file base name for HTML help builder.
You can’t perform that action at this time.
0 commit comments