Skip to content

Commit

Permalink
Pinned pybind11_mkdoc version
Browse files Browse the repository at this point in the history
  • Loading branch information
themarpe committed Apr 27, 2021
1 parent 93214ad commit d42e8ab
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: |
python -m pip install --upgrade pip
sudo apt install libusb-1.0-0-dev
python -m pip install git+git://github.com/luxonis/pybind11_mkdoc.git@master
python -m pip install -r docs/requirements_mkdoc.txt
- name: Configure project
run: cmake -S . -B build -DDEPTHAI_PYTHON_FORCE_DOCSTRINGS=ON -DDEPTHAI_PYTHON_DOCSTRINGS_OUTPUT="$PWD/docstrings/depthai_python_docstring.hpp"
- name: Build target 'pybind11_mkdoc'
Expand Down
12 changes: 11 additions & 1 deletion docs/ci.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,15 @@ set(project_root "${CMAKE_CURRENT_LIST_DIR}/..")
# Get buildCommitHash for non release build
execute_process(COMMAND "git" "rev-parse" "HEAD" WORKING_DIRECTORY ${project_root} OUTPUT_VARIABLE buildCommitHash OUTPUT_STRIP_TRAILING_WHITESPACE)

execute_process(COMMAND ${CMAKE_COMMAND} -D DEPTHAI_PYTHON_COMMIT_HASH:STRING=${buildCommitHash} -D DEPTHAI_PYTHON_BUILD_DOCS:BOOL=YES -D DEPTHAI_BUILD_DOCS:BOOL=YES -S . -B build WORKING_DIRECTORY ${project_root} COMMAND_ECHO STDOUT)
# Configure
execute_process(COMMAND ${CMAKE_COMMAND}
-D DEPTHAI_PYTHON_COMMIT_HASH:STRING=${buildCommitHash}
-D DEPTHAI_PYTHON_BUILD_DOCS:BOOL=YES
-D DEPTHAI_BUILD_DOCS:BOOL=YES
-D DEPTHAI_PYTHON_BUILD_DOCSTRINGS:BOOL=YES
-S . -B build
WORKING_DIRECTORY ${project_root} COMMAND_ECHO STDOUT
)

# Build
execute_process(COMMAND ${CMAKE_COMMAND} --build build --parallel 4 WORKING_DIRECTORY ${project_root} COMMAND_ECHO STDOUT)
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sphinx-tabs==1.3.0
sphinx-rtd-theme==0.5.2
git+https://github.com/VanDavv/rtd-redirects.git@3e7333898acad533b37c9de426f1f2ef258d756b
breathe==4.26.0
git+https://github.com/luxonis/pybind11_mkdoc.git@master
Sphinx-Substitution-Extensions==2020.9.30.0
sphinx-autopackagesummary==1.3
autodocsumm==0.2.2
-r ./requirements_mkdoc.txt
1 change: 1 addition & 0 deletions docs/requirements_mkdoc.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
git+https://github.com/luxonis/pybind11_mkdoc.git@47a353ae22a3ca2fe1ca47f47b38613dcfb1043b

0 comments on commit d42e8ab

Please sign in to comment.