Skip to content

Commit 57d0e39

Browse files
committed
feat: added mkdocstrings for generating API docs
1 parent 6fb0c6c commit 57d0e39

File tree

6 files changed

+118
-33
lines changed

6 files changed

+118
-33
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,6 @@ jobs:
2424
path: .cache
2525
restore-keys: |
2626
mkdocs-material-
27-
- run: pip install mkdocs-material
27+
- run: >
28+
pip install mkdocs-material 'mkdocstrings[python]'
2829
- run: mkdocs gh-deploy --force
File renamed without changes.

docs/reference.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Reference
2+
3+
::: igraph_ctypes.Graph

mkdocs.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ site_name: igraph ctypes interface for Python
22
repo_url: https://github.com/igraph/python-igraph-ctypes
33
# repo_name: igraph/python-igraph-ctypes
44

5+
nav:
6+
- Home: index.md
7+
- Notes: notes.md
8+
- API reference: reference.md
9+
510
theme:
611
name: material
712

@@ -46,3 +51,8 @@ extra:
4651
copyright: >
4752
Copyright © 2003 - 2023 The igraph core team –
4853
<a href="#__consent">Change cookie settings</a>
54+
55+
plugins:
56+
- search
57+
- mkdocstrings
58+

poetry.lock

Lines changed: 102 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ stimulus = { git = "https://github.com/igraph/stimulus.git", tag = "0.14.1" }
1919

2020
[tool.poetry.group.doc.dependencies]
2121
mkdocs-material = "^9.1.21"
22+
mkdocstrings = { version = "^0.22.0", extras = ["python"] }
2223

2324
[tool.poetry-dynamic-versioning]
2425
enable = true

0 commit comments

Comments
 (0)