Skip to content

Commit f5c7903

Browse files
committed
Update readme and API docs
1 parent 59d71a2 commit f5c7903

File tree

5 files changed

+54
-85
lines changed

5 files changed

+54
-85
lines changed

README.md

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,10 @@
1717

1818
<p align="center">
1919
<a href="#getting-started">Getting Started</a> •
20-
<a href="#features">Features & Screenshots</a> •
20+
<a href="#features">Features</a> •
2121
<a href="#documentation">Documentation</a> •
2222
<a href="#support--feedback">Support</a> •
2323
<a href="https://github.com/ml-tooling/lazydocs/issues/new?labels=bug&template=01_bug-report.md">Report a Bug</a> •
24-
<a href="#faq">FAQ</a> •
25-
<a href="#known-issues">Known Issues</a> •
2624
<a href="#contribution">Contribution</a> •
2725
<a href="https://github.com/ml-tooling/lazydocs/releases">Changelog</a>
2826
</p>
@@ -31,9 +29,9 @@ Lazydocs makes it easy to generate beautiful markdown documentation for your Pyt
3129

3230
## Highlights
3331

34-
-&emsp;Simple CLI to generate markdown docs in seconds.
35-
- 📋&emsp;Supports [Google-style Python Docstrings](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html).
36-
- 📚&emsp;Compatible with Github Markdown and MkDocs.
32+
-&nbsp; Simple CLI to generate markdown docs in seconds.
33+
- 📋&nbsp; Supports [Google-style Python Docstrings](https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html).
34+
- 📚&nbsp; Compatible with Github Markdown and MkDocs.
3735

3836
## Getting Started
3937

