Skip to content

Instantly share code, notes, and snippets.

@JamesTheAwesomeDude
Created September 18, 2018 03:35
Show Gist options
  • Save JamesTheAwesomeDude/9047e21db8c86af430fe69af96916a8e to your computer and use it in GitHub Desktop.
Save JamesTheAwesomeDude/9047e21db8c86af430fe69af96916a8e to your computer and use it in GitHub Desktop.
Gitea RST support
; append this FRAGMENT to gitea/custom/conf/app.ini
; NOTE: you must first run apt install python3-pip
; and python3 -m pip install docutils
; (if the latter is NOT run as root, be sure that ~/.local/bin is in PATH)
[markup.restructuredtext]
ENABLED = true
FILE_EXTENSIONS = .rst
RENDER_COMMAND = rst2html.py
IS_INPUT_FILE = false
; That's all! Enjoy RST support in your Gitea server next time it restarts!
; ( IMPORTANT TODO: does this do a security hole )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment