-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: | ||
author: | ||
rights: Creative Commons Attribution ShareAlike 4.0 | ||
language: en-US | ||
cover-image: | ||
description: | ||
date: | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Preface {epub:type=preface} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Contributors {epub:type=contributors} | ||
|
||
| Name | Website | Role | | ||
| ------ | --------- | ----- | | ||
| Seb | https://zedas.fr | Main author | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Chapter 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Chapter 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Put images here. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
# generate epub | ||
|
||
DEFAULT_BASENAME=$(pwd | awk -F '/' '{print $NF}') | ||
DEFAULT_LANG="fr" | ||
|
||
read -p "Name of the epub file [ ${DEFAULT_BASENAME}] : " FILE_BASENAME | ||
FILE_BASENAME=${FILE_BASENAME:-$DEFAULT_BASENAME} | ||
echo "Available languages are : " | ||
ls -d book* | ||
read -p "Which language to use : [ ${DEFAULT_LANG} ] : " BOOK_LANG | ||
BOOK_LANG=${BOOK_LANG:-$DEFAULT_LANG} | ||
read -p "Review filename [ ${FILE_BASENAME}-${BOOK_LANG}.epub ] : " EPUB_FILE | ||
EPUB_FILE=${EPUB_FILE:-"${FILE_BASENAME}-${BOOK_LANG}.epub"} | ||
echo $EPUB_FILE | ||
|
||
podman run --rm -v .:/workspace --workdir /workspace ghcr.io/wivik/pandoc-plantuml:latest -o ${EPUB_FILE} --filter=/filters/plantuml.py --resource-path=.:book-${BOOK_LANG} --standalone $(ls book-${BOOK_LANG}/00-*.md book-${BOOK_LANG}/01-*.md) | ||
|
||
|