@@ -5,6 +5,12 @@ Generate python API documentation for quarto.
5
5
6
6
## Install
7
7
8
+ pip install quartodoc
9
+
10
+ Or for the latest changes:
11
+
12
+ python3 -m pip install -e git+https://github.com/machow/quartodoc.git#egg=quartodoc
13
+
8
14
## Basic use
9
15
10
16
``` python
@@ -45,12 +51,12 @@ print(
45
51
46
52
quartodoc consists of two pieces:
47
53
48
- - collection: using the library
54
+ - ** collection** : using the library
49
55
[ griffe] ( https://github.com/mkdocstrings/griffe ) to statically collect
50
56
information about functions and classes in a program.
51
- - docstring parsing: also handled by griffe, which breaks it into a tree
52
- structure.
53
- - docstring rendering: use plum-dispatch on methods like
57
+ - ** docstring parsing** : also handled by griffe, which breaks it into a
58
+ tree structure.
59
+ - ** docstring rendering** : use plum-dispatch on methods like
54
60
MdRenderer.to_md to decide how to visit and render each piece of the
55
61
tree (e.g. the examples section, a parameter, etc..).
56
62
@@ -78,9 +84,9 @@ docstring = f_obj.docstring.parsed
78
84
docstring
79
85
```
80
86
81
- [<griffe.docstrings.dataclasses.DocstringSectionText at 0x127f01f10 >,
82
- <griffe.docstrings.dataclasses.DocstringSectionParameters at 0x127f27700 >,
83
- <griffe.docstrings.dataclasses.DocstringSectionExamples at 0x127f27a00 >]
87
+ [<griffe.docstrings.dataclasses.DocstringSectionText at 0x105a2c310 >,
88
+ <griffe.docstrings.dataclasses.DocstringSectionParameters at 0x10f7961f0 >,
89
+ <griffe.docstrings.dataclasses.DocstringSectionExamples at 0x10f7965b0 >]
84
90
85
91
Note that quartodoc’s MdRenderer can be called on any part of the parsed
86
92
docstring.
0 commit comments