Finalize initial import
This commit is contained in:
parent
99c8d5931d
commit
59304fb6d0
8 changed files with 3685 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,7 +1,9 @@
|
||||||
\.vagrant
|
\.vagrant
|
||||||
|
.sass-cache
|
||||||
node_modules
|
node_modules
|
||||||
_inspiration/
|
_inspiration/
|
||||||
*.pdf
|
*.pdf
|
||||||
*.epub
|
*.epub
|
||||||
*.docx
|
*.docx
|
||||||
/site
|
/site
|
||||||
|
/tmp
|
||||||
|
|
27
Makefile
27
Makefile
|
@ -1,13 +1,22 @@
|
||||||
|
|
||||||
|
SLIDES_MD=$(shell find slides \( -name '*.md' ! -name '_*' \))
|
||||||
|
SLIDES_PDF=$(patsubst slides/%.md,build/slides/%.pdf,$(SLIDES_MD))
|
||||||
|
|
||||||
all: help
|
all: help
|
||||||
|
|
||||||
|
echo:
|
||||||
|
@echo "SLIDES = $(SLIDES_PDF)"
|
||||||
|
|
||||||
prepare:
|
prepare:
|
||||||
pipenv install
|
pipenv install
|
||||||
|
|
||||||
watch: ## run development server
|
watch: ## run development server
|
||||||
pipenv run honcho start
|
pipenv run honcho start
|
||||||
|
|
||||||
watch-mkdocs:
|
watch-slides:
|
||||||
|
npx marp --engine $$(pwd)/engine.js --html --theme theme.css -w slides -s
|
||||||
|
|
||||||
|
watch-docs:
|
||||||
pipenv run mkdocs serve --dev-addr 0.0.0.0:5001
|
pipenv run mkdocs serve --dev-addr 0.0.0.0:5001
|
||||||
|
|
||||||
serve: watch
|
serve: watch
|
||||||
|
@ -18,9 +27,23 @@ tocupdate:
|
||||||
pipenv run ./scripts/update-toc ; \
|
pipenv run ./scripts/update-toc ; \
|
||||||
done
|
done
|
||||||
|
|
||||||
build:## build static pages
|
build/slides/%.pdf: slides/%.md
|
||||||
|
mkdir -p build/slides
|
||||||
|
npx marp --allow-local-files \
|
||||||
|
--engine $$(pwd)/engine.js \
|
||||||
|
--html \
|
||||||
|
--theme theme.css \
|
||||||
|
$< \
|
||||||
|
-o $@
|
||||||
|
|
||||||
|
build-slides: $(SLIDES_PDF) $(SLIDES_MD)
|
||||||
|
|
||||||
|
build-docs:
|
||||||
pipenv run mkdocs build
|
pipenv run mkdocs build
|
||||||
|
|
||||||
|
build: build-docs build-slides ## build static pages
|
||||||
|
.PHONY: build build-slides
|
||||||
|
|
||||||
install: ## deploy static pages to github
|
install: ## deploy static pages to github
|
||||||
git push
|
git push
|
||||||
pipenv run mkdocs gh-deploy
|
pipenv run mkdocs gh-deploy
|
||||||
|
|
3
Procfile
3
Procfile
|
@ -1,2 +1,3 @@
|
||||||
web: make watch-mkdocs
|
docs: make watch-docs
|
||||||
|
slides: make watch-slides
|
||||||
toc: make tocupdate
|
toc: make tocupdate
|
||||||
|
|
12
engine.js
Normal file
12
engine.js
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
// engine.js
|
||||||
|
// You have to run `npm i @marp-team/marp-core` at first.
|
||||||
|
const { Marp } = require('@marp-team/marp-core')
|
||||||
|
|
||||||
|
module.exports = opts => {
|
||||||
|
const marp = new Marp(opts)
|
||||||
|
|
||||||
|
// Disable parsing fragmented list
|
||||||
|
marp.markdown.core.ruler.disable('marpit_fragment')
|
||||||
|
|
||||||
|
return marp
|
||||||
|
}
|
3643
package-lock.json
generated
Normal file
3643
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -12,7 +12,7 @@
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@marp-team/marp-cli": "^0.16.2",
|
"@marp-team/marp-cli": "^0.17.3",
|
||||||
"foreman": "^3.0.1",
|
"foreman": "^3.0.1",
|
||||||
"node-sass": "^4.13.0"
|
"node-sass": "^4.13.0"
|
||||||
}
|
}
|
||||||
|
|
0
scripts/20-etapes-projet.md
Normal file
0
scripts/20-etapes-projet.md
Normal file
Binary file not shown.
Loading…
Reference in a new issue