Skip to content

Commit

Permalink
move pandoc files
Browse files Browse the repository at this point in the history
  • Loading branch information
mfenner committed Mar 22, 2024
1 parent a6e8831 commit b8a8248
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 48 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ ENV VIRTUAL_ENV=/app/.venv \
COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV}

COPY api ./api
COPY assets ./assets
COPY pandoc ./pandoc
COPY hypercorn.toml ./
EXPOSE 8080

Expand Down
4 changes: 2 additions & 2 deletions api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,8 +849,8 @@ def write_pdf(markdown: str):
"--pdf-engine=weasyprint",
"--pdf-engine-opt=--pdf-variant=pdf/ua-1",
"--data-dir=environ['QUART_PANDOC_DATA_DIR']",
"--template=default.html5",
"--css=style.css",
"--template=pandoc/default.html5",
"--css=pandoc/style.css",
],
)
except Exception as e:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
12 changes: 6 additions & 6 deletions assets/style.css → pandoc/style.css
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
@font-face {
font-family: Fira Sans;
font-weight: 300;
src: url("FiraSans-Light.otf");
src: url("pandoc/FiraSans-Light.otf");
}
@font-face {
font-family: Fira Sans;
font-style: italic;
font-weight: 300;
src: url("FiraSans-LightItalic.otf");
src: url("pandoc/FiraSans-LightItalic.otf");
}
@font-face {
font-family: Fira Sans;
font-weight: 500;
src: url("FiraSans-SemiBold.otf");
src: url("pandoc/FiraSans-SemiBold.otf");
}
@font-face {
font-family: Fira Sans;
font-style: italic;
font-weight: 500;
src: url("FiraSans-SemiBoldItalic.otf");
src: url("pandoc/FiraSans-SemiBoldItalic.otf");
}
@font-face {
font-family: Fira Sans;
font-weight: 700;
src: url("FiraSans-Bold.otf");
src: url("pandoc/FiraSans-Bold.otf");
}

@page {
Expand Down Expand Up @@ -333,7 +333,7 @@ code, pre {
@font-face {
font-family: Fira Mono;
font-weight: 300;
src: url("FiraMono-Regular.otf");
src: url("pandoc/FiraMono-Regular.otf");
}
}
code {
Expand Down
78 changes: 39 additions & 39 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b8a8248

Please sign in to comment.