跳转到主要内容

将epytext标记语言转换为RestructuredText

项目描述

eyptext2rst是一个命令行工具,用于将epytext标记语言转换为RestructuredText。

通用用法

epytext2rst.py [-h] [-v] [-o OUTPUT] input

positional arguments:
    input input file or directory to convert

optional arguments:
    -h, --help show this help message and exit
    -v, --verbose show changes
    -o OUTPUT, --output-dir OUTPUT directory for output of parsed files

要将目录中所有的Python文件(.py, .pyw)转换为RestructuredText,只需输入以下命令

python epytext2rst.py mydirectory -o newdirectory

如果您只想查看替换的内容,请执行以下操作

python epytext2rst.py mydirectory -v

约定

epytext2rst 处理以下Epytext组件的转换

关键词

@(param|type|rtype|return|ivar) --> :(param|type|rtype|return|ivar)

斜体

I\{(.*?)\}    --> *..*

粗体

B\{(.*?)\}    --> **..**

代码

C\{(.*?)\}    --> ``...``

项目详情


下载文件

下载适用于您的平台文件。如果您不确定选择哪个,请了解更多关于安装软件包的信息。

源分布

epytext2rst-1.0.2.tar.gz (1.7 kB 查看哈希)

上传时间:

由以下支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面