Initial Commit
This commit is contained in:
commit
a983ec659c
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
venv/
|
||||||
|
.idea/
|
40
Dockerfile
Normal file
40
Dockerfile
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
FROM pandoc/core:latest AS pandoc
|
||||||
|
|
||||||
|
FROM gitea/gitea:latest AS gitea
|
||||||
|
|
||||||
|
COPY --from=pandoc /usr/local/bin/pandoc /usr/local/bin/pandoc
|
||||||
|
|
||||||
|
COPY custom/app.ini /data/gitea/conf/app.ini
|
||||||
|
COPY custom/basic.html /data/gitea/templates/basic.html
|
||||||
|
|
||||||
|
RUN apk --no-cache add \
|
||||||
|
asciidoctor \
|
||||||
|
freetype \
|
||||||
|
freetype-dev \
|
||||||
|
gcc \
|
||||||
|
g++ \
|
||||||
|
libpng \
|
||||||
|
libffi-dev \
|
||||||
|
py-pip \
|
||||||
|
python3-dev \
|
||||||
|
py3-pip \
|
||||||
|
py3-pyzmq \
|
||||||
|
lua5.3 \
|
||||||
|
lua5.3-lpeg \
|
||||||
|
gmp \
|
||||||
|
librsvg
|
||||||
|
|
||||||
|
#RUN apk --no-cache add \
|
||||||
|
# freetype \
|
||||||
|
# fontconfig \
|
||||||
|
# gnupg \
|
||||||
|
# gzip \
|
||||||
|
# perl \
|
||||||
|
# tar \
|
||||||
|
# wget \
|
||||||
|
# xz
|
||||||
|
|
||||||
|
RUN pip3 install --upgrade pip
|
||||||
|
RUN pip3 install -U setuptools
|
||||||
|
RUN pip3 install --ignore-installed pyzmq
|
||||||
|
RUN pip3 install jupyter docutils
|
16
custom/app.ini
Normal file
16
custom/app.ini
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[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
|
||||||
|
|
||||||
|
[markup.docx]
|
||||||
|
ENABLED = true
|
||||||
|
FILE_EXTENSIONS = .docx
|
||||||
|
RENDER_COMMAND = "pandoc --from docx --to html --self-contained --template /data/gitea/templates/basic.html"
|
||||||
|
|
||||||
|
[markup.sanitizer.docx.img]
|
||||||
|
ALLOW_DATA_URI_IMAGES = true
|
1
custom/basic.html
Normal file
1
custom/basic.html
Normal file
@ -0,0 +1 @@
|
|||||||
|
$body$
|
Loading…
x
Reference in New Issue
Block a user