Files
gitea-rest-renderer/README.rst
2022-07-06 16:46:47 +02:00

1.3 KiB

This is simple custom rst2html5 renderer for Gitea.

Installation

Before starting deployment of Gitea using docker or docker-compose, you'll need to create an altered image which would contain docutils python package. There is a simple Dockerfile attached, which can be adjusted to your needs (i.e. it might be needed to pin to stable version of gitea), than let's assume, that we tag the image with :rst:

$ docker build -t gitea:rst -f Dockerfile .

Procedure of running dockerized deployment is same as documented.

Now, as you have it up and running, there is still a need for altering configuration. Stop the container, and alter file path-to/gitea/conf/app.ini, and add external renderer section:

[markup.restructuredtext]
ENABLED = true
FILE_EXTENSIONS = .rst
RENDER_COMMAND = "rst2htmlbody"
IS_INPUT_FILE = false

And that's it!

Unfortunately, you'll need to repeat those steps every time you'd like to update gitea.

License

This project is licensed under the MIT License. See the LICENSE file for the full license text.