Skip to content

Commit 3a1e822

Browse files
committed
docs: add API autodocumentation with mkdocstrings
1 parent 93564f4 commit 3a1e822

3 files changed

Lines changed: 45 additions & 0 deletions

File tree

docs/api.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
icon: fontawesome/solid/code
3+
---
4+
5+
# API
6+
7+
## Core
8+
9+
::: mkdocs_rss_plugin.plugin.GitRssPlugin
10+
11+
----
12+
13+
::: mkdocs_rss_plugin.config.RssPluginConfig
14+
15+
----
16+
17+
::: mkdocs_rss_plugin.constants
18+
19+
----
20+
21+
::: mkdocs_rss_plugin.models.PageInformation
22+
23+
----
24+
25+
::: mkdocs_rss_plugin.util.Util
26+
27+
## Integrations
28+
29+
::: mkdocs_rss_plugin.integrations.theme_material_social_plugin.IntegrationMaterialSocialCards

mkdocs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ nav:
5757
- configuration.md
5858
- integrations.md
5959
- Contributing: contributing.md
60+
- API: api.md
6061
- Changelog: changelog.md
6162

6263
plugins:
@@ -79,6 +80,20 @@ plugins:
7980
minify_html: true
8081
htmlmin_opts:
8182
remove_comments: true
83+
- mkdocstrings:
84+
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_MKDOCSTRINGS, true]
85+
default_handler: python
86+
handlers:
87+
python:
88+
options:
89+
docstring_style: google
90+
heading_level: 3
91+
ignore_init_summary: false
92+
show_source: false
93+
merge_init_into_class: true
94+
paths: [.]
95+
show_root_heading: true
96+
8297
- privacy:
8398
enabled: !ENV [MKDOCS_ENABLE_PLUGIN_PRIVACY, true]
8499
cache_dir:

requirements/documentation.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ mkdocs-git-committers-plugin-2>=1.2,<1.3
55
mkdocs-git-revision-date-localized-plugin>=1,<1.3
66
mkdocs-material[imaging]>=9.5.1,<10
77
mkdocs-minify-plugin==0.7.*
8+
mkdocstrings[python]>=0.18,<1
89
termynal>=0.11.1,<0.12

0 commit comments

Comments
 (0)