diff options
author | Joris Guyonvarch | 2015-06-26 10:45:11 +0200 |
---|---|---|
committer | Joris Guyonvarch | 2015-06-26 10:45:11 +0200 |
commit | b590ca0aea8bbae34885e98b59bc465c09400ca3 (patch) | |
tree | 13a1ede9dce6c63e6b091b04287930ee1888f644 | |
parent | d5ff6672a55f9cd1df63fbed21c02d5bb1d10055 (diff) |
Using npm to generate static pages, WIP
-rw-r--r-- | .gitignore | 2 | ||||
-rwxr-xr-x | gen.sh | 24 | ||||
-rw-r--r-- | index.html | 124 | ||||
-rw-r--r-- | package.json | 13 |
4 files changed, 103 insertions, 60 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1ca9571 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +npm-debug.log @@ -0,0 +1,24 @@ +#!/bin/bash + +MARKDOWN_DIR="Pages" +MARKDOWN_DIR_LENGTH=$(expr 1 + ${#MARKDOWN_DIR}) + +HTML_DIR="Html" + + + + +SELECTOR="${MARKDOWN_DIR}/**/*.md" +for FILENAME in $SELECTOR; do + WITHOUT_DIR=${FILENAME:$MARKDOWN_DIR_LENGTH} + WITHOUT_EXT=${WITHOUT_DIR%.*} + HTML_FILENAME="$HTML_DIR/$WITHOUT_EXT.html" + + # echo $FILENAME + # echo $HTML_FILENAME + + # echo "pandoc -o $HTML_FILENAME $FILENAME" + # pandoc -o "\"$HTML_FILENAME\"" "\"$FILENAME\"" +done + +pandoc -o Html/accessoires/eponges.html Pages/accessoires/eponges.md @@ -15,70 +15,74 @@ </head> <body> - <a href="#"> - <img src="Images/logo2.png" alt="icône" /> - </a> + <header> + <a href="#"> + <img src="Images/logo2.png" alt="icône" /> + </a> - <nav> - <ul> - <li> - <a href="#/teint">Teint</a> - <ul> - <li><a href="#/teint/phase preparatoire">Phase préparatoire</a></li> - <li><a href="#/teint/Primer et base">Primer et base</a></li> - <li><a href="#/teint/BB Cream vs CC Cream">BB Cream vs CC Cream</a></li> - <li><a href="#/teint/Fond de teint">Fond de teint</a></li> - <li><a href="#/teint/Anti cernes">Anti-cernes</a></li> - <li><a href="#/teint/Poudre libre">Poudre libre</a></li> - <li><a href="#/teint/Poudre bronzante">Poudre bronzante</a></li> - <li><a href="#/teint/Blush">Blush</a></li> - <li><a href="#/teint/Contouring">Contouring</a></li> - </ul> - </li> - <li> - <a href="#/yeux">Yeux</a> - <ul> - <li><a href="#/yeux/Base">Base</a></li> - <li><a href="#/yeux/Crayon">Crayon</a></li> - <li><a href="#/yeux/Fard a paupieres">Fard à paupières</a></li> - <li><a href="#/yeux/Eyeliner">Eye-liner</a></li> - <li><a href="#/yeux/Mascara">Mascara</a></li> - <li><a href="#/yeux/Faux cils">Faux cils</a></li> - <li><a href="#/yeux/special yeux sensibles">Spécial "yeux sensibles"</a></li> - </ul> - </li> - <li> - <a href="#/levres">Lèvres</a> - <ul> - <li><a href="#/levres/gloss">Gloss</a></li> - <li><a href="#/levres/rouge a levres">Rouge à lèvres</a></li> - </ul> - </li> - <li> - <a href="#/accessoires">Accessoires</a> - <ul> - <li><a href="#/accessoires/eponges">Eponges</a></li> - <li><a href="#/accessoires/pinceaux">Pinceaux</a></li> - </ul> - </li> - <li> - <a href="#">Démaquillant</a> - <ul> - <li><a href="#/demaquillant/visage">Visage</a></li> - <li><a href="#/demaquillant/yeux">Yeux</a></li> - </ul> - </li> - <li> - <a href="#/promos">Promos</a> - </li> - </ul> - </nav> + <nav> + <ul> + <li> + <a href="#/teint">Teint</a> + <ul> + <li><a href="#/teint/phase preparatoire">Phase préparatoire</a></li> + <li><a href="#/teint/Primer et base">Primer et base</a></li> + <li><a href="#/teint/BB Cream vs CC Cream">BB Cream vs CC Cream</a></li> + <li><a href="#/teint/Fond de teint">Fond de teint</a></li> + <li><a href="#/teint/Anti cernes">Anti-cernes</a></li> + <li><a href="#/teint/Poudre libre">Poudre libre</a></li> + <li><a href="#/teint/Poudre bronzante">Poudre bronzante</a></li> + <li><a href="#/teint/Blush">Blush</a></li> + <li><a href="#/teint/Contouring">Contouring</a></li> + </ul> + </li> + <li> + <a href="#/yeux">Yeux</a> + <ul> + <li><a href="#/yeux/Base">Base</a></li> + <li><a href="#/yeux/Crayon">Crayon</a></li> + <li><a href="#/yeux/Fard a paupieres">Fard à paupières</a></li> + <li><a href="#/yeux/Eyeliner">Eye-liner</a></li> + <li><a href="#/yeux/Mascara">Mascara</a></li> + <li><a href="#/yeux/Faux cils">Faux cils</a></li> + <li><a href="#/yeux/special yeux sensibles">Spécial "yeux sensibles"</a></li> + </ul> + </li> + <li> + <a href="#/levres">Lèvres</a> + <ul> + <li><a href="#/levres/gloss">Gloss</a></li> + <li><a href="#/levres/rouge a levres">Rouge à lèvres</a></li> + </ul> + </li> + <li> + <a href="#/accessoires">Accessoires</a> + <ul> + <li><a href="#/accessoires/eponges">Eponges</a></li> + <li><a href="#/accessoires/pinceaux">Pinceaux</a></li> + </ul> + </li> + <li> + <a href="#">Démaquillant</a> + <ul> + <li><a href="#/demaquillant/visage">Visage</a></li> + <li><a href="#/demaquillant/yeux">Yeux</a></li> + </ul> + </li> + <li> + <a href="#/promos">Promos</a> + </li> + </ul> + </nav> + </header> <div id="content"></div> - <div class="contact"> - Contact : Auriane - </div> + <footer> + <div class="contact"> + Contact : Auriane + </div> + </footer> </body> </html> diff --git a/package.json b/package.json new file mode 100644 index 0000000..656665a --- /dev/null +++ b/package.json @@ -0,0 +1,13 @@ +{ + "name": "makeup", + + "dependencies": { + "pandoc-bin": "0.1.2" + }, + + "scripts": { + "build": "./gen.sh" + }, + + "license": "GPL-3" +} |