From 805645f04d3ebac7b851e5e47b9ee1d190d96466 Mon Sep 17 00:00:00 2001 From: Brendan <2bndy5@gmail.com> Date: Tue, 24 Sep 2024 03:13:56 -0700 Subject: [PATCH] export as env var --- .readthedocs.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 447c4e10..6521d5db 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -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 @@ -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: