Skip to content

Commit ef8a987

Browse files
committed
Remove Jekyll redirection again
1 parent 107ad1b commit ef8a987

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
with:
1919
python-version: '3.12'
2020
- run: pip install sphinx sphinx_rtd_theme sphinx-reredirects
21-
- run: make gh-pages
21+
- run: make html
2222
- name: Upload artifact
2323
uses: actions/upload-pages-artifact@v3
2424
with:

Makefile

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,6 @@ help:
1616
livehtml:
1717
sphinx-autobuild -b html $(ALLSPHINXOPTS) $(SOURCEDIR) $(BUILDDIR)/html
1818

19-
gh-pages:
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 does NOT treat this as a Jekyll site
28-
touch $(BUILDDIR)/html/.nojekyll
29-
3019
# Catch-all target: route all unknown targets to Sphinx using the new
3120
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
3221
%: Makefile

0 commit comments

Comments
 (0)