Skip to content

Commit

Permalink
Issue #17: Autogeneration of docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark2000 committed Jan 23, 2024
1 parent 44216a8 commit 70f12af
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 3 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Documentation

on:
push:
branches:
- develop

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write


jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Mock Basilisk
run: |
cp docs/sitecustomize.py $(python -c 'import site; print(site.getsitepackages()[0])')/sitecustomize.py
- name: Install dependencies
run: |
pip install -e .
# skip finish install steps
- name: Sphinx build
run: |
cd docs
make html
cd ..
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html
force_orphan: true


2 changes: 2 additions & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ BSK-RL: Environments and Algorithms for Spacecraft Planning and Scheduling
.. note::

BSK-RL and its documentation are under active development. Please continue to check back for updates.

.. note::

New environments should be built using the :ref:`general satellite tasking framework <bsk_rl.envs.general_satellite_tasking>`; legacy environments are in the process of being ported to this framework.

Expand Down
4 changes: 1 addition & 3 deletions docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,4 @@ Instructions
Common Issues
-------------

.. note::

See `#51 <https://github.com/AVSLab/bsk_rl/issues/51>`_ for issues with `chebpy` installation on Silicon Macs during or after ``finish_install``.
Please report new installation issues on GitHub.

0 comments on commit 70f12af

Please sign in to comment.