doc: fix 404 processing
Some additional tweaks to the publish script, image, and root-level redirect to fix a redirect recursion problem. Signed-off-by: David B. Kinder <david.b.kinder@intel.com>
This commit is contained in:
parent
dffa75e50f
commit
b67d88cab3
|
@ -82,12 +82,12 @@ publish:
|
|||
cd $(PUBLISHDIR)/..; git pull origin master
|
||||
rm -fr $(PUBLISHDIR)/*
|
||||
cp -r $(BUILDDIR)/html/* $(PUBLISHDIR)
|
||||
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
|
||||
ifeq ($(RELEASE),latest)
|
||||
cp _build/html/404.html $(PUBLISHDIR)/../404.html
|
||||
endif
|
||||
cp scripts/publish-404.html $(PUBLISHDIR)/../404.html
|
||||
endif
|
||||
cd $(PUBLISHDIR)/..; git add -A; git commit -s -m "publish $(RELEASE)"; git push origin master;
|
||||
|
||||
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 297 KiB After Width: | Height: | Size: 81 KiB |
|
@ -0,0 +1,14 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Page not found in ACRN Hypervisor documentation</title>
|
||||
<meta http-equiv="refresh" content="1; URL=/latest/404.html" />
|
||||
<link rel="canonical" href="/latest/404.html" />
|
||||
<script>
|
||||
window.location.href = "/latest/404.html"
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<p>Please visit the <a href="/latest/">latest ACRN documentation</a></p>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue