Search code examples
htmlpython-sphinxright-to-left

RTL support in Python Sphinx


Is there a way to use RTL (Right to left, like farsi, arabic, ...) text in Sphinx ?

When generating HTML from .rst files, the generated HTML is LTR(Left to right by default) and aligned left, and my question is how I can change it, and make it RTL, and be aligned right.


Solution

  • You can check python's docutils FAQ. It explains how to use css and classes to mark text direction.