Skip to content

Commit 728b9f1

Browse files
committed
Fix custom 404
1 parent e1a9650 commit 728b9f1

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ dirhtml:
5959
@echo
6060
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
6161

62+
netlify: dirhtml
63+
@cp $(BUILDDIR)/dirhtml/404/index.html $(BUILDDIR)/dirhtml/404.html
64+
@cp _extra/* $(BUILDDIR)/dirhtml/
65+
6266
singlehtml:
6367
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
6468
@echo

docs/_extra/_redirects

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# https://www.netlify.com/docs/redirects/
2+
3+
4+
# Redirect internal URL to python-guide.org
5+
# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 301!

0 commit comments

Comments
 (0)