2
2
<a href =" ../src/lazydocs/generator.py#L0 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
3
3
4
4
# <kbd >module</kbd > ` lazydocs.generator `
5
-
5
+ Main module for markdown generation.
6
6
7
7
8
8
---
9
9
10
- <a href =" ../src/lazydocs/generator.py#L150 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
10
+ <a href =" ../src/lazydocs/generator.py#L172 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
11
11
12
12
## <kbd >function</kbd > ` to_md_file `
13
13
14
14
``` python
15
- to_md_file(string: str , filename: str , out_path: str = ' ' ) → None
15
+ to_md_file(
16
+ string: str ,
17
+ filename: str ,
18
+ out_path: str = ' ' ,
19
+ watermark: bool = True
20
+ ) → None
16
21
```
17
22
18
- Imports a module path and create an api doc file from it .
23
+ Creates an API docs file from a provided text .
19
24
20
25
21
26
** Args:**
@@ -25,12 +30,14 @@ Imports a module path and create an api doc file from it.
25
30
26
31
- <b >` filename ` </b > (str): Filename without the .md
27
32
33
+ - <b >` watermark ` </b > (bool): If ` True ` , add a watermark with a timestamp to bottom of the markdown files.
34
+
28
35
- <b >` out_path ` </b > (str): The output directory
29
36
30
37
31
38
---
32
39
33
- <a href =" ../src/lazydocs/generator.py#L607 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
40
+ <a href =" ../src/lazydocs/generator.py#L751 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
34
41
35
42
## <kbd >function</kbd > ` generate_docs `
36
43
@@ -41,6 +48,9 @@ generate_docs(
41
48
src_root_path: Optional[str ] = None ,
42
49
src_base_url: Optional[str ] = None ,
43
50
remove_package_prefix: bool = False ,
51
+ ignored_modules: List[str ] = [],
52
+ overview_file: Optional[str ] = None ,
53
+ watermark: bool = True ,
44
54
validate: bool = False
45
55
) → None
46
56
```
@@ -61,19 +71,25 @@ Generates markdown documentation for provided paths based on Google-style docstr
61
71
62
72
- <b >` remove_package_prefix ` </b >: If ` True ` , the package prefix will be removed from all functions and methods.
63
73
74
+ - <b >` ignored_modules ` </b >: A list of modules that should be ignored.
75
+
76
+ - <b >` overview_file ` </b >: Filename of overview file. If not provided, no overview file will be generated.
77
+
78
+ - <b >` watermark ` </b >: If ` True ` , add a watermark with a timestamp to bottom of the markdown files.
79
+
64
80
- <b >` validate ` </b >: If ` True ` , validate the docstrings via pydocstyle. Requires pydocstyle to be installed.
65
81
66
82
67
83
---
68
84
69
- <a href =" ../src/lazydocs/generator.py#L214 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
85
+ <a href =" ../src/lazydocs/generator.py#L247 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
70
86
71
87
## <kbd >class</kbd > ` MarkdownAPIGenerator `
88
+ Markdown generator class.
72
89
73
90
74
91
75
-
76
- <a href =" ../src/lazydocs/generator.py#L215 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
92
+ <a href =" ../src/lazydocs/generator.py#L250 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
77
93
78
94
### <kbd >method</kbd > ` __init__ `
79
95
@@ -102,7 +118,7 @@ Initializes the markdown API generator.
102
118
103
119
---
104
120
105
- <a href =" ../src/lazydocs/generator.py#L436 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
121
+ <a href =" ../src/lazydocs/generator.py#L514 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
106
122
107
123
### <kbd >method</kbd > ` class2md `
108
124
@@ -128,7 +144,7 @@ Takes a class and creates markdown text to document its methods and variables.
128
144
129
145
---
130
146
131
- <a href =" ../src/lazydocs/generator.py#L289 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
147
+ <a href =" ../src/lazydocs/generator.py#L339 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
132
148
133
149
### <kbd >method</kbd > ` doc2md `
134
150
@@ -152,7 +168,7 @@ Parse docstring (with getdoc) according to Google-style formatting and convert t
152
168
153
169
---
154
170
155
- <a href =" ../src/lazydocs/generator.py#L371 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
171
+ <a href =" ../src/lazydocs/generator.py#L434 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
156
172
157
173
### <kbd >method</kbd > ` func2md `
158
174
@@ -180,7 +196,7 @@ Takes a function (or method) and generates markdown docs.
180
196
181
197
---
182
198
183
- <a href =" ../src/lazydocs/generator.py#L586 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
199
+ <a href =" ../src/lazydocs/generator.py#L688 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
184
200
185
201
### <kbd >method</kbd > ` import2md `
186
202
@@ -206,7 +222,7 @@ Generates markdown documentation for a selected object/import.
206
222
207
223
---
208
224
209
- <a href =" ../src/lazydocs/generator.py#L511 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
225
+ <a href =" ../src/lazydocs/generator.py#L601 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
210
226
211
227
### <kbd >method</kbd > ` module2md `
212
228
@@ -230,5 +246,21 @@ Takes an imported module object and create a Markdown string containing function
230
246
231
247
- <b >` str ` </b >: Markdown documentation for selected module.
232
248
249
+ ---
250
+
251
+ <a href =" ../src/lazydocs/generator.py#L708 " ><img align =" right " style =" float :right ;" src =" https://img.shields.io/badge/-source-cccccc?style=flat-square " ></a >
233
252
253
+ ### <kbd >method</kbd > ` overview2md `
254
+
255
+ ``` python
256
+ overview2md() → str
257
+ ```
258
+
259
+ Generates a documentation overview file based on the generated docs.
260
+
261
+
262
+
263
+
264
+ ---
234
265
266
+ _ This file was automatically generated via [ lazydocs] ( https://github.com/ml-tooling/lazydocs ) on 14, Nov 2020._
0 commit comments