Skip to content

Commit

Permalink
Merge pull request #32 from flynneva/develop
Browse files Browse the repository at this point in the history
initial docs up and running
  • Loading branch information
flynneva authored Nov 6, 2021
2 parents 178202f + 128b9e5 commit 90cc7c8
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,24 @@ jobs:
generate_docs:
runs-on: ubuntu-latest
container:
image: ubuntu:focal
image: rostooling/setup-ros-docker:ubuntu-focal-ros-galactic-ros-base-latest
steps:
- name: setup directories
run: mkdir -p ~/ros_ws/src/bno055
run: mkdir -p ros_ws/src/bno055
- name: checkout
uses: actions/checkout@v2
with:
path: ~/ros_ws/src/bno055
- name: setup ROS environment
uses: ros-tooling/setup-ros@master
with:
install-connext: false
required-ros-distributions: galactic
path: ros_ws/src/bno055
- name: build documentation
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "~/ros_ws/src/bno055/docs/"
pre-build-command: "apt-get update -y && pip3 install -r ~/ros_ws/src/bno055/requirements.txt && pip3 install sphinxcontrib-napoleon"
build-command: '"source /opt/ros/galactic/setup.bash" && "sphinx-build -b html . ./html/"'
run: |
ls
cd ros_ws/src/bno055/docs/
apt-get update -y
pip3 install sphinx sphinxcontrib-napoleon pyserial
. /opt/ros/galactic/setup.sh
sphinx-build -b html . ./html/
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ~/ros_ws/src/bno055/docs/html/
publish_dir: ros_ws/src/bno055/docs/html/

0 comments on commit 90cc7c8

Please sign in to comment.