Skip to content

Commit

Permalink
docs: add documentation for more stubs (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-makerx authored Feb 9, 2024
1 parent 6ca27aa commit 2668623
Show file tree
Hide file tree
Showing 9 changed files with 513 additions and 176 deletions.
15 changes: 8 additions & 7 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
extensions = [
"sphinx.ext.githubpages",
"sphinx.ext.intersphinx",
"sphinx_copybutton",
"myst_parser",
"autodoc2",
]
Expand All @@ -33,12 +34,11 @@
"autodoc2.dup_item",
]
nitpick_ignore = [
("py:class", "puyapy._T"),
("py:class", "puyapy._P"),
("py:class", "puyapy._R"),
("py:class", "puyapy.arc4._T"),
("py:class", "puyapy.arc4._TArrayItem"),
("py:class", "puyapy.arc4._TTuple"),
("py:class", "puyapy.arc4.AllowedOnCompletes"),
]
nitpick_ignore_regex = [
("py:class", r"puyapy\._.*"),
("py:class", r"puyapy\.arc4\._.*"),
]

# -- Options for HTML output -------------------------------------------------
Expand Down Expand Up @@ -68,9 +68,10 @@
autodoc2_hidden_objects = [
"private", # single-underscore methods, e.g. _private
"undoc",
"inherited",
]
autodoc2_class_inheritance = False
autodoc2_module_all_regexes = [r"puyapy"]
autodoc2_module_all_regexes = [r"puyapy.*"]
autodoc2_render_plugin = "myst"
autodoc2_sort_names = True
autodoc2_index_template = None
38 changes: 28 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ sphinx = "^7.2.6"
furo = "^2024.1.29"
myst-parser = "^2.0.0"
sphinx-autodoc2 = "^0.5.0"
sphinx-copybutton = "^0.5.2"

[tool.poetry.group.cicd]
optional = true
Expand Down
Loading

0 comments on commit 2668623

Please sign in to comment.