Skip to content

Commit

Permalink
Moved RTD script to file
Browse files Browse the repository at this point in the history
RTD uses `/bin/sh` by default

Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
  • Loading branch information
LecrisUT committed Mar 3, 2023
1 parent 03f7fbe commit 176f3fb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,7 @@ build:
python: "3.11"
jobs:
pre_build:
- |
case ${READTHEDOCS_VERSION_TYPE} in
"tag")
python3 scripts/generate_changelog.py --type tag --version ${READTHEDOCS_VERSION}
;;
"external")
python3 scripts/generate_changelog.py --type pull-request
;;
*)
python3 scripts/generate_changelog.py --type release
;;
esac
- ./scripts/Readthedocs_pre_build.sh

sphinx:
configuration: doc/conf.py
13 changes: 13 additions & 0 deletions scripts/Readthedocs_pre_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
!/bin/bash

case "${READTHEDOCS_VERSION_TYPE}" in
"tag")
python3 scripts/generate_changelog.py --type tag --version ${READTHEDOCS_VERSION}
;;
"external")
python3 scripts/generate_changelog.py --type pull-request
;;
*)
python3 scripts/generate_changelog.py --type release
;;
esac

0 comments on commit 176f3fb

Please sign in to comment.