docpy-0.1.1
توضیحات
Python to MD documentation generator
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | docpy-0.1.1 |
| نام | docpy |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Chris Pyles |
| ایمیل نویسنده | cpyles@berkeley.edu |
| آدرس صفحه اصلی | https://github.com/chrispyles/docpy |
| آدرس اینترنتی | https://pypi.org/project/docpy/ |
| مجوز | BSD-3-Clause |
# docpy
This package auto-generates Markdown documentation from Python files.
## Installation
This package is installed using pip:
```
pip install docpy
```
## Usage
This package is used from the command line:
```
docpy ...
```
The package help entry is given below.
```
usage: docpy [-h] [-a APPEND] [-o OUT] [-s SUB] [-t TEMP] ...
generate Markdown documentation for Python files
positional arguments:
files files to be documented
optional arguments:
-h, --help show this help message and exit
-a APPEND, --append APPEND
file to which to append generated Markdown
-o OUT, --output OUT file to save generated Markdown to
-s SUB, --sub SUB file with ::DOCUMENTATION:: tag to replace Markdown
-t TEMP, --template TEMP
template file with ::DOCUMENTATION:: tag, needs OUT
argument
```
### Templates
You can define a Markdown template in which your documentation will be placed using the `-t` flag, which must be used in conjunction with the `-o` flag. In your template, just put `::DOCUMENTATION::` where you want the documentation to be placed. For example,
```markdown
# This is a markdown file.
My docs are below:
::DOCUMENTATION::
_this concludes the documentation._
```
## Changelog
**v0.1.1:**
* Fixed formatting error in docstrings
**v0.1.0:**
* Initial release
نحوه نصب
نصب پکیج whl docpy-0.1.1:
pip install docpy-0.1.1.whl
نصب پکیج tar.gz docpy-0.1.1:
pip install docpy-0.1.1.tar.gz