-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
406 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# dev-env | ||
.idea/ | ||
*.iml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# API doc generator in markdown | ||
[](https://github.com/raghakot/mkdocs-apidocs/blob/master/LICENSE) | ||
|
||
I didnt want to use sphinx and reStructuredText syntax when the rest of the documentation is in markdown. I also | ||
dont like reStructuredText syntax. Long story short, I ended up creating my own library to auto-generate | ||
markdown docs per module using python `inspect` module. | ||
|
||
Currently only [Google formatted docstrings](http://sphinx-doc.org/latest/ext/example_google.html) are supported. | ||
Feel free to submit a PR for extending to other formats. | ||
|
||
## Usage | ||
```python | ||
from mk_autodoc import MarkdownAPIGenerator, to_md_file | ||
|
||
source_folder = 'src' | ||
github_link = 'https://github.com/raghakot/mkdocs-apidocs/blob/master' | ||
mk_gen = MarkdownAPIGenerator(source_folder, github_link) | ||
|
||
import mymodule | ||
md_text = mk_gen.module2md(mymodule) | ||
to_md_file(md_text, mymodule.__name__, "docs") | ||
``` | ||
|
||
For usage on a real project, with [MkDocs](http://mkdocs.org), see: https://github.com/raghakot/keras-vis/tree/master/docs | ||
|
||
The autogenerated doc on that project: https://raghakot.github.io/keras-vis/ |
Oops, something went wrong.