Skip to main content

Default template for PDM package

Project description

liteyuki-autodoc

为你的Python模块生成markdown文档

支持i18n,Google Style,Numpy Style,reStructuredText Style(待支持)

安装

pip install litedoc

使用

python -m litedoc <your_module_path> -o|--output <output_path>

详细参数

-o|--output: "doc-output"  输出路径,默认为doc-output
-l|--lang:   "zh-Hans"  语言,支持en, zh-Hans,zh-Hant,ja等,默认zh-Hans
-t|--theme: "vitepress"  主题,支持vitepress, vuepress, 默认vitepress
-s|--style: "google"  风格,支持google, numpy, reStructuredText, 默认google,但目前只实现了google,欢迎PR
-c|--contain-top    #是否包含顶部文件夹信息,即在输出目录再套一层module_path的basedir

代码编写小提示

  • 生成器默认不处理"私有"变量和函数,即以_开头的变量和函数(尽管Python没有真正的私有变量),也默认不处理没有类型注释的变量
  • 如果你不想展示某个函数和变量,可以在函数文档字串任意处加上@litedoc-hide
  • 变量注释支持在同一行内使用#添加的注释,也支持在下一行使用"""注释内容"""添加的注释

示例项目

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

litedoc-0.1.0.dev20240829073717.tar.gz (21.2 kB view details)

Uploaded Source

Built Distribution

litedoc-0.1.0.dev20240829073717-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file litedoc-0.1.0.dev20240829073717.tar.gz.

File metadata

  • Download URL: litedoc-0.1.0.dev20240829073717.tar.gz
  • Upload date:
  • Size: 21.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.18.1 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for litedoc-0.1.0.dev20240829073717.tar.gz
Algorithm Hash digest
SHA256 c35674256f240c5f94dd6232b3ebf1f66072cde0138b213030f1a3c83651748a
MD5 9e3cd99f021dbe944bd0ebbaee2e9776
BLAKE2b-256 419ae3da8da3a424a2a3f499fbbd7aa7f5f95da1906d73f0327139091a5a3e25

See more details on using hashes here.

File details

Details for the file litedoc-0.1.0.dev20240829073717-py3-none-any.whl.

File metadata

File hashes

Hashes for litedoc-0.1.0.dev20240829073717-py3-none-any.whl
Algorithm Hash digest
SHA256 6369989b3795d48db43a133578f35e5752194674d600537281743f84ca4e90e1
MD5 18be91190d5c97b8279a5e15d569478d
BLAKE2b-256 e390991699265e2c423d0b63c5d2b75541dda12da41636ba7d61c0a0512dce90

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page