Skip to content

Commit

Permalink
Merge pull request #2 from bparks13/issue-69
Browse files Browse the repository at this point in the history
Add redirect page
  • Loading branch information
bparks13 authored Jan 17, 2025
2 parents 39aec3f + ccb7c50 commit 339dfb0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ SPHINXBUILD = sphinx-build
SPHINXBUILDMULTIVERSION = sphinx-multiversion
SOURCEDIR = source
BUILDDIR = docs
BUILDDIRHTML = $(BUILDDIR)/html

# Put it first so that "make" without argument is like "make help".
help:
Expand All @@ -15,7 +16,8 @@ help:
.PHONY: help Makefile

html: Makefile
@$(SPHINXBUILDMULTIVERSION) "$(SOURCEDIR)" "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)
@$(SPHINXBUILDMULTIVERSION) "$(SOURCEDIR)" "$(BUILDDIRHTML)" $(SPHINXOPTS) $(O)
cp source/_templates/redirect.html "$(BUILDDIRHTML)/index.html"

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
Expand Down
9 changes: 9 additions & 0 deletions source/_templates/redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Redirecting to master branch</title>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=./main/index.html">
<link rel="canonical" href="https://bparks13.github.io/ONI/main/index.html">
</head>
</html>

0 comments on commit 339dfb0

Please sign in to comment.