Skip to content

Commit

Permalink
export as env var
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Sep 24, 2024
1 parent 610b0c1 commit 805645f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ build:
python: "3"
commands:
# Install doxygen from source distributions (conda forge does not keep up-to-date doxygen releases)
- DOXYGEN_VERSION=1.12.0
- export DOXYGEN_VERSION="1.12.0"
- mkdir .doxygen && cd .doxygen
- 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
Expand All @@ -23,15 +23,15 @@ build:
- sudo make install
- cd ..
# get lib version
- release=v$(awk -F "=" '/version/ {print $2}' library.properties)
- export RF24_VERSION=v$(awk -F "=" '/version/ {print $2}' library.properties)
# overwrite Doxyfile values
- touch docs/doxygenAction
- echo "PROJECT_NUMBER = $release" >> 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
- mv docs/html/ $READTHEDOCS_OUTPUT/
- mv docs/html/ "$READTHEDOCS_OUTPUT/"

# # Build documentation in the docs/ directory with Sphinx
# sphinx:
Expand Down

0 comments on commit 805645f

Please sign in to comment.