From a29ef9178e998ca846b8e42d26d138d948ed9bbb Mon Sep 17 00:00:00 2001 From: "David B. Kinder" Date: Thu, 9 Apr 2020 13:48:22 -0700 Subject: [PATCH] doc: remove /404.html redirect Using a root-level /404.html as a redirect to the /latest/404.html causes the URL shown in the browser to change so you can't see what the error-causing URL was. Instead of a redirect, copy the /latest/404.html generated by Sphinx to /404.html and edited with a tag that specifies a base URL for all relative URLs on a page. Signed-off-by: David B. Kinder --- doc/Makefile | 2 +- doc/scripts/publish-404.html | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 doc/scripts/publish-404.html diff --git a/doc/Makefile b/doc/Makefile index 9c920dad9..0084e50dd 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -86,7 +86,7 @@ ifeq ($(RELEASE),latest) cp scripts/publish-README.md $(PUBLISHDIR)/../README.md cp scripts/publish-index.html $(PUBLISHDIR)/../index.html cp scripts/publish-robots.txt $(PUBLISHDIR)/../robots.txt - cp scripts/publish-404.html $(PUBLISHDIR)/../404.html + sed 's//\n /' $(BUILDDIR)/html/404.html > $(PUBLISHDIR)/../404.html endif cd $(PUBLISHDIR)/..; git add -A; git commit -s -m "publish $(RELEASE)"; git push origin master; diff --git a/doc/scripts/publish-404.html b/doc/scripts/publish-404.html deleted file mode 100644 index 79aa6128b..000000000 --- a/doc/scripts/publish-404.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - Page not found in ACRN Hypervisor documentation - - - - - -

Please visit the latest ACRN documentation

- -