2021-01-04 12:02:02 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd ./generated/target/apidocs
|
|
|
|
find . -name '*.html' -exec sed -i -r 's/<\/title>/<\/title>\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"><style>\n\t#memberSummary_tabpanel{overflow-x: auto;}\n\tli.blockList{overflow-x: auto;}\n\ttd.colLast div{max-width:30vw;}\n\t#search{width: 400px;max-width: 65vw;}\n\t.title,.subTitle,pre,.inheritance,h1,h2,h3,h4,h5,.memberSummary,.memberSignature,.typeSummary,.blockList,.contentContainer{white-space:normal;word-break:break-word;}\n\tul{padding-left:10px}\n<\/style>/' {} \;
|
2021-01-04 14:36:59 +01:00
|
|
|
git init
|
|
|
|
git checkout -b "${IMPLEMENTATION_NAME}"
|
2021-01-04 14:57:54 +01:00
|
|
|
git remote add origin "ssh://git@ssh.git.ignuranza.net/tdlight-team/tdlight-docs"
|
2021-01-04 13:01:34 +01:00
|
|
|
git config user.email "andrea@warp.ovh"
|
|
|
|
git config user.name "Andrea Cavalli"
|
2021-01-05 18:03:11 +01:00
|
|
|
git fetch --all
|
|
|
|
git reset --soft "origin/${IMPLEMENTATION_NAME}"
|
2021-01-04 12:02:02 +01:00
|
|
|
git add -A
|
2021-01-04 13:01:34 +01:00
|
|
|
git commit -m "Update javadocs"
|
2021-01-05 19:16:47 +01:00
|
|
|
git push --set-upstream origin "${IMPLEMENTATION_NAME}"
|
2021-01-04 12:02:02 +01:00
|
|
|
|
|
|
|
echo "Done."
|
|
|
|
exit 0
|