From abc2a9c30066fd45a3abb13b68c57377e3afa6fe Mon Sep 17 00:00:00 2001 From: Lars Rossen Date: Sun, 10 May 2026 12:21:09 +0200 Subject: [PATCH] reverting changes --- build-slides.sh | 6 +----- docs/infrastruktur/labdesign.md | 9 +-------- marp.config.mjs | 21 --------------------- package.json | 12 ------------ 4 files changed, 2 insertions(+), 46 deletions(-) delete mode 100644 marp.config.mjs delete mode 100644 package.json diff --git a/build-slides.sh b/build-slides.sh index 42d4281..41a05ac 100755 --- a/build-slides.sh +++ b/build-slides.sh @@ -19,11 +19,7 @@ fi echo "Found ${#SLIDES[@]} presentation(s):" printf ' %s\n' "${SLIDES[@]}" -CONFIG="$REPO_ROOT/marp.config.mjs" - -if command -v npx &>/dev/null && [ -f "$CONFIG" ]; then - npx @marp-team/marp-cli --config "$CONFIG" --html --output "$OUTPUT_DIR/" "${SLIDES[@]}" -elif command -v marp &>/dev/null; then +if command -v marp &>/dev/null; then marp --html --output "$OUTPUT_DIR/" "${SLIDES[@]}" else echo "marp not found locally — using Docker (marpteam/marp-cli)..." diff --git a/docs/infrastruktur/labdesign.md b/docs/infrastruktur/labdesign.md index c741dc1..5ad6349 100644 --- a/docs/infrastruktur/labdesign.md +++ b/docs/infrastruktur/labdesign.md @@ -1,15 +1,8 @@ --- marp: true -theme: gaia -class: invert -paginate: true +pagination: true --- - - # Introduction This is assorted notes on what could go into the MakerFLOSS lab diff --git a/marp.config.mjs b/marp.config.mjs deleted file mode 100644 index 21f911d..0000000 --- a/marp.config.mjs +++ /dev/null @@ -1,21 +0,0 @@ -import { Marp } from '@marp-team/marp-core' - -// Custom Marp engine with Mermaid support via HTML injection -export default { - html: true, - engine: (constructorOptions) => { - const marp = new Marp(constructorOptions) - - // Transform mermaid code blocks to divs that mermaid.js can render - const { code } = marp.markdown.renderer.rules - marp.markdown.renderer.rules.code = (tokens, idx, options, env, self) => { - const token = tokens[idx] - if (token.info.trim() === 'mermaid') { - return `
${token.content}
` - } - return code(tokens, idx, options, env, self) - } - - return marp - } -} diff --git a/package.json b/package.json deleted file mode 100644 index c53adde..0000000 --- a/package.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "name": "makerfloss-slides", - "private": true, - "type": "module", - "scripts": { - "build": "./build-slides.sh" - }, - "devDependencies": { - "@marp-team/marp-cli": "^4.1.0", - "@marp-team/marp-core": "^4.1.0" - } -}