Skip to content

Commit b6266ba

Browse files
committed
Fix 404 relative paths
1 parent e3bedf7 commit b6266ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ dirhtml:
6161

6262
netlify: dirhtml
6363
@cp $(BUILDDIR)/dirhtml/404/index.html $(BUILDDIR)/dirhtml/404.html
64+
@sed -i -e 's/src="..\//src="\//g' $(BUILDDIR)/dirhtml/404.html
65+
@sed -i -e 's/href="..\//href="\//g' $(BUILDDIR)/dirhtml/404.html
6466
@cp _extra/* $(BUILDDIR)/dirhtml/
6567

6668
singlehtml:

0 commit comments

Comments
 (0)