Skip to content

Commit 11a7bb9

Browse files
committed
[joinrpg-docs-253] add backward compatibility to static paths
1 parent 60e736b commit 11a7bb9

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.github/workflows/dev-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: Build static files
3030
run: |
3131
cd docs
32-
make html
32+
make html-all
3333
3434
- name: Upload build artifact
3535
uses: actions/upload-artifact@v5.0.0

.github/workflows/prod-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Build static files
2828
run: |
2929
cd docs
30-
make html
30+
make html-all
3131
3232
- name: Upload build artifact
3333
uses: actions/upload-artifact@v5.0.0

docs/Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,17 @@ html:
5454
@echo
5555
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
5656

57+
.PHONY: html-old
58+
html-old:
59+
$(SPHINXBUILD) -b html -D html_baseurl='/ru/latest/' $(ALLSPHINXOPTS) $(BUILDDIR)/html/ru/latest
60+
@echo
61+
@echo "Old link style version for backward compatibility built in $(BUILDDIR)/html/ru/latest"
62+
63+
.PHONY: html-all
64+
html-all: html html-old
65+
@echo
66+
@echo "Build finished. HTML pages available at / and /ru/latest"
67+
5768
.PHONY: dirhtml
5869
dirhtml:
5970
$(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml

docs/conf.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,6 @@
318318
#
319319
# man_show_urls = False
320320

321-
322321
# -- Options for Texinfo output -------------------------------------------
323322

324323
# Grouping the document tree into Texinfo files. List of tuples

0 commit comments

Comments
 (0)