Skip to content

Commit

Permalink
docs: re-introduce /nightly/ redirect
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Oct 9, 2023
1 parent 525b922 commit a57d9fd
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/conda_and_docs_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,26 @@ jobs:
with:
name: DocumentationHTML
path: docs/build
- name: redirect to to nightly
run: |
cat <<EOF > docs/build/index.html
<!DOCTYPE html>
<html lang="en-GB">
<meta charset="utf-8">
<title>Redirecting&hellip;</title>
<link rel="canonical" href="$DESTINATION">
<script>location="$DESTINATION"</script>
<meta http-equiv="refresh" content="0; url=$DESTINATION">
<meta name="robots" content="noindex">
<h1>Redirecting&hellip;</h1>
<a href="$DESTINATION">Click here if you are not redirected.</a>
</html>
env:
DESTINATION: https://tomographicimaging.github.io/CIL/nightly/
- name: Push changes
uses: casperdcl/push-dir@v1
with:
message: Update documentation
branch: gh-pages
dir: docs/build/nightly
dir: docs/build
nojekyll: true

0 comments on commit a57d9fd

Please sign in to comment.