diff --git a/.gitignore b/.gitignore index a5c4e95..584ee0a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ *.pdf -présentation-services.html +*présentation-services.html diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..7707311 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +# Modifier le nom et le nombre des fichiers +# contenant les sources du document +input_files := \ +présentation-services.md + +output_file_name := cmu-présentation-services + +pandoc := \ + pandoc -s --citeproc \ + --css=style.css --template=template.html \ + # --toc --toc-depth=2 \ + +pandoc_html := \ + $(pandoc) \ + --to=html --output=$(output_file_name).html \ + $(input_files) + +pandoc_pdf := \ + $(pandoc) \ + -V noscript=true \ + --embed-resource --to=pdf \ + --pdf-engine=pagedjs-cli \ + --output=$(output_file_name).pdf \ + $(input_files) + +html: $(input_files) + $(pandoc_html) + +watch_html: $(input_files) + watchexec -r -w . -i $(output_file_name).html \ + " $(pandoc_html)" + +pdf: $(input_files) + $(pandoc_pdf) + +serve: + watchexec -r -w . "python -m http.server" diff --git a/présentation-services.md b/présentation-services.md index 719b87d..2999f25 100644 --- a/présentation-services.md +++ b/présentation-services.md @@ -4,6 +4,8 @@ subtitle: Aide mémoire date: Printemps 2025 creation_date: 2025-04-09T10:15:25+0200 id: 20250409101525 +logo: +- ./static/cmu.jpg lang: fr tags: [tags] --- diff --git a/static/cmu.jpg b/static/cmu.jpg new file mode 100644 index 0000000..e50cd91 Binary files /dev/null and b/static/cmu.jpg differ diff --git a/style.css b/style.css index d4dd193..0e0deb5 100644 --- a/style.css +++ b/style.css @@ -81,11 +81,11 @@ .logo { display: inline-flex; justify-content: center; - width: 60%; + /* width: 60%; */ margin: 2em auto 1em auto; } .logo img { - max-width: 50%; + max-width: 100%; padding: .5em; }