自述.md生成器

readme-md的Python项目详细描述


安装

$ [sudo] pip install readme-md

功能
  • <section-name>.md
  • attrs/properties/methods节-子类readme_md.Readme
  • auto headers-如果第1节行不为空且不为#header
  • 截面顺序-Readme.orderorder.txt
  • python项目(^{}必需)节-installclassesfunctionscli

readme_md.Readme-readme.md生成器

^{} attrs^{}
^{}header default lvl (4)
^{}dict with sections headers (optional)
^{}list of sections order
^{}dict with sections (loaded from .md files)
^{} methods^{}
^{}return a string with section header
^{}return a string with README section
^{}return all sections in a list of (name, string) pairs sorted by ^{}
^{}load sections and order
^{}render to a string
^{}save to file

函数

function^{}
^{}return a list with broken markdown links
^{}return a list with markdown links
^{}return a string with class attributes table
^{}return a string with class name, description and attrs+methods+properties tables
^{}return a string with class methods table
^{}return a string with class properties table
^{}return a string with cli modules usage table. ^{} or module ^{} variable (if defined). ^{} line required

cli

usage^{}
^{}print README.md broken links
^{}generate README.md
^{}print README.md links

示例

# .README/examples.md, .README/features.md, .README/order.txt
$ python -m readme_md.create .README > README.md
$ python -m readme_md.broken_links README.md # find broken links
classReadme_npm(readme_md.Readme):order=["description","features","install",...]disabled=["generator"]@propertydefinstall(self):return"`$ [sudo] npm i -g %s`"%json.loads(path)["name"]
Readme(".README").save("README.md")# load sections and create README.md

readme-md-readme.md生成器

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

推荐PyPI第三方库


热门话题
java如何使用springcloudconfig服务器将属性注入现有xml文件   java如何匹配AspectJ中没有特定注释的方法   java如何修改maven项目依赖项的代码   泛型为什么实现接口的类与Java中的接口类型不同?   java JScrollPane和GridBagLayout   java pdfbox。util。ImageIOUtil。书写年龄问题   java未解析引用:textView   PreparedStatement之后的java getGeneratedKeys()。executeBatch()   java在jni程序中保存dll的位置   java自定义上下文注入   java如何在安卓上比较两个复选框值?   html创建访问本地java代码的网站   javarpost与JaxRS   java如何更新被其他线程更改的类中的数组?   在soapui java API中加载外部请求文件   java如何改进从socket读取XML的方式