reverting changes
This commit is contained in:
parent
2459b4c680
commit
abc2a9c300
4 changed files with 2 additions and 46 deletions
|
|
@ -19,11 +19,7 @@ fi
|
||||||
echo "Found ${#SLIDES[@]} presentation(s):"
|
echo "Found ${#SLIDES[@]} presentation(s):"
|
||||||
printf ' %s\n' "${SLIDES[@]}"
|
printf ' %s\n' "${SLIDES[@]}"
|
||||||
|
|
||||||
CONFIG="$REPO_ROOT/marp.config.mjs"
|
if command -v marp &>/dev/null; then
|
||||||
|
|
||||||
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
|
|
||||||
marp --html --output "$OUTPUT_DIR/" "${SLIDES[@]}"
|
marp --html --output "$OUTPUT_DIR/" "${SLIDES[@]}"
|
||||||
else
|
else
|
||||||
echo "marp not found locally — using Docker (marpteam/marp-cli)..."
|
echo "marp not found locally — using Docker (marpteam/marp-cli)..."
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,8 @@
|
||||||
---
|
---
|
||||||
marp: true
|
marp: true
|
||||||
theme: gaia
|
pagination: true
|
||||||
class: invert
|
|
||||||
paginate: true
|
|
||||||
---
|
---
|
||||||
|
|
||||||
<script type="module">
|
|
||||||
import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@11/dist/mermaid.esm.min.mjs';
|
|
||||||
mermaid.initialize({ startOnLoad: true, theme: 'dark' });
|
|
||||||
</script>
|
|
||||||
|
|
||||||
# Introduction
|
# Introduction
|
||||||
|
|
||||||
This is assorted notes on what could go into the MakerFLOSS lab
|
This is assorted notes on what could go into the MakerFLOSS lab
|
||||||
|
|
|
||||||
|
|
@ -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 `<div class="mermaid">${token.content}</div>`
|
|
||||||
}
|
|
||||||
return code(tokens, idx, options, env, self)
|
|
||||||
}
|
|
||||||
|
|
||||||
return marp
|
|
||||||
}
|
|
||||||
}
|
|
||||||
12
package.json
12
package.json
|
|
@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Add table
Reference in a new issue