netresearch / deploy-rst
将 README.rst 文件部署到维基,例如 Confluence
v1.0.0
2016-12-28 13:16 UTC
Requires
- php: 5.3 - 7.0
- pear/config: *
- pear/console_commandline: ^1.1
- pear/system_folders: dev-master
This package is auto-updated.
Last update: 2024-09-14 02:58:22 UTC
README
将 README.rst
文件部署到维基,例如 Confluence
安装
$ pear channel-discover pear.nrdev.de $ pear install nr/deployrst-alpha
设置
$ cp `pear config-get cfg_dir`/DeployRst/config.php.dist ~/.config/deploy-rst $ emacs ~/.config/deploy-rst .. change user and password
rST 文件中的元数据
可以直接在 .rst
文件中嵌入维基目标元数据,这样您就无需通过命令行传递所有参数。
示例
.. meta:: :deploy-target: confluence :confluence-host: http://confluence.example.org :confluence-space: IT :confluence-page: rstpagetest
用法
在 .rst
文件中包含元数据的部署
$ ./deploy-rst.php README.rst
不包含嵌入元数据
$ deploy-rst --driver=confluence --confluence-host=http://confluence.example.org\ --confluence-space=IT --confluence-page=rstpagetest README.rst
帮助
$ ./deploy-rst.php --help
依赖
- rst2confluence
- Confluence 命令行界面
- 来自 PEAR 的
System
- 来自 PEAR 的
Console_CommandLine