Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
70c1e1d2
Unverified
Commit
70c1e1d2
authored
Jun 24, 2020
by
Sylvain Gugger
Committed by
GitHub
Jun 24, 2020
Browse files
Use master _static (#5253)
* Use _static from master everywhere * Copy to existing too
parent
4965aee0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
22 deletions
+14
-22
.circleci/deploy.sh
.circleci/deploy.sh
+14
-22
No files found.
.circleci/deploy.sh
View file @
70c1e1d2
...
...
@@ -5,38 +5,31 @@ function deploy_doc(){
git checkout
$1
if
[
!
-z
"
$2
"
]
then
if
[
"
$2
"
!=
"master"
]
&&
ssh
-oStrictHostKeyChecking
=
no
$doc
"[ -d
$dir
/
$2
]"
;
then
if
[
"
$2
"
!=
"master"
]
;
then
echo
"Pushing master"
make clean
&&
make html
&&
scp
-r
-oStrictHostKeyChecking
=
no _build/html/
*
$doc
:
$dir
/
$2
/
cp
-r
_build/html/_static
.
elif
ssh
-oStrictHostKeyChecking
=
no
$doc
"[ -d
$dir
/
$2
]"
;
then
echo
"Directory"
$2
"already exists"
scp
-r
-oStrictHostKeyChecking
=
no _static/
*
$doc
:
$dir
/
$2
/_static/
else
echo
"Pushing version"
$2
make clean
&&
make html
if
[
"
$2
"
==
"master"
]
;
then
scp
-r
-oStrictHostKeyChecking
=
no _build/html/
*
$doc
:
$dir
/
$2
/
else
rm
-rf
_build/html/_static
cp
-r
_static _build/html
scp
-r
-oStrictHostKeyChecking
=
no _build/html
$doc
:
$dir
/
$2
fi
fi
else
echo
"Pushing stable"
make clean
&&
make html
&&
scp
-r
-oStrictHostKeyChecking
=
no _build/html/
*
$doc
:
$dir
fi
}
function
debug_custom
()
{
echo
"Head of source/_static/js/custom.js"
head
-10
source
/_static/js/custom.js
if
[
-d
"_build/html/_static"
]
;
then
echo
"Head of _build/html/_static/js/custom.js"
head
-10
_build/html/_static/js/custom.js
else
echo
"No build"
make clean
&&
make html
rm
-rf
_build/html/_static
cp
-r
_static _build/html
scp
-r
-oStrictHostKeyChecking
=
no _build/html/
*
$doc
:
$dir
fi
}
# You can find the commit for each tag on https://github.com/huggingface/transformers/tags
debug_custom
deploy_doc
"master"
master
debug_custom
deploy_doc
"b33a385"
v1.0.0
deploy_doc
"fe02e45"
v1.1.0
deploy_doc
"89fd345"
v1.2.0
...
...
@@ -54,4 +47,3 @@ deploy_doc "e7cfc1a" v2.9.0
deploy_doc
"7cb203f"
v2.9.1
deploy_doc
"10d7239"
v2.10.0
deploy_doc
"b42586e"
#v2.11.0 Latest stable release
\ No newline at end of file
debug_custom
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment