summaryrefslogtreecommitdiff
path: root/.pio/libdeps/esp32-s3-n16r8/RF24/.readthedocs.yaml
blob: 6935517feb4a6c2edb1829b092cd0cf284650c42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# .readthedocs.yaml
# Read the Docs configuration file
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details

# Required
version: 2

build:
  os: "ubuntu-24.04"
  # apt_packages:
  #   - libclang1-12
  #   - libclang-cpp12
  tools:
    python: "3"
  commands:
    # Install doxygen from source distributions (conda forge does not keep up-to-date doxygen releases)
    - >
      DOXYGEN_VERSION="1.15.0" &&
      RELEASE_TITLE=$(echo ${DOXYGEN_VERSION} | tr '.' '_') &&
      mkdir .doxygen && cd .doxygen &&
      curl -L "https://github.com/doxygen/doxygen/releases/download/Release_${RELEASE_TITLE}/doxygen-${DOXYGEN_VERSION}.linux.bin.tar.gz" --output doxygen.tar.gz &&
      gunzip doxygen.tar.gz &&
      tar xf doxygen.tar &&
      mv doxygen-$DOXYGEN_VERSION/bin/doxygen ./
    # get lib version & overwrite Doxyfile values
    - python3 .github/doxygen.py
    # run doxygen
    - cd docs && ../.doxygen/doxygen
    # copy output to RTD output path for HTML files
    - ls -R docs/html/
    - mkdir -p ${READTHEDOCS_OUTPUT}
    - mv docs/html/ "${READTHEDOCS_OUTPUT}"