Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

A python package to automatically generate API documents for Python modules.

License

NotificationsYou must be signed in to change notification settings

st1020/sophia-doc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A python package to automatically generate API documents for Python modules.

Introduction

Sophia is a python package to automatically generate API documents for Python modules.

It's a lot like sphinx, but it only focuses on generating markdown documentation.

It does not support PEP 224 attribute docstring, because the PEP was rejected, and have to use ast module to support it, which brings additional complexity to this project.

Install

pip install sophia-doc

Quickstart

sophia_doc"sophia_doc" -o ./doc

Usage

Command line:

usage: sophia_doc [-h] [-o OUTPUT_DIR] [--docstring-style DOCSTRING_STYLE] [--anchor-extend | --no-anchor-extend] [--overwrite | --no-overwrite]                   [--exclude-module-name | --no-exclude-module-name]                   moduleSophia_doc is a python package to automatically generate API documents for Python modulespositional arguments:  module                Python module names.options:  -h, --help            show this help message and exit  -o OUTPUT_DIR, --output-dir OUTPUT_DIR                        The directory to write document. (default: doc)  --docstring-style DOCSTRING_STYLE                        Docstring style the python module used. (default: auto)  --anchor-extend, --no-anchor-extend                        Add anchor to markdown title. (default: False)  --overwrite, --no-overwrite                        Overwrite any file in output directory. (default: False)  --exclude-module-name, --no-exclude-module-name                        Write file to path which exclude module name. (default: False)

License

MIT © st1020

About

A python package to automatically generate API documents for Python modules.

Resources

License

Stars

Watchers

Forks

Languages


[8]ページ先頭

©2009-2025 Movatter.jp