Maintain symlink to docs for latest release (#8555)
authorGereon Kremer <gkremer@cs.stanford.edu>
Mon, 4 Apr 2022 20:37:24 +0000 (13:37 -0700)
committerGitHub <noreply@github.com>
Mon, 4 Apr 2022 20:37:24 +0000 (13:37 -0700)
This PR creates/updates a symlink called latest to the last release. This simplifies permalinks into the documentation.

.github/workflows/docs_upload.yml

index b5b28363c1c57718ecfa38dc85220a78f6be4859..ec8c3aaf5f4a2517f4deba8964360fa70ce7b50e 100644 (file)
@@ -124,6 +124,9 @@ jobs:
             cp -r docs-new target-releases/$NAME
             cd target-releases/
 
+            rm -f latest
+            ln -s $NAME latest
+
             python3 genversions.py
             git add .