From 0d25b8b1fa5826c50c74fd7bdbee0b989964b1d4 Mon Sep 17 00:00:00 2001 From: Eric Wasylishen Date: Sat, 29 Jan 2022 17:23:42 -0700 Subject: [PATCH] docs: setup Sphinx build on Ubuntu --- .github/workflows/cmake.yml | 3 +++ README.md | 5 ++++- build-linux-64.sh | 3 +++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 8ef33619..37bb6332 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -26,6 +26,9 @@ jobs: - name: Linux Build if: runner.os == 'Linux' run: | + sudo apt-get update + # for Sphinx + sudo apt-get install -y python3-pip ./build-linux-64.sh - name: macOS Build diff --git a/README.md b/README.md index cb062eae..04ab8077 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,10 @@ Dependencies: Embree 3.0+, TBB (TODO: version?), Sphinx (for building manuals) ### Ubuntu ``` -sudo apt install libembree-dev libtbb-dev python3-sphinx cmake build-essential g++ +sudo apt install libembree-dev libtbb-dev cmake build-essential g++ +sudo apt install python3-pip +python3 -m pip install sphinx_rtd_theme +export PATH="~/.local/bin/:$PATH" git clone --recursive https://github.com/ericwa/ericw-tools cd ericw-tools mkdir build diff --git a/build-linux-64.sh b/build-linux-64.sh index 737c0662..eaa793ee 100755 --- a/build-linux-64.sh +++ b/build-linux-64.sh @@ -1,5 +1,8 @@ #!/bin/bash +python3 -m pip install sphinx_rtd_theme +export PATH="~/.local/bin/:$PATH" + BUILD_DIR=build-linux if [ -d "$BUILD_DIR" ]; then