Skip to content

Commit

Permalink
fix: docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Orbital-Web committed Oct 31, 2023
1 parent 2ad0a88 commit 82ed1a3
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 31 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: documentation

on:
push:
branches:
- main

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme myst_parser
- name: Sphinx build
run: |
sphinx-build docs/source docs/build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
31 changes: 0 additions & 31 deletions .github/workflows/publish-doc.yml

This file was deleted.

3 changes: 3 additions & 0 deletions rtd/sim/world/WorldEntity.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def construct_components(self, component_name: str, *component_args):
# results in:
# self.state = GenericEntityState(BoxObstacleInfo(), n_states=5)
Parameters
----------
component_name : str
Expand Down Expand Up @@ -66,6 +67,7 @@ def reset_components(self):
# equivalent to calling:
# self.info.reset()
# self.state.reset(n_states=5)
'''
options = self.getoptions()
Expand Down Expand Up @@ -94,6 +96,7 @@ def get_componentOverrideOptions(components: dict) -> dict:
# options["components"] = {"info": EmptyInfoState, "state": GenericEntityState}
# options["component_options"] = {"state": {"n_states": 5}}
Parameters
----------
components : dict
Expand Down

0 comments on commit 82ed1a3

Please sign in to comment.