What is an RST file?
reStructuredText
- Developed By
- David Goodger / Docutils Community
- Initial Release
- 2001
- MIME Type
- text/x-rst
An RST (reStructuredText) file is a plain text file containing markup syntax defined by the Docutils project, primarily used for technical documentation in the Python programming ecosystem (PEP 287). It utilizes a lightweight, indentation-sensitive syntax to define document structure, hyperlinks, and formatting, which is designed to be readable in raw form but powerful enough to compile into HTML, LaTeX, or PDF via the Sphinx documentation generator.
How to open an RST file
As a plain text format, RST files can be opened and edited with any text editor, including Visual Studio Code, Vim, or Notepad++. However, to view the rendered document layout as intended, the file must be processed by a parser such as docutils (using commands like rst2html) or built within a Sphinx project environment.