Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Docs #115

Merged
merged 11 commits into from
Mar 31, 2024
Merged

Docs #115

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- name: Build HTML
uses: ammaraskar/sphinx-action@master
- name: Set Python Version
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install requirements
run: pip install -r env_files/all_requirements.txt
- run: ls .
- name: Make HTML
run: make -C docs/ html
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Contains the intelligent systems module and sensor logic for the SJSU Robotics' 3-Wheeled Mars Rover

## [Documentation Site](https://sjsuroboticsteam.github.io/urc-intelligent-systems-2023/index.html)

## Setup

To get started, you will need to install the following dependencies, you can do this by using a virtual environment and the requirements.txt file in the root directory of the project.
Expand Down
21 changes: 21 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Using Sphinx to build Doc site

If you create a new python file, that file will need to be included in the
documentation by running this command

~~~~~~~~~~~~~~~~~~~~~~~~~bash
sphinx-apidoc -o docs/ . # from project root
# or
sphinx-apidoc -o . .. # from docs dir
~~~~~~~~~~~~~~~~~~~~~~~~~

Following this or if you only modified a python file instead of created a new
one, then you can locally build the doc site using the following command

~~~~~~~~~~~~~~~~~~~bash
make -C docs/ html # from project root
# or
make html # from docs dir
~~~~~~~~~~~~~~~~~~~

this will build the Doc site in `docs/_build/html`.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Welcome to Autonomy@SJSU-Robotics's documentation!
==================================================

Hi Welcome to documentation
Hello There

.. toctree::
:maxdepth: 10
Expand Down
4 changes: 2 additions & 2 deletions docs/modules.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
autonomy_setup_test
===================
urc-intelligent-systems-2023
============================

.. toctree::
:maxdepth: 4
Expand Down