Skip to content

Commit

Permalink
group sequential commands in a long script
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Sep 24, 2024
1 parent 7e72579 commit d207c0e
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,24 @@ build:
python: "3"
commands:
# Install doxygen from source distributions (conda forge does not keep up-to-date doxygen releases)
- export DOXYGEN_VERSION="1.12.0"
- mkdir .doxygen && cd .doxygen
- echo $(pwd)
- echo "https://sourceforge.net/projects/doxygen/files/rel-$DOXYGEN_VERSION/doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz"
- curl -L https://sourceforge.net/projects/doxygen/files/rel-$DOXYGEN_VERSION/doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz > doxygen.tar.gz
- gunzip doxygen.tar.gz
- tar xf doxygen.tar
- cd doxygen-$DOXYGEN_VERSION
- sudo make install
- cd ..
# get lib version
- export RF24_VERSION=v$(awk -F "=" '/version/ {print $2}' library.properties)
# overwrite Doxyfile values
- touch docs/doxygenAction
- echo "PROJECT_NUMBER = $RF24_VERSION" >> docs/doxygenAction
- echo -e "\n@INCLUDE = doxygenAction" >> docs/Doxyfile
- >
DOXYGEN_VERSION="1.12.0" &&
mkdir .doxygen && cd .doxygen &&
echo $(pwd) &&
echo "https://sourceforge.net/projects/doxygen/files/rel-$DOXYGEN_VERSION/doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz" &&
curl -L https://sourceforge.net/projects/doxygen/files/rel-$DOXYGEN_VERSION/doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz > doxygen.tar.gz &&
gunzip doxygen.tar.gz &&
tar xf doxygen.tar &&
cd doxygen-$DOXYGEN_VERSION &&
sudo make install &&
cd ..
# get lib version & overwrite Doxyfile values
- >
echo $(pwd) &&
RF24_VERSION=v$(awk -F "=" '/version/ {print $2}' library.properties) &&
touch docs/doxygenAction &&
echo "PROJECT_NUMBER = $RF24_VERSION" >> docs/doxygenAction &&
echo -e "\n@INCLUDE = doxygenAction" >> docs/Doxyfile
# run doxygen
- doxygen
# copy output to RTD output path for HTML files
Expand Down

0 comments on commit d207c0e

Please sign in to comment.