Skip to content

Commit

Permalink
Update the builder os for docs setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna-13-cyber authored and vgvassilev committed Aug 4, 2023
1 parent 1d8f664 commit 9beeff6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
12 changes: 7 additions & 5 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ sphinx:
builder: html

build:
image: latest
os: "ubuntu-22.04"
tools:
python: "3.11"
apt_packages:
- clang-10
- clang-14
- cmake
- libclang-10-dev
- llvm-10-dev
- llvm-10-tools
- libclang-14-dev
- llvm-14-dev
- llvm-14-tools
4 changes: 2 additions & 2 deletions docs/internalDocs/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
html_extra_path = [CLAD_ROOT + '/build/docs/internalDocs/doxygen/html']

import subprocess
command = 'mkdir {0}/build; cd {0}/build; cmake ../ -DClang_DIR=/usr/lib/llvm-10\
-DLLVM_DIR=/usr/lib/llvm-10 -DCLAD_ENABLE_DOXYGEN=ON\
command = 'mkdir {0}/build; cd {0}/build; cmake ../ -DClang_DIR=/usr/lib/llvm-14\
-DLLVM_DIR=/usr/lib/llvm-14 -DCLAD_ENABLE_DOXYGEN=ON\
-DCLAD_INCLUDE_DOCS=ON'.format(CLAD_ROOT)
subprocess.call(command, shell=True)
subprocess.call('doxygen {0}/build/docs/internalDocs/doxygen.cfg'.format(CLAD_ROOT), shell=True)
4 changes: 2 additions & 2 deletions docs/userDocs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@

CMAKE_CONFIGURE_COMMAND = (
"mkdir {0}/build; cd {0}/build; cmake ../ "
"-DClang_DIR=/usr/lib/llvm-10 -DLLVM_DIR="
"/usr/lib/llvm-10 -DCLAD_ENABLE_DOXYGEN=ON "
"-DClang_DIR=/usr/lib/llvm-14 -DLLVM_DIR="
"/usr/lib/llvm-14 -DCLAD_ENABLE_DOXYGEN=ON "
"-DCLAD_INCLUDE_DOCS=ON"
).format(CLAD_ROOT)
subprocess.call(CMAKE_CONFIGURE_COMMAND, shell=True)
Expand Down

0 comments on commit 9beeff6

Please sign in to comment.