Skip to content

Commit

Permalink
Make symlinks of the .html files
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
  • Loading branch information
LecrisUT committed Mar 14, 2024
1 parent 09193bf commit 5345e55
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,6 @@ build:
# - /usr/bin/rsync -a --mkpath docs/_build/ $READTHEDOCS_OUTPUT/
- mkdir -p $READTHEDOCS_OUTPUT
- cp -a docs/_build/* $READTHEDOCS_OUTPUT/
# Black magic to make symlinks of `.html` files recursively
# https://stackoverflow.com/a/65833364/22352077
- find $READTHEDOCS_OUTPUT/html -type f -iname "*.html" -exec sh -c 'ln -s $(basename "$1") $(dirname "$1")/$(basename "$1" .html)' sh {} \';\'

0 comments on commit 5345e55

Please sign in to comment.