Compare commits
21 Commits
doc-0.0.0.
...
doc-0.0.0-
| Author | SHA1 | Date | |
|---|---|---|---|
| 76e0d6b65f | |||
| b408cb0d0f | |||
| 23fe2c0863 | |||
| dd8eb9d269 | |||
| c8f95f5169 | |||
| 450509008d | |||
| c780145790 | |||
| 9d96f7eafc | |||
| eb9b4c4c1f | |||
| 2cd24abcde | |||
| c030d304f5 | |||
| b950ec6d66 | |||
| c52d5b3303 | |||
| f87090357c | |||
| 8bedef1f85 | |||
| c966caf7f9 | |||
| c19ae8a982 | |||
| 26d56c0d24 | |||
| f5223405a5 | |||
| 7ab7e9e25d | |||
| 370942efe1 |
@@ -6,7 +6,7 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build the debian package
|
name: Convert to PDF
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -16,11 +16,27 @@ jobs:
|
|||||||
run: git checkout "${{ gitea.sha }}"
|
run: git checkout "${{ gitea.sha }}"
|
||||||
- name: "Submodules auschecken"
|
- name: "Submodules auschecken"
|
||||||
run: git submodule update --init
|
run: git submodule update --init
|
||||||
- uses: docker://git.kocoder.xyz/docker/ga-pandoc:c6eaa45b623c284e80f37434872621defc00f864
|
- name: "Debug"
|
||||||
|
run: ls -la ./Defensio
|
||||||
|
- uses: docker://git.kocoder.xyz/docker/ga-pandoc:d2995fb914e313703da2c7754763e7fa01dae88f
|
||||||
|
name: Pandoc
|
||||||
with:
|
with:
|
||||||
env: TEXINPUTS=.:./libs/awesome-beamer/:./libs/smile/
|
env: TEXINPUTS=/workspace/Diplomarbeit-Absolventenverein/pm/Defensio:/workspace/Diplomarbeit-Absolventenverein/pm/Defensio/libs/awesome-beamer/:/workspace/Diplomarbeit-Absolventenverein/pm/Defensio/libs/smile/
|
||||||
command: pandoc
|
command: pandoc
|
||||||
args: "--help" # gets appended to pandoc command
|
args: >-
|
||||||
|
/workspace/Diplomarbeit-Absolventenverein/pm/Defensio/01_Praesentation_Allgemein.md
|
||||||
|
/workspace/Diplomarbeit-Absolventenverein/pm/Defensio/02_Praesentation_Konstantin_Hintermayer.md
|
||||||
|
/workspace/Diplomarbeit-Absolventenverein/pm/Defensio/03_Praesentation_Florian_Edlmayer.md
|
||||||
|
/workspace/Diplomarbeit-Absolventenverein/pm/Defensio/04_Praesentation_Adam_Gaiswinkler.md
|
||||||
|
-t beamer
|
||||||
|
--template /workspace/Diplomarbeit-Absolventenverein/pm/Defensio/00_preamble.tex
|
||||||
|
--pdf-engine=pdflatex
|
||||||
|
--slide-level=2
|
||||||
|
--number-sections
|
||||||
|
--lua-filter /workspace/Diplomarbeit-Absolventenverein/pm/_extensions/diagram/diagram.lua
|
||||||
|
--syntax-definition /workspace/Diplomarbeit-Absolventenverein/pm/_extensions/razor/razor.xml
|
||||||
|
--syntax-definition /workspace/Diplomarbeit-Absolventenverein/pm/_extensions/nginx/nginx.xml
|
||||||
|
-o defensio.pdf
|
||||||
- name: "Create release"
|
- name: "Create release"
|
||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
name: Word Count
|
name: Word Count
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ "main", "master" ]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main", "master" ]
|
branches: [ "main", "master" ]
|
||||||
|
|
||||||
|
|||||||
3
.gitignore
vendored
3
.gitignore
vendored
@@ -1 +1,2 @@
|
|||||||
diplomarbeitsbuch.pdf
|
diplomarbeitsbuch.pdf
|
||||||
|
defensio.pdf
|
||||||
3
Defensio/puppeteer-config.json
Normal file
3
Defensio/puppeteer-config.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"args": ["--no-sandbox"]
|
||||||
|
}
|
||||||
@@ -151,6 +151,11 @@ local mermaid = {
|
|||||||
compile = function (self, code)
|
compile = function (self, code)
|
||||||
local mime_type = self.mime_type or 'image/svg+xml'
|
local mime_type = self.mime_type or 'image/svg+xml'
|
||||||
local file_extension = extension_for_mimetype[mime_type]
|
local file_extension = extension_for_mimetype[mime_type]
|
||||||
|
|
||||||
|
-- Resolve puppeteer config path
|
||||||
|
local puppeteer_config = pandoc.path.join({pandoc.system.get_working_directory(), 'puppeteer-config.json'})
|
||||||
|
|
||||||
|
|
||||||
return with_temporary_directory("diagram", function (tmpdir)
|
return with_temporary_directory("diagram", function (tmpdir)
|
||||||
return with_working_directory(tmpdir, function ()
|
return with_working_directory(tmpdir, function ()
|
||||||
local infile = 'diagram.mmd'
|
local infile = 'diagram.mmd'
|
||||||
@@ -158,7 +163,7 @@ local mermaid = {
|
|||||||
write_file(infile, code)
|
write_file(infile, code)
|
||||||
pipe(
|
pipe(
|
||||||
self.execpath or 'mmdc',
|
self.execpath or 'mmdc',
|
||||||
{"--pdfFit", "--iconPacksNamesAndUrls", "mdi#https://unpkg.com/@iconify-json/mdi@1.2.3/icons.json", "--input", infile, "--output", outfile},
|
{"--pdfFit", "--iconPacksNamesAndUrls", "mdi#https://unpkg.com/@iconify-json/mdi@1.2.3/icons.json", "-p", puppeteer_config, "--input", infile, "--output", outfile},
|
||||||
''
|
''
|
||||||
)
|
)
|
||||||
return read_file(outfile), mime_type
|
return read_file(outfile), mime_type
|
||||||
@@ -167,6 +172,24 @@ local mermaid = {
|
|||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- Source - https://stackoverflow.com/a/27028488
|
||||||
|
-- Posted by hookenz, modified by community. See post 'Timeline' for change history
|
||||||
|
-- Retrieved 2026-04-18, License - CC BY-SA 4.0
|
||||||
|
|
||||||
|
function dump(o)
|
||||||
|
if type(o) == 'table' then
|
||||||
|
local s = '{ '
|
||||||
|
for k,v in pairs(o) do
|
||||||
|
if type(k) ~= 'number' then k = '"'..k..'"' end
|
||||||
|
s = s .. '['..k..'] = ' .. dump(v) .. ','
|
||||||
|
end
|
||||||
|
return s .. '} '
|
||||||
|
else
|
||||||
|
return tostring(o)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
--- TikZ
|
--- TikZ
|
||||||
--
|
--
|
||||||
|
|
||||||
|
|||||||
31
defensio.md
31
defensio.md
@@ -1,31 +0,0 @@
|
|||||||
% Habits
|
|
||||||
% John Doe
|
|
||||||
% March 22, 2005
|
|
||||||
|
|
||||||
# In the morning
|
|
||||||
|
|
||||||
## Getting up
|
|
||||||
|
|
||||||
- Turn off alarm
|
|
||||||
- Get out of bed
|
|
||||||
|
|
||||||
## Breakfast
|
|
||||||
|
|
||||||
- Eat eggs
|
|
||||||
- Drink coffee
|
|
||||||
|
|
||||||
# In the evening
|
|
||||||
|
|
||||||
## Dinner
|
|
||||||
|
|
||||||
- Eat spaghetti
|
|
||||||
- Drink wine
|
|
||||||
|
|
||||||
------------------
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Going to sleep
|
|
||||||
|
|
||||||
- Get in bed
|
|
||||||
- Count sheep
|
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
pandoc \
|
|
||||||
00-praemble.md \
|
|
||||||
01-toc.md \
|
|
||||||
02-Allgemein.md \
|
|
||||||
03-Diplomarbeitsbuch-individueller-teil-Adam-Gaiswinkler.md \
|
|
||||||
04-Diplomarbeitsbuch-individueller-teil-Florian-Edlmayer.md \
|
|
||||||
05-Diplomarbeitsbuch-individueller-teil-Konstantin-Hintermayer.md \
|
|
||||||
97-tabellenverzeichnis.md \
|
|
||||||
98-abbildungsverzeichnis.md \
|
|
||||||
99-bibliographie.md \
|
|
||||||
--number-sections \
|
|
||||||
--lua-filter _extensions/diagram/diagram.lua \
|
|
||||||
--syntax-definition _extensions/razor/razor.xml \
|
|
||||||
--syntax-definition _extensions/nginx/nginx.xml \
|
|
||||||
--citeproc \
|
|
||||||
--bibliography sources.bib \
|
|
||||||
--csl _extensions/sources/tgm.csl \
|
|
||||||
--include-before-body 00_preamble.tex \
|
|
||||||
-H _extensions/header/header.tex \
|
|
||||||
-V geometry:"top=2.5cm, bottom=2cm, left=3cm, right=2cm, a4paper" \
|
|
||||||
-V toc-title="Inhaltsverzeichnis" \
|
|
||||||
-V classoption=twoside \
|
|
||||||
-V fontsize=12pt \
|
|
||||||
-V linestretch=1.5 \
|
|
||||||
-o diplomarbeitsbuch.tex
|
|
||||||
3
puppeteer-config.json
Normal file
3
puppeteer-config.json
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"args": ["--no-sandbox"]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user