Modify PDF exports

This commit is contained in:
Jakob Kordež 2024-05-30 22:41:28 +02:00
parent e551b87b89
commit 64e3915bf4
5 changed files with 13 additions and 12 deletions

View File

@ -1,6 +1,10 @@
.vscode/
dist/
node_modules/
.dockerignore
.gitignore
.gitlab-ci.yml
.htaccess
.prettierignore
Dockerfile
README.md

View File

@ -13,6 +13,9 @@ COPY . .
RUN yarn build
RUN yarn export --output ./dist/tecaj
RUN yarn export --dark --output ./dist/tecaj-dark
FROM httpd:2.4-alpine
RUN sed -i '/LoadModule rewrite_module/s/^#//g' /usr/local/apache2/conf/httpd.conf && \

View File

@ -2,30 +2,26 @@
Ogled prosojnic: [https://prosojnice.s59veg.si](https://prosojnice.s59veg.si)
Prenos prosojnic v PDF: [Svetle](https://prosojnice.s59veg.si/tecaj.pdf) | [Temne](https://prosojnice.s59veg.si/tecaj-dark.pdf)
Prosojnice so narejene s [Slidev](https://sli.dev/).
## Zagon na lokalnem računalniku
### Zagon z uporabo Node.js
Za zagon prosojnic potrebujete [Node.js](https://nodejs.org/).
Za zagon prosojnic potrebujete [Node.js](https://nodejs.org/) in [Yarn](https://yarnpkg.com/).
Kako zagnati prosojnice:
- `npm install`
- `npm run dev`
- odpri http://localhost:3030
Ali z uporabo `yarn`:
- `yarn`
- `yarn dev`
- odpri http://localhost:3030
Za izvoz prosojnic v PDF:
- `yarn export:dark` za temne prosojnice ali
- `yarn export:light` za svetle prosojnice
- `yarn export` za svetle prosojnice ali
- `yarn export --dark` za temne prosojnice
### Docker

View File

@ -5,8 +5,7 @@
"build": "slidev build --dark",
"dev": "slidev",
"dev:uvod": "slidev slides_uvod.md",
"export:dark": "slidev export --dark",
"export:light": "slidev export"
"export": "slidev export --with-toc"
},
"dependencies": {
"@slidev/cli": "^0.49.5",

View File

@ -7,7 +7,6 @@ favicon: favicon.ico
defaults:
layout: flex
layout: cover
download: true
---
<div class="flex flex-col gap-10">