FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
php-webdriver/scripts/update-built-docs.sh at main · php-webdriver/php-webdriver · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
php-webdriver
/
php-webdriver
Public
Notifications
You must be signed in to change notification settings
Fork
842
Star
5.2k
Code
Issues
21
Pull requests
9
Discussions
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
php-webdriver
/
scripts
/
update-built-docs.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
50 lines (40 loc) · 1.1 KB
Breadcrumbs
php-webdriver
/
scripts
/
update-built-docs.sh
Copy path
File metadata and controls
executable file
·
50 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
#!
/bin/sh
set
-e
cleanup
() {
git ls-files ./
|
xargs -r -n 1 rm
rm -rfd ./
*
}
copyToTemp
() {
TEMP_DIR=
"
$(
mktemp -d --suffix=_doctum-build-php-webdriver
)
"
cp -rp build/dist/
*
"
${TEMP_DIR}
"
cp ./scripts/docs-template.html
"
${TEMP_DIR}
/index.html
"
}
emptyAndRemoveTemp
() {
mv
"
${TEMP_DIR}
"
/
*
./
#
Create symlink for main to latest
ln -s -r ./main ./latest
#
Create symlink for main to master
ln -s -r ./main ./master
#
Create symlink for main to community
ln -s -r ./main ./community
rm -rf
"
${TEMP_DIR}
"
}
commitAndPushChanges
() {
#
Push the changes, only if there is changes
git add -A
git diff-index --quiet HEAD
||
git commit -m
"
Api documentations update (
$(
date --rfc-3339=seconds --utc
)
)
"
-m
"
#apidocs
"
&&
if
[
-z
"
${SKIP_PUSH}
"
]
;
then
git push
;
fi
}
if
[
!
-d
./build/dist ]
;
then
echo
'
Missing built docs
'
exit
1
fi
#
Remove cache dir, do not upload it
rm -rf ./build/cache
copyToTemp
#
Remove build dir, do not upload it
rm -rf ./build
git checkout gh-pages
cleanup
emptyAndRemoveTemp
commitAndPushChanges
git checkout -
>
/dev/null
Back
|
FazBrowse Home
|
New Git URL