Commit d9707963 authored by Laurette Chardon's avatar Laurette Chardon
Browse files

Modifications qui seront validées :

	nouveau fichier : CRISCO_LOGO_BLEUweb.jpg
	modifié :         README.md
	nouveau fichier : actudes-html-pandoc.sh
	nouveau fichier : actudes-pdf-weasyprint.sh
	nouveau fichier : actudes.css
	nouveau fichier : actudes.html
	nouveau fichier : actudes.md
	nouveau fichier : actudes.pdf
	nouveau fichier : images/GrapheAdjacenceCurieux2D.png
	nouveau fichier : images/GrapheAdjacenceCurieux3D.png
	nouveau fichier : images/Menu1.png
	nouveau fichier : images/MenuDesGraphe.png
	nouveau fichier : template_actudes.html
parent 3e78899b
Loading
Loading
Loading
Loading
+19.4 KiB
Loading image diff...
+3 −3
Changes for README.md: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
# Actudes
# actudes



@@ -15,14 +15,14 @@ Already a pro? Just edit this README.md and make it your own. Want to make it ea

```
cd existing_repo
git remote add origin https://git.unicaen.fr/crisco-des-public/actudes.git
git remote add origin https://git.unicaen.fr/crisco-des/actudes.git
git branch -M master
git push -uf origin master
```

## Integrate with your tools

- [ ] [Set up project integrations](https://git.unicaen.fr/crisco-des-public/actudes/-/settings/integrations)
- [ ] [Set up project integrations](https://git.unicaen.fr/crisco-des/actudes/-/settings/integrations)

## Collaborate with your team

+x+7
Changes for actudes-html-pandoc.sh: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
#!/bin/bash



# Pour diffuser la newsletter par mail il faut intégrer le CSS au html pour le moment
pandoc --standalone --template template_actudes.html --css actudes.css -f markdown actudes.md -o actudes.html
#pandoc --standalone --embed-resources --resource-path .:${dossier} --template template_newsletter.html --css actudes.css -f markdown -t html5 actudes.md -o actudes_mail.md
+x+20
Changes for actudes-pdf-weasyprint.sh: 20 added lines, 0 removed lines.
Original line number Diff line number Diff line
#!/bin/bash

if [ $# -lt 1 ] || [ $1 = "help" ]
then
    echo "Syntaxe : genere-pdf-weasyprint <fichier html>"
    echo "   Pour convertir le fichier devlog-newsletter-3.mail.html en pdf"
    echo "   exécuter : genere-pdf-weasyprint devlog-newsletter-3.mail.html"
    echo "   Cela va créer le fichier devlog-newsletter-3.mail.pdf"
    exit 1
fi

# Récupère le fichier html passé en paramètre
HTML_FILE=$1

weasyprint $1 "${HTML_FILE%.*}.pdf"

# avec pandoc
pandoc --pdf-engine=pdflatex  --highlight-style kate -V colorlinks -V urlcolor=NavyBlue -V geometry:"top=2cm, bottom=1.5cm, left=2cm, right=2cm" --toc -N  -o actudes.pdf actudes.md

# cf https://jdhao.github.io/2019/05/30/markdown2pdf_pandoc/
 No newline at end of file
+66
Changes for actudes.css: 66 added lines, 0 removed lines.
Original line number Diff line number Diff line
/*
 * GESTION DU RESPONSIVE
 * ---------------------
 * https://travishorn.com/responsive-grid-in-2-minutes-with-css-grid-layout-4842a41420fe
 */
@media screen and (min-width: 600px) {
    header { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 900px) {
    header { grid-template-columns: 1fr 2fr 1fr; }
}

header {
    background-color: #0056a4;
    color: #ffffff;
    display: grid;
    padding: 0.5em;
}

header > div.logo {
    justify-self: start;
}

header > div.date {
    justify-self: end;
}

header > div {
    justify-self: center;
}

h2 {
    background-color: #144997;
    color: #ffffff;
    padding: 0.25em;
}

h3 {
    color: #144997;
    text-decoration: underline;
    text-decoration-color: #36adbf;
    text-underline-position: under;
}

ul > li > strong:first-child {
    color: #144997;
}

a {
    color: #36adbf;
}

a:visited {
    color: #778899;
}

/* Order hover/visited matters : https://stackoverflow.com/a/29216361/481719 */
a:hover {
    color: #144997;
}

p:nth-of-type(2) > img {
    float: left;
    margin: 0 1em 0 0;
}
Loading