Add RST rendering
Some checks failed
continuous-integration/drone/push Build is failing

Closes autonomic-cooperative/gitea#4.
This commit is contained in:
Luke Murphy 2020-04-24 12:33:23 +02:00
parent e9b5e709b0
commit 7c7969d56c
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 9 additions and 1 deletions

View File

@ -17,6 +17,9 @@ RUN pip3 install --upgrade \
# Note(decentral1se): https://github.com/pixelb/crudini/issues/58 # Note(decentral1se): https://github.com/pixelb/crudini/issues/58
RUN pip3 install --no-cache-dir \ RUN pip3 install --no-cache-dir \
"git+http://github.com/pixelb/crudini.git@0.9.3#egg=crudini" "git+http://github.com/pixelb/crudini.git@0.9.3#egg=crudini" \
# Note(decentral1se): for RST rendering
RUN pip3 install py3-docutils
ENTRYPOINT ["/sbin/entrypoint.sh"] ENTRYPOINT ["/sbin/entrypoint.sh"]

View File

@ -98,6 +98,11 @@ setup_app_ini() {
crudini --set "$app_ini" mailer USER "${SMTP_USER}" crudini --set "$app_ini" mailer USER "${SMTP_USER}"
crudini --set "$app_ini" mailer PASSWD "${SMTP_PASSWD}" crudini --set "$app_ini" mailer PASSWD "${SMTP_PASSWD}"
crudini --set "$app_ini" mailer MAILER_TYPE "${SMTP_MAILER_TYPE}" crudini --set "$app_ini" mailer MAILER_TYPE "${SMTP_MAILER_TYPE}"
crudini --set "$app_ini" markup.restructuredtext ENABLED "true"
crudini --set "$app_ini" markup.restructuredtext FILE_EXTENSIONS ".rst"
crudini --set "$app_ini" markup.restructuredtext RENDER_COMMAND rst2html
crudini --set "$app_ini" markup.restructuredtext IS_INPUT_FILE "false"
} }
# Main entrypoint # Main entrypoint