Compare commits

..

12 Commits

Author SHA1 Message Date
alexander
6dfe3998e1 a
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 10s
2026-01-19 01:08:41 +01:00
alexander
421ddd1f6d aaaa
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 10s
2026-01-19 01:06:07 +01:00
alexander
ecdc00b4b2 moved more around
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 11s
2026-01-19 01:04:12 +01:00
alexander
8b24c9ea8e a
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 9s
2026-01-19 00:58:42 +01:00
alexander
740384a433 Moved names arround
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 9s
2026-01-19 00:57:27 +01:00
alexander
0f9aed8b07 ci/Cd
All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 10s
2026-01-19 00:54:41 +01:00
alexander
d8769ca440 Update gitea
Some checks failed
Build Typst PDFs (Docker) / build-typst (push) Failing after 12s
2026-01-19 00:52:40 +01:00
alexander
6cdd323198 removed old shit
Some checks failed
Build Typst PDFs (Docker) / build-typst (push) Failing after 16s
2026-01-19 00:39:42 +01:00
alexander
d3c51d5ee7 Merge branch 'clean' 2026-01-19 00:38:41 +01:00
alexander
ae64e72fd4 reverted to old state 2026-01-19 00:38:18 +01:00
alexander
db9a34579f Added "Prototection"
Some checks failed
Build Typst PDFs (Docker) / build-typst (push) Failing after 50s
2026-01-18 23:53:53 +01:00
alexander
3eac461f7a Finsihed 2026-01-18 23:53:53 +01:00
13 changed files with 4162 additions and 20240 deletions

View File

@@ -7,16 +7,13 @@ on:
pull_request:
branches: [ "**" ]
env:
TYPST_SOURCE_DIR: src
BUILD_DIR: build
jobs:
build-typst:
runs-on: ubuntu-latest
# Run the whole job inside a Docker container that has Typst installed
steps:
- uses: typst-community/setup-typst@v4
- name: Checkout repository
uses: actions/checkout@v4
with:
@@ -27,38 +24,25 @@ jobs:
- name: Debug Ls
run: ls -la "$PWD" && echo "$PWD && echo ${{ github.workspace }}"
- name: Build Typst builder image
uses: docker/build-push-action@v2
with:
tags: typst-builder-image:latest
push: false
- name: Make build directory
run: mkdir -p build
- name: Compile all .typ files
uses: addnab/docker-run-action@v3
env:
TYPST_SOURCE_DIR: ${{ env.TYPST_SOURCE_DIR }}
BUILD_DIR: ${{ env.BUILD_DIR }}
with:
image: typst-builder-image:latest
options: --volumes-from=${{ env.JOB_CONTAINER_NAME }}
cwd: ${{ github.workspace }}
run: "cd ${{ github.workspace }} && TYPST_SOURCE_DIR=${{ env.TYPST_SOURCE_DIR }} BUILD_DIR=${{ env.BUILD_DIR }} bash -c ./compile-all.bash"
- name: Compile Analysis1
continue-on-error: true
run: typst compile --root src src/cheatsheets/Analysis1.typ build/Analysis1.pdf
- name: Upload PDFs
if: always()
uses: actions/upload-artifact@v3
with:
name: typst-pdfs
path: ${{ env.BUILD_DIR }}/*.pdf
if-no-files-found: warn
- name: Compile Schaltungstheorie
continue-on-error: true
run: typst compile --root src src/cheatsheets/Schaltungstheorie.typ build/Schaltungstheorie.pdf
- name: Compile LinAlg
continue-on-error: true
run: typst compile --root src src/cheatsheets/LinearAlgebra.typ build/LinearAlgebra.pdf
- name: Create Gitea Release
uses: softprops/action-gh-release@v1
continue-on-error: true
uses: akkuman/gitea-release-action@v1
with:
tag_name: ${{ steps.tag.outputs.tag }}
name: Typst PDFs ${{ steps.tag.outputs.tag }}
body: |
Automated release of Typst-generated PDFs.
Commit: ${{ github.sha }}
files: ${{ env.BUILD_DIR }}/*.pdf
name: "Formelsammlungen PDFs"
tag_name: "latest"
files: build/*.pdf

8
.gitignore vendored
View File

@@ -1 +1,7 @@
venv
.venv
out
node_modules
__pycache__/
package-lock.json
package.json

17
.vscode/tasks.json vendored
View File

@@ -1,17 +0,0 @@
{
"tasks": [
{
"label": "Compile All",
"type": "shell",
"command": "TYPST_SOURCE_DIR=src BUILD_DIR=output ./compile-all.bash",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"options": {
"cwd": "${workspaceFolder}"
}
}
]
}

4135
build/Analysis1.pdf Normal file

File diff suppressed because one or more lines are too long

View File

@@ -1,31 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
SRC_DIR="${TYPST_SOURCE_DIR}"
OUT_DIR="${BUILD_DIR}"
if [[ ! -d "$SRC_DIR" ]]; then
echo "Source directory '$SRC_DIR' does not exist."
exit 1
fi
mkdir -p "$OUT_DIR"
# Find all .typ files under $SRC_DIR (excluding hidden dirs)
mapfile -d '' files < <(printf '%s\0' "$SRC_DIR"/*.typ 2>/dev/null)
if [[ ${#files[@]} -eq 0 ]]; then
echo "No .typ files found in '$SRC_DIR'."
exit 0
fi
for f in "${files[@]}"; do
# Trim leading ./ if present
rel="${f#./}"
# Destination path: build/<same-subdirs>/<filename>.pdf
dest_pdf="${OUT_DIR}/$(basename "${rel%.typ}").pdf"
echo "Compiling: $f -> $dest_pdf"
typst compile "$f" "$dest_pdf"
done

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@@ -1,7 +1,7 @@
#import "@preview/biceps:0.0.1" : *
#import "@preview/mannot:0.3.1"
#import "lib/styles.typ" : *
#import "lib/common_rewrite.typ" : *
#import "../lib/styles.typ" : *
#import "../lib/common_rewrite.typ" : *
#set page(
paper: "a4",