mirror of
https://git.cloudron.io/cloudron/gitea-app
synced 2025-09-02 15:55:02 +00:00
markup: add jupyter notebook markup language
Follows documentation here: - https://docs.gitea.io/en-us/external-renderers/#installing-external-binaries This adds jupyter and configures gitea to use jupyter to render notebook files.
This commit is contained in:
@@ -4,6 +4,7 @@ RUN apt-get update && \
|
|||||||
apt-get install -y openssh-server git && \
|
apt-get install -y openssh-server git && \
|
||||||
rm -rf /etc/ssh_host_* && \
|
rm -rf /etc/ssh_host_* && \
|
||||||
rm -r /var/cache/apt /var/lib/apt/lists
|
rm -r /var/cache/apt /var/lib/apt/lists
|
||||||
|
RUN pip3 install jupyter
|
||||||
|
|
||||||
ADD supervisor/ /etc/supervisor/conf.d/
|
ADD supervisor/ /etc/supervisor/conf.d/
|
||||||
|
|
||||||
|
@@ -103,3 +103,11 @@ COOKIE_SECURE = true
|
|||||||
COOKIE_NAME = cloudron_gitea
|
COOKIE_NAME = cloudron_gitea
|
||||||
GC_INTERVAL_TIME = 2592000
|
GC_INTERVAL_TIME = 2592000
|
||||||
|
|
||||||
|
[markup.jupyter]
|
||||||
|
ENABLED = true
|
||||||
|
FILE_EXTENSIONS = .ipynb
|
||||||
|
RENDER_COMMAND = "jupyter nbconvert --stdin --stdout --to html --template basic"
|
||||||
|
IS_INPUT_FILE = false
|
||||||
|
|
||||||
|
[markup.sanitizer.jupyter.img]
|
||||||
|
ALLOW_DATA_URI_IMAGES = true
|
||||||
|
Reference in New Issue
Block a user