All Projects → sphinx-contrib → restbuilder

sphinx-contrib / restbuilder

Licence: BSD-2-Clause license
A Sphinx builder/writer to output reStructuredText (rst) files

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to restbuilder

tutorials-kr
🇰🇷파이토치에서 제공하는 튜토리얼의 한국어 번역을 위한 저장소입니다. (Translate PyTorch tutorials in Korean🇰🇷)
Stars: ✭ 271 (+984%)
Mutual labels:  restructuredtext, sphinx-doc
sphinxcontrib-django
This is a sphinx extension which improves the documentation of Django apps.
Stars: ✭ 37 (+48%)
Mutual labels:  sphinx-doc, sphinx-extension
sphinx rtd dark mode
Adds a toggleable dark mode to the Read the Docs theme for Sphinx.
Stars: ✭ 29 (+16%)
Mutual labels:  sphinx-doc, sphinx-extension
Django Markupfield
📑 a MarkupField for Django
Stars: ✭ 184 (+636%)
Mutual labels:  restructuredtext
Emacs Easy Hugo
Emacs major mode for managing hugo
Stars: ✭ 235 (+840%)
Mutual labels:  restructuredtext
gui-python-gtk
Repositório criado para documentar e centralizar conteúdos, dicas, tutoriais e exemplos de código sobre a construção de interfaces com a linguagem de programação Python (PyGObject) e o toolkit gráfico Gtk 4.
Stars: ✭ 85 (+240%)
Mutual labels:  sphinx-doc
sphinx-toolbox
Box of handy tools for Sphinx 🧰 📔
Stars: ✭ 55 (+120%)
Mutual labels:  sphinx-extension
Awesome Scientific Writing
⌨️ A curated list of awesome tools, demos and resources to go beyond LaTeX
Stars: ✭ 162 (+548%)
Mutual labels:  restructuredtext
httpdomain
Documenting RESTful HTTP APIs
Stars: ✭ 51 (+104%)
Mutual labels:  sphinx-extension
sphinx-substitution-extensions
Extensions for Sphinx which allow substitutions
Stars: ✭ 32 (+28%)
Mutual labels:  sphinx-extension
sphinx-hoverxref
Sphinx extension to show tooltips with content embedded when hover a reference.
Stars: ✭ 77 (+208%)
Mutual labels:  sphinx-extension
FAQ
Unofficial Fedora FAQ in russian
Stars: ✭ 86 (+244%)
Mutual labels:  sphinx-doc
Vscode Restructuredtext
reStructuredText Language Support in Visual Studio Code
Stars: ✭ 243 (+872%)
Mutual labels:  restructuredtext
rabbitChat
A Chat-Server/Chat-System based on AMQP protocol(RabbitMQ) + AMQP Python Client(PIKA) + Websockets(SockJS) + Async Python Server(Tornado)
Stars: ✭ 53 (+112%)
Mutual labels:  sphinx-doc
M2r
Markdown to reStructuredText converter
Stars: ✭ 232 (+828%)
Mutual labels:  restructuredtext
autoprogram
Documenting CLI programs
Stars: ✭ 37 (+48%)
Mutual labels:  sphinx-extension
Badges
📝 Markdown code for lots of small badges 🎀 📌 (shields.io, forthebadge.com etc) 😎. Contributions are welcome! Please add yours!
Stars: ✭ 2,987 (+11848%)
Mutual labels:  restructuredtext
sphinx.nvim
Sphinx integrations for Neovim
Stars: ✭ 64 (+156%)
Mutual labels:  restructuredtext
haskell-numpy-docs
Examples of Haskell versions of Numpy usage
Stars: ✭ 18 (-28%)
Mutual labels:  sphinx-doc
sphinxcontrib-hdl-diagrams
Sphinx Extension which generates various types of diagrams from Verilog code.
Stars: ✭ 37 (+48%)
Mutual labels:  sphinx-extension

README for reST Builder

Sphinx extension to build reST (reStructuredText) files.

This extension is in particular useful to use in combination with the autodoc extension to automatically generate documentation for use by any rst parser (such as the GitHub wiki).

In itself, the extension is fairly straightforward -- it takes the parsed reST file from Sphinx and outputs it as reST.

Requirements

Sphinx 1.4 - 1.8 and Python 2.7 are partly supported. It does work, but some markup may not parse correctly.

Installing

Using pip

pip install sphinxcontrib-restbuilder

Manual

git clone https://github.com/sphinx-contrib/restbuilder.git
cd restbuilder
python setup.py install

If you want to try reST builder without using the setuptools installer, you can put the reST builder in an extension subdirectory, and adjust sys.path to tell Sphinx where to look for it:

  • Add the extensions directory to the path in conf.py. E.g.:

    sys.path.append(os.path.abspath('exts'))
    

Usage

  • Set the builder as a extension in conf.py:

    extensions = ['sphinxcontrib.restbuilder']
    
  • Run sphinx-build with target rst:

    sphinx-build -b rst -c . build/rst
    

Configuration

The following four configuration variables are defined by sphinxcontrib.restbuilder:

rst_file_suffix
This is the file name suffix for generated reST files. The default is ".rst".
rst_link_suffix
Suffix for generated links to reST files. The default is whatever rst_file_suffix is set to.
rst_file_transform
Function to translate a docname to a filename. By default, returns docname + rst_file_suffix.
rst_link_transform:
Function to translate a docname to a (partial) URI. By default, returns docname + rst_link_suffix.

Further Reading

Feedback

The reST builder is in a preliminary state. It's not (yet) widely used, so any feedback is particularly welcome.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].