Skip to content

Commit

Permalink
redirect docs/ to docs/latest
Browse files Browse the repository at this point in the history
  • Loading branch information
jpolitz committed May 22, 2023
1 parent aed5de5 commit 0c4c2ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,18 @@ docs/latest:
mkdir -p site/docs/
cp -r latest-docs/build/docs site/docs/latest

site/docs/index.html:
mkdir -p site/docs/
cp src/docs-redirect.html site/docs/index.html

CM_JS = site/js/codemirror.js site/js/pyret.js site/js/runmode.js

.Phony: pages
pages: $(CM_JS)
raco frog -b

.Phony: pages-and-docs
pages-and-docs: pages docs/horizon docs/latest
pages-and-docs: pages docs/horizon docs/latest site/docs/index.html

.Phony: serve
serve:
Expand Down
9 changes: 9 additions & 0 deletions src/docs-redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="refresh" content="0; url='/docs/latest/" />
</head>
<body>
<p>Redirecting to the latest docs, or go directly to <a href="/docs/latest">/docs/latest/</a>.
</body>
</html>

0 comments on commit 0c4c2ee

Please sign in to comment.