|
3 | 3 | # Read the Docs configuration file |
4 | 4 | # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details |
5 | 5 |
|
6 | | -# Required |
7 | 6 | version: 2 |
8 | 7 |
|
9 | | -# Set the version of Python |
10 | 8 | build: |
11 | 9 | os: ubuntu-24.04 |
12 | 10 | tools: |
13 | 11 | python: "miniconda-latest" |
14 | 12 | commands: |
15 | 13 | # because we are overriding the build commands, we need to setup the environment ourselves |
16 | | - - cat docs/environment.yml |
17 | | - - conda env create --quiet --name $READTHEDOCS_VERSION --file docs/environment.yml |
18 | | - - cmake -B build -S . |
19 | | - - cmake --build build --target docs |
| 14 | + - cat third-party/doxyconfig/environment.yml |
| 15 | + - conda env create --quiet --name ${READTHEDOCS_VERSION} --file third-party/doxyconfig/environment.yml |
| 16 | + - npm install "@fortawesome/fontawesome-free" |
| 17 | + - mkdir -p ${READTHEDOCS_OUTPUT}html/assets/fontawesome/css |
| 18 | + - mkdir -p ${READTHEDOCS_OUTPUT}html/assets/fontawesome/js |
| 19 | + - cp node_modules/@fortawesome/fontawesome-free/css/all.min.css ${READTHEDOCS_OUTPUT}html/assets/fontawesome/css |
| 20 | + - cp node_modules/@fortawesome/fontawesome-free/js/all.min.js ${READTHEDOCS_OUTPUT}html/assets/fontawesome/js |
| 21 | + - cp -r node_modules/@fortawesome/fontawesome-free/webfonts ${READTHEDOCS_OUTPUT}html/assets/fontawesome/ |
| 22 | + - | |
| 23 | + wget "https://raw.githubusercontent.com/LizardByte/.github/master/branding/logos/favicon.ico" \ |
| 24 | + -O ${READTHEDOCS_OUTPUT}lizardbyte.ico |
| 25 | + - | |
| 26 | + wget "https://raw.githubusercontent.com/LizardByte/.github/master/branding/logos/logo-128x128.png" \ |
| 27 | + -O ${READTHEDOCS_OUTPUT}lizardbyte.png |
| 28 | + - cp ./third-party/doxyconfig/Doxyfile ./docs/Doxyfile-doxyconfig |
| 29 | + - cp ./third-party/doxyconfig/header.html ./docs/header-doxyconfig.html |
| 30 | + - cat ./docs/Doxyfile >> ./docs/Doxyfile-doxyconfig |
| 31 | + - cd docs && doxygen Doxyfile-doxyconfig |
20 | 32 |
|
21 | 33 | # using conda, we can get newer doxygen and graphviz than ubuntu provide |
22 | 34 | # https://github.com/readthedocs/readthedocs.org/issues/8151#issuecomment-890359661 |
23 | 35 | conda: |
24 | | - environment: docs/environment.yml |
| 36 | + environment: third-party/doxyconfig/environment.yml |
25 | 37 |
|
26 | 38 | submodules: |
27 | 39 | include: all |
|
0 commit comments