Compare commits
5 commits
6b315b2f44
...
3deea69d24
Author | SHA1 | Date | |
---|---|---|---|
3deea69d24 | |||
adaa7c0f25 | |||
c5b12cb0a8 | |||
f638a9d5a3 | |||
aee774329f |
6 changed files with 84 additions and 3 deletions
1
Makefile
1
Makefile
|
@ -118,6 +118,7 @@ $(CACHE_SLIDES_DIR)/%.mdpp.md: $(SLIDES_DIR)/%.mdpp
|
|||
cd .marp && $(MAKE) theme.css
|
||||
|
||||
watch: ## run development server
|
||||
$(MAKE) autoslide
|
||||
pipenv run honcho start
|
||||
|
||||
autoslide:
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
FROM node:bullseye-slim
|
||||
FROM node:18-bullseye-slim
|
||||
MAINTAINER Glenn ROLLAND <glenux@glenux.net>
|
||||
|
||||
RUN apt-get update \
|
||||
|
|
49
docs.extra/css.extra/extra.css
Normal file
49
docs.extra/css.extra/extra.css
Normal file
|
@ -0,0 +1,49 @@
|
|||
p > img[alt*="center"] {
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
hr {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@page {
|
||||
size: a4 portrait;
|
||||
margin: 25mm 10mm 25mm 10mm;
|
||||
counter-increment: page;
|
||||
font-family: "Noto", sans-serif;
|
||||
white-space: pre;
|
||||
color: grey;
|
||||
|
||||
@top-left {
|
||||
font-size: 70%;
|
||||
content: 'Formation « Cloud & Enjeux »';
|
||||
}
|
||||
/*
|
||||
@top-center {
|
||||
content: string(chapter);
|
||||
}*/
|
||||
@top-right {
|
||||
font-size: 70%;
|
||||
/* content: 'SQLI INSTITUT (ASTON)'; */
|
||||
/* content: 'AELION'; */
|
||||
content: '';
|
||||
}
|
||||
|
||||
@bottom-left {
|
||||
font-size: 70%;
|
||||
content: '2017-2022 © Glenn ROLLAND - Ne pas diffuser';
|
||||
}
|
||||
/*
|
||||
@bottom-center {
|
||||
content: string(chapter);
|
||||
}*/
|
||||
|
||||
/*
|
||||
@bottom-right {
|
||||
font-size: 70%;
|
||||
content: 'Page ' counter(page);
|
||||
}*/
|
||||
}
|
||||
|
18
docs.extra/javascript.extra/mathjax.js
Normal file
18
docs.extra/javascript.extra/mathjax.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
window.MathJax = {
|
||||
tex: {
|
||||
inlineMath: [["\\(", "\\)"]],
|
||||
displayMath: [["\\[", "\\]"]],
|
||||
processEscapes: true,
|
||||
processEnvironments: true
|
||||
},
|
||||
options: {
|
||||
ignoreHtmlClass: ".*|",
|
||||
processHtmlClass: "arithmatex"
|
||||
}
|
||||
};
|
||||
|
||||
document$.subscribe(() => {
|
||||
|
||||
|
||||
MathJax.typesetPromise()
|
||||
})
|
|
@ -55,8 +55,8 @@ markdown_extensions:
|
|||
- pymdownx.highlight:
|
||||
anchor_linenums: false
|
||||
- pymdownx.inlinehilite
|
||||
# - codehilite:
|
||||
# guess_lang: false
|
||||
- codehilite:
|
||||
guess_lang: true
|
||||
|
||||
# pip install mdx_truly_sane_lists
|
||||
- mdx_truly_sane_lists
|
||||
|
@ -67,6 +67,8 @@ markdown_extensions:
|
|||
#
|
||||
# pip install pymdown-extensions
|
||||
- pymdownx.superfences:
|
||||
# - pymdownx.arithmatex:
|
||||
# generic: true
|
||||
|
||||
# plugins: []
|
||||
plugins:
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
# Set defaults
|
||||
BASEDIR="$(pwd)"
|
||||
BASEHASH="$(echo "$BASEDIR" |sha256sum |head -c7)"
|
||||
ACTION="watch"
|
||||
VERBOSITY="0"
|
||||
DOCKER_IMAGE=glenux/teaching-boilerplate:latest
|
||||
|
@ -104,7 +105,17 @@ fi
|
|||
if [ "$VERBOSITY" -gt 0 ]; then
|
||||
set -x
|
||||
fi
|
||||
|
||||
DOCKER_NAME="gx-teaching-$BASEHASH"
|
||||
DOCKER_CID="$(docker ps -f "name=$DOCKER_NAME" -q)"
|
||||
|
||||
if [ -n "$DOCKER_CID" ]; then
|
||||
docker kill "$DOCKER_NAME"
|
||||
fi
|
||||
|
||||
docker run -i $DOCKER_OPT_TTY \
|
||||
--name "$DOCKER_NAME" \
|
||||
--rm \
|
||||
--shm-size=1gb \
|
||||
-e "EXT_UID=$(id -u)" \
|
||||
-e "EXT_GID=$(id -g)" \
|
||||
|
|
Loading…
Add table
Reference in a new issue