From 2587380ad39736e6f3c8020a2676fade86515dd0 Mon Sep 17 00:00:00 2001 From: tykayn Date: Mon, 11 Jan 2021 23:26:22 +0100 Subject: [PATCH] add chapters content --- .gitignore | 3 +++ img/.gitkeep => LICENSE.md | 0 build_ebook.sh | 7 +++++-- source/02_chapitre_2.md | 3 ++- source/03_chapitre_3.md | 3 ++- source/04_chapitre_4.md | 3 ++- source/img/.gitkeep | 0 7 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 .gitignore rename img/.gitkeep => LICENSE.md (100%) create mode 100644 source/img/.gitkeep diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8ff8b0e --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build/*.md +build/*.html +build/img diff --git a/img/.gitkeep b/LICENSE.md similarity index 100% rename from img/.gitkeep rename to LICENSE.md diff --git a/build_ebook.sh b/build_ebook.sh index c4e177c..766df7d 100644 --- a/build_ebook.sh +++ b/build_ebook.sh @@ -13,13 +13,16 @@ hash pandoc 2>/dev/null || { echo >&2 "Ce générateur peut utiliser pandoc four # clean build rm -rf build/* - +cp -R source/img build/img ## Compilation HTML des différents chapitres -cp source/base_index.rst source/index.rst + for i in source/*.md ; do cat $i >> build/toutes_les_pages.md done +pandoc --standalone build/toutes_les_pages.md -o build/toutes_les_pages.html + + #sphinx-build -b html source build # #if [ -e build/index.html ] ; then diff --git a/source/02_chapitre_2.md b/source/02_chapitre_2.md index ff80cde..dc46666 100644 --- a/source/02_chapitre_2.md +++ b/source/02_chapitre_2.md @@ -1 +1,2 @@ -# Chapitre +# Chapitre 2 + diff --git a/source/03_chapitre_3.md b/source/03_chapitre_3.md index ff80cde..11cbe2f 100644 --- a/source/03_chapitre_3.md +++ b/source/03_chapitre_3.md @@ -1 +1,2 @@ -# Chapitre +# Chapitre 3 + diff --git a/source/04_chapitre_4.md b/source/04_chapitre_4.md index ff80cde..e83d9ed 100644 --- a/source/04_chapitre_4.md +++ b/source/04_chapitre_4.md @@ -1 +1,2 @@ -# Chapitre +# Chapitre 4 + diff --git a/source/img/.gitkeep b/source/img/.gitkeep new file mode 100644 index 0000000..e69de29