Skip to content

Commit 9d6468b

Browse files
committed
Install sphinx with apt-get
1 parent 348c58a commit 9d6468b

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ install:
2121
sudo apt-get install -y \
2222
libocct-data-exchange-dev libocct-foundation-dev libocct-modeling-algorithms-dev libocct-modeling-data-dev \
2323
libboost-system-dev libboost-program-options-dev libboost-regex-dev libboost-thread-dev libboost-date-time-dev libboost-iostreams-dev libboost-filesystem-dev \
24-
build-essential cmake python2.7 libpython2.7-dev swig zlib1g liblzma5 opencollada-dev wget apt-transport-https python3 python3-pip python3-setuptools doxygen
24+
build-essential cmake python2.7 libpython2.7-dev swig zlib1g liblzma5 opencollada-dev wget apt-transport-https python3 python3-pip python3-setuptools doxygen python3-sphinx
2525
- sudo mkdir -p /usr/include/json/nlohmann/
26-
- python3 -m pip install -U --pre sphinx
2726
- python3 -m pip install exhale
2827
- sudo wget https://github.com/nlohmann/json/releases/download/v3.6.1/json.hpp -O /usr/include/json/nlohmann/json.hpp
2928
# - sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'

docs/CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ add_custom_target(Sphinx ALL
2828
${SPHINX_SOURCE} ${CMAKE_CURRENT_SOURCE_DIR}/output
2929
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/output
3030
COMMENT "Generating documentation with Sphinx")
31-
32-
# add_custom_target(ifcopenshell_python_docs ALL
33-
# COMMAND make html
34-
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../src/ifcblenderexport/docs
35-
# OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/../src/ifcblenderexport/docs
36-
# COMMENT "Generating documentation with Sphinx")
31+
32+
add_custom_target(ifcopenshell_python_docs ALL
33+
COMMAND make html
34+
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../src/ifcblenderexport/docs
35+
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/../src/ifcblenderexport/docs
36+
COMMENT "Generating documentation with Sphinx")
3737

3838
else (DOXYGEN_FOUND)
3939
message("Doxygen need to be installed to generate the doxygen documentation")

0 commit comments

Comments
 (0)