Fix custom 404

This commit is contained in:
Dan Bader
2018-07-16 13:49:52 -07:00
parent e1a965067b
commit 728b9f10a2
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -59,6 +59,10 @@ dirhtml:
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/dirhtml."
netlify: dirhtml
@cp $(BUILDDIR)/dirhtml/404/index.html $(BUILDDIR)/dirhtml/404.html
@cp _extra/* $(BUILDDIR)/dirhtml/
singlehtml:
$(SPHINXBUILD) -b singlehtml $(ALLSPHINXOPTS) $(BUILDDIR)/singlehtml
@echo
+5
View File
@@ -0,0 +1,5 @@
# https://www.netlify.com/docs/redirects/
# Redirect internal URL to python-guide.org
# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 301!