Skip to content

Commit

Permalink
docs as submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcToussaint committed Oct 25, 2023
1 parent 83c946a commit a3382d9
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: cmake configure
run: |
export PYTHONVERSION=`python3 -c "import sys; print(str(sys.version_info[0])+'.'+str(sys.version_info[1]))"`
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUSE_PHYSX=OFF -DUSE_BULLET=OFF -DPYBIND11_PYTHON_VERSION=$PYTHONVERSION -DUSE_QHULL8=ON
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DUSE_PHYSX=OFF -DUSE_BULLET=OFF -DPYBIND11_PYTHON_VERSION=$PYTHONVERSION -DUSE_QHULL8=ON ${{github.workspace}}
- name: cmake build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
30 changes: 30 additions & 0 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: SphinxDocumentation

on: [push, pull_request]

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: install ubuntu dependencies
run: |
sudo apt-get install pandoc freeglut3 libglew-dev
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme myst_parser nbsphinx robotic numpy
- name: Sphinx build
run: |
cd rai-docs && sphinx-build doc ../html
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: html
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@
[submodule "botop"]
path = botop
url = [email protected]:MarcToussaint/botop.git
[submodule "rai-docs"]
path = rai-docs
url = [email protected]:MarcToussaint/rai-docs.git
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
docs:
cd rai-docs && sphinx-build doc ../html

clean:
rm -Rf build
3 changes: 2 additions & 1 deletion _build_utils/build-wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ rm -Rf rai-robotModels
mkdir rai-robotModels
cd rai-robotModels
mkdir -p objects; cp ../../rai-robotModels/objects/*.g objects
mkdir -p panda; cp ../../rai-robotModels/panda/*.g panda; cp -R ../../rai-robotModels/panda/meshes panda
mkdir -p panda; cp ../../rai-robotModels/panda/*.g panda; cp -R ../../rai-robotModels/panda/*_description panda
mkdir -p ur10; cp ../../rai-robotModels/ur10/*.g ur10; cp -R ../../rai-robotModels/ur10/*_description ur10
mkdir -p pr2; cp ../../rai-robotModels/pr2/*.g pr2; cp -R ../../rai-robotModels/pr2/meshes pr2
mkdir -p baxter; cp ../../rai-robotModels/baxter/*.g baxter; cp -R ../../rai-robotModels/baxter/*_description baxter
mkdir -p robotiq; cp ../../rai-robotModels/robotiq/*.g robotiq; cp -R ../../rai-robotModels/robotiq/meshes robotiq
Expand Down
1 change: 1 addition & 0 deletions rai-docs
Submodule rai-docs added at 4c027a
2 changes: 1 addition & 1 deletion rai-robotModels
Submodule rai-robotModels updated 117 files

0 comments on commit a3382d9

Please sign in to comment.