Skip to content

Commit 68c130f

Browse files
committed
Update make.sh for gh-pages
1 parent ede96f0 commit 68c130f

27 files changed

+1140
-7
lines changed

Diff for: make.sh

+24-7
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
set -e
44

5-
appdir=$(cd $(dirname $0); pwd)
5+
root=$(cd $(dirname $0); pwd)
66

77
clean() {
8-
rm -rf $appdir/node_modules
9-
rm -rf $appdir/demo/node_modules
8+
rm -rf $root/node_modules
9+
rm -rf $root/demo/node_modules
1010
}
1111

1212
install() {
13-
cd $appdir
13+
cd $root
1414

1515
if [ ! -f "./node_modules/.bin/uglifyjs" ]; then
1616
npm install uglifyjs
@@ -22,7 +22,7 @@ install() {
2222
--source-map angular-async-loader.min.js.map
2323

2424

25-
cd $appdir/demo
25+
cd $root/website/demo
2626

2727
if [ ! -d "./node_modules" ]; then
2828
npm install
@@ -48,11 +48,25 @@ install() {
4848
fi
4949

5050
mkdir -p assets/angular-async-loader/
51-
cp ../angular-async-loader.min.js assets/angular-async-loader/
51+
cp $root/angular-async-loader.min.js assets/angular-async-loader/
52+
}
53+
54+
build_website() {
55+
cd $root
56+
git branch -D gh-pages || true
57+
git checkout --orphan gh-pages
58+
59+
mv ./website /tmp/
60+
git reset --hard
61+
mv /tmp/website/* ./
62+
git add --all
63+
git commit -m "Update website"
64+
65+
git checkout master
5266
}
5367

5468
test() {
55-
cd $appdir
69+
cd $root
5670

5771
if [ ! -f "./node_modules/.bin/browser-sync" ]; then
5872
npm install browser-sync
@@ -68,6 +82,9 @@ case "$1" in
6882
install)
6983
install
7084
;;
85+
website)
86+
build_website
87+
;;
7188
test)
7289
test
7390
;;

Diff for: website/assets/css/github-light.css

+124
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
/*
2+
The MIT License (MIT)
3+
4+
Copyright (c) 2015 GitHub, Inc.
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy
7+
of this software and associated documentation files (the "Software"), to deal
8+
in the Software without restriction, including without limitation the rights
9+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
copies of the Software, and to permit persons to whom the Software is
11+
furnished to do so, subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
SOFTWARE.
23+
24+
*/
25+
26+
.pl-c /* comment */ {
27+
color: #969896;
28+
}
29+
30+
.pl-c1 /* constant, markup.raw, meta.diff.header, meta.module-reference, meta.property-name, support, support.constant, support.variable, variable.other.constant */,
31+
.pl-s .pl-v /* string variable */ {
32+
color: #0086b3;
33+
}
34+
35+
.pl-e /* entity */,
36+
.pl-en /* entity.name */ {
37+
color: #795da3;
38+
}
39+
40+
.pl-s .pl-s1 /* string source */,
41+
.pl-smi /* storage.modifier.import, storage.modifier.package, storage.type.java, variable.other, variable.parameter.function */ {
42+
color: #333;
43+
}
44+
45+
.pl-ent /* entity.name.tag */ {
46+
color: #63a35c;
47+
}
48+
49+
.pl-k /* keyword, storage, storage.type */ {
50+
color: #a71d5d;
51+
}
52+
53+
.pl-pds /* punctuation.definition.string, string.regexp.character-class */,
54+
.pl-s /* string */,
55+
.pl-s .pl-pse .pl-s1 /* string punctuation.section.embedded source */,
56+
.pl-sr /* string.regexp */,
57+
.pl-sr .pl-cce /* string.regexp constant.character.escape */,
58+
.pl-sr .pl-sra /* string.regexp string.regexp.arbitrary-repitition */,
59+
.pl-sr .pl-sre /* string.regexp source.ruby.embedded */ {
60+
color: #183691;
61+
}
62+
63+
.pl-v /* variable */ {
64+
color: #ed6a43;
65+
}
66+
67+
.pl-id /* invalid.deprecated */ {
68+
color: #b52a1d;
69+
}
70+
71+
.pl-ii /* invalid.illegal */ {
72+
background-color: #b52a1d;
73+
color: #f8f8f8;
74+
}
75+
76+
.pl-sr .pl-cce /* string.regexp constant.character.escape */ {
77+
color: #63a35c;
78+
font-weight: bold;
79+
}
80+
81+
.pl-ml /* markup.list */ {
82+
color: #693a17;
83+
}
84+
85+
.pl-mh /* markup.heading */,
86+
.pl-mh .pl-en /* markup.heading entity.name */,
87+
.pl-ms /* meta.separator */ {
88+
color: #1d3e81;
89+
font-weight: bold;
90+
}
91+
92+
.pl-mq /* markup.quote */ {
93+
color: #008080;
94+
}
95+
96+
.pl-mi /* markup.italic */ {
97+
color: #333;
98+
font-style: italic;
99+
}
100+
101+
.pl-mb /* markup.bold */ {
102+
color: #333;
103+
font-weight: bold;
104+
}
105+
106+
.pl-md /* markup.deleted, meta.diff.header.from-file */ {
107+
background-color: #ffecec;
108+
color: #bd2c00;
109+
}
110+
111+
.pl-mi1 /* markup.inserted, meta.diff.header.to-file */ {
112+
background-color: #eaffea;
113+
color: #55a532;
114+
}
115+
116+
.pl-mdr /* meta.diff.range */ {
117+
color: #795da3;
118+
font-weight: bold;
119+
}
120+
121+
.pl-mo /* meta.output */ {
122+
color: #1d3e81;
123+
}
124+

0 commit comments

Comments
 (0)