-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add types for API parameters - Fix return values for some APIs - Add - docstrings for APIs - mkdocs config. - readthedocs config
- Loading branch information
1 parent
ae0e57d
commit 74339e4
Showing
19 changed files
with
486 additions
and
163 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# .readthedocs.yaml | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
||
# Required | ||
version: 2 | ||
|
||
# Set the version of Python and other tools you might need | ||
build: | ||
os: ubuntu-24.04 | ||
tools: | ||
python: "3.12" | ||
|
||
mkdocs: | ||
configuration: docs/mkdocs/mkdocs.yml | ||
|
||
# Optionally declare the Python requirements required to build your docs | ||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
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 @@ | ||
site/ |
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,53 @@ | ||
site_name: Embedded Tester Protocol Library | ||
|
||
docs_dir: src | ||
site_url: https://etplib.readthedocs.io/ | ||
repo_url: https://github.com/jabezwinston/etplib-python | ||
repo_name: etplib-python | ||
copyright: Copyright © 2024 Jabez Winston | ||
|
||
theme: | ||
name: readthedocs | ||
highlightjs: true | ||
|
||
nav: | ||
- Introduction: index.md | ||
- API reference guide: | ||
- General: api/general.md | ||
- GPIO: api/gpio.md | ||
- ADC: api/adc.md | ||
- PWM: api/pwm.md | ||
- I2C: api/i2c.md | ||
- SPI: api/spi.md | ||
|
||
plugins: | ||
- mkdocstrings: | ||
handlers: | ||
python: | ||
import: | ||
- https://docs.python.org/3/objects.inv | ||
paths: [../..] | ||
options: | ||
docstring_options: | ||
ignore_init_summary: true | ||
# docstring_section_style: numpy | ||
filters: ["!^_"] | ||
heading_level: 1 | ||
inherited_members: true | ||
merge_init_into_class: true | ||
parameter_headings: true | ||
preload_modules: [mkdocstrings] | ||
relative_crossrefs: true | ||
scoped_crossrefs: true | ||
separate_signature: true | ||
show_bases: false | ||
show_inheritance_diagram: true | ||
show_root_heading: true | ||
show_root_full_path: false | ||
show_signature_annotations: true | ||
show_source: false | ||
show_symbol_type_heading: true | ||
show_symbol_type_toc: true | ||
signature_crossrefs: true | ||
summary: true | ||
unwrap_annotated: true |
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 @@ | ||
::: etplib.adc.ADC |
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 @@ | ||
::: etplib.lib.ETP |
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 @@ | ||
::: etplib.gpio.GPIO |
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 @@ | ||
::: etplib.i2c.I2C |
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 @@ | ||
::: etplib.pwm.PWM |
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 @@ | ||
::: etplib.spi.SPI |
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 @@ | ||
../../../README.md |
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,4 @@ | ||
mkdocs | ||
mkdocstrings[python] | ||
markdown-include | ||
black |
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,90 @@ | ||
# | ||
# This file is autogenerated by pip-compile with Python 3.12 | ||
# by the following command: | ||
# | ||
# pip-compile requirements.in | ||
# | ||
black==24.10.0 | ||
# via -r requirements.in | ||
click==8.1.7 | ||
# via | ||
# black | ||
# mkdocs | ||
# mkdocstrings | ||
colorama==0.4.6 | ||
# via griffe | ||
ghp-import==2.1.0 | ||
# via mkdocs | ||
griffe==1.5.1 | ||
# via mkdocstrings-python | ||
jinja2==3.1.4 | ||
# via | ||
# mkdocs | ||
# mkdocstrings | ||
markdown==3.7 | ||
# via | ||
# markdown-include | ||
# mkdocs | ||
# mkdocs-autorefs | ||
# mkdocstrings | ||
# pymdown-extensions | ||
markdown-include==0.8.1 | ||
# via -r requirements.in | ||
markupsafe==3.0.2 | ||
# via | ||
# jinja2 | ||
# mkdocs | ||
# mkdocs-autorefs | ||
# mkdocstrings | ||
mergedeep==1.3.4 | ||
# via | ||
# mkdocs | ||
# mkdocs-get-deps | ||
mkdocs==1.6.1 | ||
# via | ||
# -r requirements.in | ||
# mkdocs-autorefs | ||
# mkdocstrings | ||
mkdocs-autorefs==1.2.0 | ||
# via | ||
# mkdocstrings | ||
# mkdocstrings-python | ||
mkdocs-get-deps==0.2.0 | ||
# via mkdocs | ||
mkdocstrings[python]==0.27.0 | ||
# via | ||
# -r requirements.in | ||
# mkdocstrings-python | ||
mkdocstrings-python==1.12.2 | ||
# via mkdocstrings | ||
mypy-extensions==1.0.0 | ||
# via black | ||
packaging==24.2 | ||
# via | ||
# black | ||
# mkdocs | ||
pathspec==0.12.1 | ||
# via | ||
# black | ||
# mkdocs | ||
platformdirs==4.3.6 | ||
# via | ||
# black | ||
# mkdocs-get-deps | ||
# mkdocstrings | ||
pymdown-extensions==10.12 | ||
# via mkdocstrings | ||
python-dateutil==2.9.0.post0 | ||
# via ghp-import | ||
pyyaml==6.0.2 | ||
# via | ||
# mkdocs | ||
# mkdocs-get-deps | ||
# pymdown-extensions | ||
# pyyaml-env-tag | ||
pyyaml-env-tag==0.1 | ||
# via mkdocs | ||
six==1.17.0 | ||
# via python-dateutil | ||
watchdog==6.0.0 | ||
# via mkdocs |
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.