-
Notifications
You must be signed in to change notification settings - Fork 3
/
make-doc.bash
executable file
·59 lines (54 loc) · 1.83 KB
/
make-doc.bash
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/env bash
set -e
mkdir -p doc
{
printf "<!DOCTYPE html>\n"
printf "<html lang=\"en\">\n"
printf "<head>\n"
printf "<meta charset=\"utf-8\">\n"
printf "<meta name=\"author\" content=\"Peter Aronoff\">\n"
printf "<title>split documentation</title>\n"
printf "<link rel=\"stylesheet\" href=\"normalize.css\" "
printf "media=\"screen,projection\">\n"
printf "<link rel=\"stylesheet\" href=\"screen.css\" "
printf "media=\"screen,projection\">\n"
printf "</head>\n"
printf "<body>\n"
markdown README.md | sed -e 's/\/CHANGES.md/changes.html/' -e 's/\/LICENSE.md/license.html/' -e 's/LICENSE.md/the license/'
printf "</body>\n"
printf "</html>\n"
} > doc/index.html
{
printf "<!DOCTYPE html>\n"
printf "<html lang=\"en\">\n"
printf "<head>\n"
printf "<meta charset=\"utf-8\">\n"
printf "<meta name=\"author\" content=\"Peter Aronoff\">\n"
printf "<title>split version history</title>\n"
printf "<link rel=\"stylesheet\" href=\"normalize.css\" "
printf "media=\"screen,projection\">\n"
printf "<link rel=\"stylesheet\" href=\"screen.css\" "
printf "media=\"screen,projection\">\n"
printf "</head>\n"
printf "<body>\n"
markdown CHANGES.md | sed -e 's/\/README.md/index.html/' -e 's/\/LICENSE.md/license.html/' -e 's/LICENSE.md/the license/'
printf "</body>\n"
printf "</html>\n"
} > doc/changes.html
{
printf "<!DOCTYPE html>\n"
printf "<html lang=\"en\">\n"
printf "<head>\n"
printf "<meta charset=\"utf-8\">\n"
printf "<meta name=\"author\" content=\"Peter Aronoff\">\n"
printf "<title>split license</title>\n"
printf "<link rel=\"stylesheet\" href=\"normalize.css\" "
printf "media=\"screen,projection\">\n"
printf "<link rel=\"stylesheet\" href=\"screen.css\" "
printf "media=\"screen,projection\">\n"
printf "</head>\n"
printf "<body>\n"
markdown LICENSE.md
printf "</body>\n"
printf "</html>\n"
} > doc/license.html