@@ -49,11 +47,11 @@ This project is maintained by [Benjamin Räthlein](https://twitter.com/raethlein
4947

5048
| Type | Channel |
5149
| ------------------------ | ------------------------------------------------------ |
52-
| 🚨&emsp;**Bug Reports** | <a href="https://github.com/ml-tooling/lazydocs/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+label%3Abug+sort%3Areactions-%2B1-desc+" title="Open Bug Report"><img src="https://img.shields.io/github/issues/ml-tooling/lazydocs/bug.svg?label=bug"></a> |
53-
| 🎁&emsp;**Feature Requests** | <a href="https://github.com/ml-tooling/lazydocs/issues?q=is%3Aopen+is%3Aissue+label%3Afeature+sort%3Areactions-%2B1-desc" title="Open Feature Request"><img src="https://img.shields.io/github/issues/ml-tooling/lazydocs/feature.svg?label=feature"></a> |
54-
| 👩‍💻&emsp;**Usage Questions** | _tbd_ |
55-
| 🗯&emsp;**General Discussion** | _tbd_ |
56-
|&emsp;**Other Requests** | <a href="mailto:[email protected]" title="Email ML Tooling Team"><img src="https://img.shields.io/badge/email-ML Tooling-green?logo=mail.ru&style=flat-square&logoColor=white"></a> |
50+
| 🚨&nbsp; **Bug Reports** | <a href="https://github.com/ml-tooling/lazydocs/issues?utf8=%E2%9C%93&q=is%3Aopen+is%3Aissue+label%3Abug+sort%3Areactions-%2B1-desc+" title="Open Bug Report"><img src="https://img.shields.io/github/issues/ml-tooling/lazydocs/bug.svg?label=bug"></a> |
51+
| 🎁&nbsp; **Feature Requests** | <a href="https://github.com/ml-tooling/lazydocs/issues?q=is%3Aopen+is%3Aissue+label%3Afeature+sort%3Areactions-%2B1-desc" title="Open Feature Request"><img src="https://img.shields.io/github/issues/ml-tooling/lazydocs/feature.svg?label=feature"></a> |
52+
| 👩‍💻&nbsp; **Usage Questions** | _tbd_ |
53+
| 🗯&nbsp; **General Discussion** | _tbd_ |
54+
|&nbsp; **Other Requests** | <a href="mailto:[email protected]" title="Email ML Tooling Team"><img src="https://img.shields.io/badge/email-ML Tooling-green?logo=mail.ru&style=flat-square&logoColor=white"></a> |
5755

5856
## Features
5957

@@ -63,18 +61,6 @@ _Use this section for advertising the most important features and advantages of
6361

6462
_Either put the documentation here or use a deployed documentation site via mkdocs and link to the documentation._
6563

66-
## FAQ
67-
68-
<details>
69-
<summary><b>This is the example description of an faq item</b> (click to expand...)</summary>
70-
</details>
71-
72-
## Known Issues
73-
74-
<details>
75-
<summary><b>This is the example description of a known issue</b> (click to expand...)</summary>
76-
</details>
77-
7864
## Contributors
7965

8066
_TODO: Add sourcerer [hall of fame](https://github.com/sourcerer-io/hall-of-fame) here._

docs/lazydocs.about.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/lazydocs.cli.md

Lines changed: 0 additions & 27 deletions
This file was deleted.

docs/lazydocs.generator.md

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,25 @@
22
<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>
33

44
# <kbd>module</kbd> `lazydocs.generator`
5-
5+
Main module for markdown generation.
66

77

88
---
99

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>
1111

1212
## <kbd>function</kbd> `to_md_file`
1313

1414
```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
1621
```
1722

18-
Imports a module path and create an api doc file from it.
23+
Creates an API docs file from a provided text.
1924

2025

2126
**Args:**
@@ -25,12 +30,14 @@ Imports a module path and create an api doc file from it.
2530

2631
- <b>`filename`</b> (str): Filename without the .md
2732

33+
- <b>`watermark`</b> (bool): If `True`, add a watermark with a timestamp to bottom of the markdown files.
34+
2835
- <b>`out_path`</b> (str): The output directory
2936

3037

3138
---
3239

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>
3441

3542
## <kbd>function</kbd> `generate_docs`
3643

@@ -41,6 +48,9 @@ generate_docs(
4148
src_root_path: Optional[str] = None,
4249
src_base_url: Optional[str] = None,
4350
remove_package_prefix: bool = False,
51+
ignored_modules: List[str] = [],
52+
overview_file: Optional[str] = None,
53+
watermark: bool = True,
4454
validate: bool = False
4555
) → None
4656
```
@@ -61,19 +71,25 @@ Generates markdown documentation for provided paths based on Google-style docstr
6171

6272
- <b>`remove_package_prefix`</b>: If `True`, the package prefix will be removed from all functions and methods.
6373

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+
6480
- <b>`validate`</b>: If `True`, validate the docstrings via pydocstyle. Requires pydocstyle to be installed.
6581

6682

6783
---
6884

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>
7086

7187
## <kbd>class</kbd> `MarkdownAPIGenerator`
88+
Markdown generator class.
7289

7390

7491

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>
7793

7894
### <kbd>method</kbd> `__init__`
7995

@@ -102,7 +118,7 @@ Initializes the markdown API generator.
102118

103119
---
104120

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>
106122

107123
### <kbd>method</kbd> `class2md`
108124

@@ -128,7 +144,7 @@ Takes a class and creates markdown text to document its methods and variables.
128144

129145
---
130146

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>
132148

133149
### <kbd>method</kbd> `doc2md`
134150

@@ -152,7 +168,7 @@ Parse docstring (with getdoc) according to Google-style formatting and convert t
152168

153169
---
154170

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>
156172

157173
### <kbd>method</kbd> `func2md`
158174

@@ -180,7 +196,7 @@ Takes a function (or method) and generates markdown docs.
180196

181197
---
182198

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>
184200

185201
### <kbd>method</kbd> `import2md`
186202

@@ -206,7 +222,7 @@ Generates markdown documentation for a selected object/import.
206222

207223
---
208224

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>
210226

211227
### <kbd>method</kbd> `module2md`
212228

@@ -230,5 +246,21 @@ Takes an imported module object and create a Markdown string containing function
230246

231247
- <b>`str`</b>: Markdown documentation for selected module.
232248

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>
233252

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+
---
234265

266+
_This file was automatically generated via [lazydocs](https://github.com/ml-tooling/lazydocs) on 14, Nov 2020._

docs/lazydocs.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)