-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathupdate_gh-pages.sh
executable file
·37 lines (28 loc) · 1.34 KB
/
update_gh-pages.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# Usage: cd $LIBIGL; scripts/update_gh-pages.sh
set -o xtrace
HEADER="title: libigl
author: Alec Jacobson and Daniele Panozzo and others
css: tutorial/style.css
html header: <script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<link rel='stylesheet' href='http://yandex.st/highlightjs/7.3/styles/default.min.css'>
<script src='http://yandex.st/highlightjs/7.3/highlight.min.js'></script>
<script>hljs.initHighlightingOnLoad();</script>
"
echo "$HEADER" \
| cat - README.md | multimarkdown -o index.html
echo "$HEADER" \
| cat - style-guidelines.md | multimarkdown -o style-guidelines.html
HEADER="title: libigl
author: Alec Jacobson and Daniele Panozzo and others
css: ../tutorial/style.css
html header: <script type='text/javascript' src='http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML'></script>
<link rel='stylesheet' href='http://yandex.st/highlightjs/7.3/styles/default.min.css'>
<script src='http://yandex.st/highlightjs/7.3/highlight.min.js'></script>
<script>hljs.initHighlightingOnLoad();</script>
"
echo "$HEADER" \
| cat - optional/README.md | multimarkdown -o optional/index.html
multimarkdown tutorial/tutorial.md -o tutorial/tutorial.html
echo "$HEADER" \
| cat - coding-guidelines.md | multimarkdown -o coding-guidelines.html