mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-17 06:49:25 +00:00
doc: add a custom 404 page
Add a site-wide custom error page for broken references within the site. Besides giving a better user experience, it's also easier to track broken links to the site using google analytics (looking for hits to the 404.html page and noticing the referrer. Note we only "publish" the custom 404.html when publishing the latest documents (not for released versions) so we always get the latest left-navigation menu when a 404 error occurs. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
committed by
David Kinder
parent
f981ddbd1b
commit
dffa75e50f
@@ -85,6 +85,9 @@ publish:
|
||||
cp scripts/publish-README.md $(PUBLISHDIR)/../README.md
|
||||
cp scripts/publish-index.html $(PUBLISHDIR)/../index.html
|
||||
cp scripts/publish-robots.txt $(PUBLISHDIR)/../robots.txt
|
||||
ifeq ($(RELEASE),latest)
|
||||
cp _build/html/404.html $(PUBLISHDIR)/../404.html
|
||||
endif
|
||||
cd $(PUBLISHDIR)/..; git add -A; git commit -s -m "publish $(RELEASE)"; git push origin master;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user