Repository navigation
docs: API docs #58
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
Merged
Merged
docs: API docs #58
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
04a7957
docs
jkowalleck e2b9f64
docs
jkowalleck 68f6d3d
docs
jkowalleck dc0dd3f
docs
jkowalleck f54264b
docs
jkowalleck e0d3d5d
docs
jkowalleck 2b01cf3
docs
jkowalleck 089eca4
docs
jkowalleck 135a8ad
docs
jkowalleck db45f76
docs
jkowalleck 8e85cd8
docs
jkowalleck 2f9b73c
Merge remote-tracking branch 'origin/main' into docs/readthedocs
jkowalleck cb433e7
docs
jkowalleck 2812158
docs
jkowalleck 3169c6a
docs
jkowalleck 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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,21 @@ | ||
| # Read the Docs configuration file | ||
| # See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
|
|
||
| # Required | ||
| version: 2 | ||
|
|
||
| # Set the OS, Python version, and other tools you might need | ||
| build: | ||
| os: ubuntu-lts-latest | ||
| tools: | ||
| python: "3.14" | ||
|
|
||
| # Build documentation in the "docs/" directory with Sphinx | ||
| sphinx: | ||
| configuration: docs/conf.py | ||
|
|
||
| python: | ||
| install: | ||
| - requirements: docs/requirements.txt | ||
|
|
||
| formats: all | ||
This file contains hidden or 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 hidden or 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 @@ | ||
| /_build |
This file contains hidden or 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,54 @@ | ||
| import tomllib | ||
| from pathlib import Path | ||
| from datetime import datetime | ||
|
|
||
|
|
||
| _ROOT = Path(__file__).resolve().parents[1] | ||
| _pyproject = tomllib.loads((_ROOT / "pyproject.toml").read_text(encoding="utf-8")) | ||
|
|
||
| project = _pyproject["project"]["name"] | ||
| author = ", ".join(a["name"] for a in _pyproject["project"].get("authors", [])) or "Unknown" | ||
| copyright = f"{datetime.now().year}, {author}" | ||
|
|
||
| release = _pyproject["project"].get("version", "-dev") | ||
|
|
||
|
|
||
| extensions = [ | ||
| "sphinx.ext.autodoc", | ||
| # "sphinx.ext.viewcode", | ||
| "autoapi.extension", | ||
| "sphinx_rtd_theme", | ||
| "myst_parser", | ||
| ] | ||
|
|
||
| source_suffix = ['.rst', '.md'] | ||
|
|
||
| autoapi_type = 'python' | ||
| autoapi_dirs = ['../src/rfc3987_syntax2'] | ||
| # see https://sphinx-autoapi.readthedocs.io/en/latest/reference/config.html#confval-autoapi_options | ||
| autoapi_options = [ | ||
| 'show-module-summary', | ||
| 'members', | ||
| 'undoc-members', | ||
| 'inherited-members', | ||
| 'show-inheritance', | ||
| 'imported-members' | ||
| ] | ||
|
|
||
|
|
||
| # List of patterns, relative to source directory, that match files and | ||
| # directories to ignore when looking for source files. | ||
| # This pattern also affects html_static_path and html_extra_path. | ||
| # see https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-exclude_patterns | ||
| exclude_patterns = [ | ||
| '_dev', # internal docs | ||
| '_build', # build target | ||
| '.*', '**/.*', # dotfiles and folders | ||
| 'Thumbs.db', '**/Thumbs.db', | ||
| ] | ||
|
|
||
| # The theme to use for HTML and HTML Help pages. See the documentation for | ||
| # a list of builtin themes. | ||
| # | ||
| html_theme = 'sphinx_rtd_theme' | ||
|
|
This file contains hidden or 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,9 @@ | ||
| .. include:: ../README.md | ||
| :parser: myst_parser.sphinx_ | ||
|
|
||
| .. toctree:: | ||
| :maxdepth: 2 | ||
| :caption: Contents: | ||
| :titlesonly: | ||
|
|
||
| autoapi/index |
This file contains hidden or 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,6 @@ | ||
|
|
||
|
|
||
| myst-parser>=5.1.0,<6 | ||
| sphinx>=9,<10 | ||
| sphinx-autoapi>=3,<4 | ||
| sphinx-rtd-theme>=3,<4 |
This file contains hidden or 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.
Uh oh!
There was an error while loading. Please reload this page.