← 返回命令列表

Linux command

rst2html 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Convert RST to HTML

rst2html [input.rst] [output.html]

Convert to stdout

rst2html [input.rst]

With stylesheet

rst2html --stylesheet=[style.css] [input.rst] [output.html]

Standalone document

rst2html --embed-stylesheet [input.rst] [output.html]

说明

rst2html converts reStructuredText documents to HTML. It's part of Docutils, providing the reference implementation for RST processing.

参数

--stylesheet _file_
CSS stylesheet path.
--embed-stylesheet
Embed CSS in HTML.
--template _file_
Document template.
--no-doc-title
No document title.
--strict
Strict mode.
--quiet, -q
Suppress warnings.

FAQ

What is the rst2html command used for?

rst2html converts reStructuredText documents to HTML. It's part of Docutils, providing the reference implementation for RST processing.

How do I run a basic rst2html example?

Run `rst2html [input.rst] [output.html]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --stylesheet _file_ do in rst2html?

CSS stylesheet path.