Skip to content

Commit

Permalink
docs: add redirect from landing to main docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ss2165 committed Jul 2, 2024
1 parent fc71a44 commit 27404fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
- name: Upload artifact.
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/build/main
path: ./docs/build

publish:
name: Publish docs.
Expand Down
9 changes: 9 additions & 0 deletions hugr-py/docs/_static/_redirect.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<!DOCTYPE html>
<html>
<head>
<title>Redirecting to main branch</title>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=./main/index.html">
<link rel="canonical" href="https://cqcl.github.io/hugr/main/index.html">
</head>
</html>
3 changes: 2 additions & 1 deletion hugr-py/docs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
mkdir build

touch build/.nojekyll # Disable jekyll to keep files starting with underscores

# copy redirect file
cp ./_static/_redirect.html ./build/index.html
sphinx-multiversion ./api-docs ./build

0 comments on commit 27404fa

Please sign in to comment.