FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ionic/scripts/docs/deploy.sh at ptr-improvements · Java1024/ionic · GitHub
Java1024
ionic
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ionic
/
scripts
/
docs
/
deploy.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
54 lines (40 loc) · 1.1 KB
Breadcrumbs
ionic
/
scripts
/
docs
/
deploy.sh
Copy path
File metadata and controls
executable file
·
54 lines (40 loc) · 1.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
#!
/bin/bash
ARG_DEFS=(
"
--version-name=(.*)
"
)
echo
"
#####
"
echo
"
##### docs/deploy.sh
"
echo
"
#####
"
function
init
{
cd
..
SITE_PATH=
$(
readJsonProp
"
config.json
"
"
sitePath
"
)
SITE_DIR=
$IONIC_DIR
/
$SITE_PATH
./git/clone.sh --repository=
"
driftyco/ionic-site
"
\
--directory=
"
$SITE_DIR
"
\
--branch=
"
master
"
}
function
run
{
cd
..
VERSION=
$(
readJsonProp
"
package.json
"
"
version
"
)
#
process new docs
gulp docs --doc-version=
"
$VERSION_NAME
"
#
compile sass vars json for ionic-site docs
gulp docs.sass-variables
cp tmp/sass.json
$SITE_DIR
/docs/v2/theming/overriding-ionic-variables/
#
compile API Demos
gulp demos --production=true
#
CD in to the site dir to commit updated docs
cd
$SITE_DIR
CHANGES=
$(
git status --porcelain
)
#
if no changes, don't commit
if
[[
"
$CHANGES
"
==
"
"
]]
;
then
ls
echo
"
-- No changes detected in docs for
$VERSION_NAME
; docs not updated.
"
else
git add -A
git commit -am
"
docs: update for
$VERSION
"
git push origin master
echo
"
-- Updated docs for
$VERSION_NAME
succesfully!
"
fi
}
source
$(
dirname
$0
)
/../utils.sh.inc
Back
|
FazBrowse Home
|
New Git URL