-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate documentation to Sphinx + GH pages (#50)
- Loading branch information
Showing
17 changed files
with
1,074 additions
and
254 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,26 @@ | ||
name: documentation | ||
|
||
on: [push, pull_request, workflow_dispatch] | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/checkout@v4 | ||
- uses: pdm-project/setup-pdm@v4 | ||
- run: | | ||
pdm install | ||
pdm document | ||
working-directory: gateware | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v4 | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | ||
with: | ||
publish_branch: gh-pages | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: gateware/docs/_build/ | ||
force_orphan: 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
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,2 @@ | ||
_build/ | ||
_linkcheck/ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,73 @@ | ||
import os, sys | ||
sys.path.insert(0, os.path.abspath(".")) | ||
|
||
import time | ||
from importlib.metadata import version as package_version | ||
|
||
|
||
project = "Tiliqua Project" | ||
copyright = time.strftime("2024—%Y, S. Holzapfel and Tiliqua contributors") | ||
|
||
extensions = [ | ||
"sphinx.ext.napoleon", | ||
"sphinx.ext.intersphinx", | ||
"sphinx.ext.doctest", | ||
"sphinx.ext.todo", | ||
"sphinx.ext.autodoc", | ||
"sphinx_rtd_theme", | ||
"sphinxcontrib.platformpicker", | ||
] | ||
|
||
with open(".gitignore") as f: | ||
exclude_patterns = [line.strip() for line in f.readlines()] | ||
|
||
root_doc = "cover" | ||
|
||
intersphinx_mapping = { | ||
"python": ("https://docs.python.org/3", None), | ||
} | ||
|
||
todo_include_todos = True | ||
|
||
autodoc_member_order = "bysource" | ||
autodoc_default_options = { | ||
"members": True | ||
} | ||
autodoc_preserve_defaults = True | ||
autodoc_inherit_docstrings = False | ||
|
||
# Tiliqua mostly does not include typehints, and showing them in some places but not others is | ||
# worse than not showing them at all. | ||
autodoc_typehints = "none" | ||
|
||
napoleon_google_docstring = False | ||
napoleon_numpy_docstring = True | ||
napoleon_use_ivar = True | ||
napoleon_include_init_with_doc = True | ||
napoleon_include_special_with_doc = True | ||
napoleon_custom_sections = [ | ||
("Attributes", "params_style"), # by default displays as "Variables", which is confusing | ||
("Members", "params_style"), # `lib.wiring` signature members | ||
"Platform overrides" | ||
] | ||
|
||
html_theme = "sphinx_rtd_theme" | ||
html_static_path = ["_static"] | ||
html_css_files = ["custom.css"] | ||
html_logo = "_static/logo.jpg" | ||
|
||
rst_prolog = """ | ||
.. role:: py(code) | ||
:language: python | ||
""" | ||
|
||
linkcheck_ignore = [ | ||
r"^http://127\.0\.0\.1:8000$", | ||
] | ||
|
||
linkcheck_anchors_ignore_for_url = [ | ||
r"^https://matrix\.to/", | ||
r"^https://web\.libera\.chat/", | ||
# React page with README content included as a JSON payload. | ||
r"^https://github\.com/[^/]+/[^/]+/$", | ||
] |
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,10 @@ | ||
Tiliqua project documentation | ||
############################## | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
index | ||
(external) GitHub <https://github.com/apfelaudio/tiliqua> | ||
(external) CrowdSupply <https://www.crowdsupply.com/apfelaudio/tiliqua> | ||
(external) apfelaudio.com <https://apfelaudio.com/> |
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,28 @@ | ||
Tiliqua DSP Library | ||
################### | ||
|
||
Overview | ||
-------- | ||
|
||
TODO short overview of the DSP library philosophy. | ||
|
||
TODO link to Amaranth documentation on streams. | ||
|
||
Stream helpers | ||
-------------- | ||
|
||
.. autoclass:: tiliqua.dsp.Split | ||
|
||
.. autoclass:: tiliqua.dsp.Merge | ||
|
||
VCAs | ||
---- | ||
|
||
.. autoclass:: tiliqua.dsp.VCA | ||
|
||
.. autoclass:: tiliqua.dsp.GainVCA | ||
|
||
Delay Lines | ||
----------- | ||
|
||
.. autoclass:: tiliqua.delay_line.DelayLine |
Oops, something went wrong.