python项目文档的自动生成

AutoMacDoc的Python项目详细描述


欢迎使用automacdoc

什么是automacdoc?

automacdoc是一个为python模块或组生成文档的工具 功能。它基于PythonMkDocs

为什么要做这个项目?

为python项目生成文档的最大工具是Sphinx。 不幸的是,sphinx(在我看来)很难设置,它支持restructuredtext。 没有一个好的项目可以轻松地生成带有降价的文档…直到现在!

如何安装?

使用pip pardi:pip install automacdoc

三个步骤让它发挥作用!

  1. 为类和函数编写漂亮的docstring。
  2. 创建一个init.py文件来导入所有要记录的函数。
  3. 生成文档网站

项目布局

mkdocs.yml      # The configuration file.
docs/
    index.md    # The documentation homepage.
    ...         # Other markdown pages, images and other files.
src/
    __init__.py # File that list the functions and classes to documents
    ...         # Other python files

推荐的文档字符串

deffun(arg1:int,arg2:str='Hello World!'):"""    Description of your function    **Parameters**    > **arg1:** `int` -- Description of argument `arg1`.    > **arg2:** `str` -- Description of argument `arg2`.    **Returns**    > `str` -- Description of returned object.    """returnarg2+str(arg1)

生成文档

automacdoc /path/to/module path/to/folder带有/path/to/project文件的文件夹的路径,以及/path/to/project将在其中创建docs文件夹的项目的路径

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java调用Python函数作为TEID中的UDF   java Android。支持v4导入不工作   java如何影响具有静态属性的类   java如何在从glTexImage2D()分配后编辑纹理的像素颜色   javaspringboot+rediscache+@Cacheable适用于某些方法,而不适用于其他方法   java无法将动态Web模块方面从3.0更改为2.5   java如何在新选项卡中显示打印的文档?   java Google Cloud Endpoints API方法仅在删除用户参数时成功调用   java为什么我可以使用Stack<Double>但不能使用Stack<Double>?   java JDBC PreparedStatement似乎忽略了占位符   java如何设置JInternalFrame的标准图标化位置?   Java文件。copy()不复制文件   基于另一个类的java显示arraylist?   java Android Studio:错误:非法字符:'\u2028'   对象(Java)无法实例化类型映像?   javascript错误:飞行前响应的HTTP状态代码401无效   java确保泛型vararg参数具有相同的类型