diff --git a/Makefile b/Makefile deleted file mode 100644 index 8d2c393..0000000 --- a/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -all: - ${asciidoctor}/bin/asciidoctor -o ${out}/page.html ${src}/slides.adoc - ${asciidoctor-revealjs}/bin/asciidoctor-revealjs -a revealjsdir=https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0 -o ${out}/slides.html ${src}/slides.adoc - diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..830b2dc --- /dev/null +++ b/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +export PATH="${jre}/bin:${coreutils}/bin:${graphviz}/bin:${asciidoctor_revealjs}/bin" + +${asciidoctor}/bin/asciidoctor -r asciidoctor-diagram -o ${out}/page.html ${src}/slides.adoc +asciidoctor-revealjs -a revealjsdir=https://cdnjs.cloudflare.com/ajax/libs/reveal.js/3.7.0 -r asciidoctor-diagram -o ${out}/slides.html --trace ${src}/slides.adoc + diff --git a/default.nix b/default.nix index 0c03806..4b96be2 100644 --- a/default.nix +++ b/default.nix @@ -1,17 +1,18 @@ with (import {}); -let asciidoctor-revealjs = bundlerApp { +let asciidoctor_revealjs = bundlerApp { pname = "asciidoctor-revealjs"; exes = [ "asciidoctor-revealjs" ]; + inherit ruby; gemdir = ./.; }; in derivation { name = "kafetech-fai"; - builder = "${gnumake}/bin/make"; - args = [ "-f" ./Makefile ]; - inherit asciidoctor asciidoctor-revealjs; + builder = "${bash}/bin/bash"; + args = [ "-f" ./build.sh ]; + inherit asciidoctor asciidoctor_revealjs coreutils jre graphviz; src = ./src; system = builtins.currentSystem; } diff --git a/src/slides.adoc b/src/slides.adoc index fbcf12d..e8b3e57 100644 --- a/src/slides.adoc +++ b/src/slides.adoc @@ -1 +1,8 @@ -toto += Devenir son propre FAI + +Pourquoi ? Comment ? + +== Qu'est-ce qu'Internet ? + +== Pourquoi son propre FAI ? +