From ceb3de94f0f9730f975e750825e80cf70f9075a2 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 29 Feb 2024 16:11:19 +0100 Subject: [PATCH] multi-input --- build.sh | 9 ++++++++- in.txt | 3 +++ index.md => in/index.md | 30 ------------------------------ in/info.md | 7 +++++++ in/plan.md | 21 +++++++++++++++++++++ 5 files changed, 39 insertions(+), 31 deletions(-) create mode 100644 in.txt rename index.md => in/index.md (77%) create mode 100644 in/info.md create mode 100644 in/plan.md diff --git a/build.sh b/build.sh index 80fe371..2333e3a 100755 --- a/build.sh +++ b/build.sh @@ -2,11 +2,17 @@ FILE="$(realpath "${BASH_SOURCE[0]}")" ROOT="$(dirname "${FILE}")" +INPUT="${ROOT}/in" OUTPUT="${ROOT}/out" rm --force --recursive "${OUTPUT}" mkdir --parents "${OUTPUT}" +FILES=() +for f in $(cat "${ROOT}/in.txt") ; do + FILES+=("${INPUT}/${f}.md") +done + pandoc \ --verbose \ --standalone \ @@ -20,4 +26,5 @@ pandoc \ --write 'revealjs' \ --variable revealjs-url='/sw/revealjs/up' \ --variable slideNumber \ -"${ROOT}/index.md" +\ +"${FILES[@]}" diff --git a/in.txt b/in.txt new file mode 100644 index 0000000..981bdd3 --- /dev/null +++ b/in.txt @@ -0,0 +1,3 @@ +info +plan +index diff --git a/index.md b/in/index.md similarity index 77% rename from index.md rename to in/index.md index 03c8992..6b38711 100644 --- a/index.md +++ b/in/index.md @@ -1,33 +1,3 @@ ---- -author: Marc Beninca -date: 2024 / 03 -lang: fr-FR -title: Git PPP -subtitle: Possibilités, Porcelaine & Plomberie ---- - -# Plan {-} - -::: {.columns} -::: {.column width="33%"} -* Possibilités - * Outils - * Concepts -::: -::: {.column width="33%"} -* Porcelaine - * Bases - * Local - * Collaborer -::: -::: {.column width="33%"} -* Plomberie - * Basique - * Pointeurs - * Objets -::: -::: - # Possibilités 1. Outils diff --git a/in/info.md b/in/info.md new file mode 100644 index 0000000..f1b73d5 --- /dev/null +++ b/in/info.md @@ -0,0 +1,7 @@ +--- +author: Marc Beninca +date: 2024 / 03 +lang: fr-FR +title: Git PPP +subtitle: Possibilités, Porcelaine & Plomberie +--- diff --git a/in/plan.md b/in/plan.md new file mode 100644 index 0000000..c983b25 --- /dev/null +++ b/in/plan.md @@ -0,0 +1,21 @@ +# Plan {-} + +::: {.columns} +::: {.column width="33%"} +* Possibilités + * Outils + * Concepts +::: +::: {.column width="33%"} +* Porcelaine + * Bases + * Local + * Collaborer +::: +::: {.column width="33%"} +* Plomberie + * Basique + * Pointeurs + * Objets +::: +:::