-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Python documentation [Sphinx-Hatch] #32
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
79ea20e
Docs: Add docs source folder for sphinx
RaulTrombin ea18df0
src: doc: Add documentation for use on sphinx
RaulTrombin 0de65a2
src: lib: Minor correction - clippy
RaulTrombin 0db1a23
root:pyproject: Setup hatch as project manager and dev shortcuts.
RaulTrombin 500e180
github: workflows: Adjust deployment for the python docs
RaulTrombin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Configuration file for the Sphinx documentation builder. | ||
# | ||
# For the full list of built-in configuration values, see the documentation: | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html | ||
|
||
# -- Project information ----------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information | ||
|
||
import bluerobotics_navigator | ||
|
||
project = 'bluerobotics-navigator' | ||
release = "0.0.0" # todo: navigator.__version__ | ||
version = release | ||
|
||
|
||
extensions = [ | ||
'sphinx.ext.autodoc', | ||
'sphinx.ext.autosummary', | ||
'sphinx.ext.intersphinx', | ||
'sphinx.ext.todo', | ||
'sphinx.ext.inheritance_diagram', | ||
'sphinx.ext.autosectionlabel', | ||
'sphinx.ext.napoleon', | ||
'sphinx_rtd_theme', | ||
] | ||
|
||
autosummary_generate = True | ||
autosummary_imported_members = True | ||
|
||
templates_path = ['_templates'] | ||
exclude_patterns = [] | ||
|
||
# -- Options for HTML output ------------------------------------------------- | ||
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output | ||
|
||
html_theme = 'sphinx_rtd_theme' | ||
html_static_path = ['_static'] | ||
html_logo = "https://upload.wikimedia.org/wikipedia/commons/1/12/Bluerobotics-logo.svg" | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
.. extension documentation master file, created by | ||
sphinx-quickstart on Mon Jun 19 15:02:05 2023. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
|
||
BlueRobotics's Navigator Library | ||
===================================== | ||
|
||
This library serves as the entry point for embedding applications using Python on Blue Robotics's Navigator_. | ||
|
||
The Navigator board has the Raspberry Pi HAT form factor, which allows you to easily attach it to a Raspberry Pi 4 board. Then you can unleash the power of Navigator to develop new solutions or interact with your ROV hardware. | ||
|
||
The board offers the following capabilities: | ||
|
||
Control: | ||
|
||
- LEDs | ||
|
||
- PWM (Pulse Width Modulation) with 16 channels | ||
|
||
Measurements: | ||
|
||
- ADC (Analog Digital Converter) entries | ||
|
||
- Magnetic field | ||
|
||
- Acceleration | ||
|
||
- Angular velocity | ||
|
||
- Temperature | ||
|
||
- Pressure | ||
|
||
Currently, it supports **armv7** and **aarch64** architectures, which are the official defaults for BlueOS_. | ||
However, despite using the embedded-hal concept, new ports can be added as long as the platform matches the hardware design and specifications. | ||
|
||
For more information, including installation instructions, schematics, and hardware specifications, please check the navigator hardware setup guide_. | ||
|
||
.. _Navigator: https://bluerobotics.com/store/comm-control-power/control/navigator/ | ||
.. _BlueOS: https://docs.bluerobotics.com/ardusub-zola/software/onboard/BlueOS-1.1/ | ||
.. _guide: https://bluerobotics.com/learn/navigator-hardware-setup/#introduction | ||
|
||
.. automodule:: bluerobotics_navigator | ||
:members: | ||
:undoc-members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use this https://github.com/sphinx-toolbox/sphinx-pyproject to move mostly this configuration to pyproject ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can, no stronger feelings on this, we still need a conf.py, just the content is moved to pyproject.toml file.