Publish documentation, update tdlib

This commit is contained in:
Andrea Cavalli 2021-01-04 12:02:02 +01:00
parent ba4526dbc4
commit 74e5ac6166
4 changed files with 26 additions and 6 deletions

View File

@ -98,13 +98,13 @@ jobs:
run: |
echo "REVISION: $REVISION"
source ./scripts/continuous-integration/github-workflows/install-dependencies.sh
./scripts/continuous-integration/github-workflows/install-dependencies.sh
- name: Build
shell: bash
run: |
echo "REVISION: $REVISION"
source ./scripts/continuous-integration/github-workflows/build-tdapi.sh
./scripts/continuous-integration/github-workflows/build-tdapi.sh
- id: getfilename
shell: bash
run: echo "::set-output name=file::$(cd generated/target; ls tdli*-api-*.jar)"
@ -121,7 +121,7 @@ jobs:
run: |
echo "REVISION: $REVISION"
source ./scripts/continuous-integration/github-workflows/deploy-snapshot.sh
./scripts/continuous-integration/github-workflows/deploy-snapshot.sh
env:
MAVEN_USERNAME: ${{ secrets.MCHV_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MCHV_TOKEN }}
@ -131,7 +131,8 @@ jobs:
run: |
echo "REVISION: $REVISION"
source ./scripts/continuous-integration/github-workflows/deploy-release.sh
./scripts/continuous-integration/github-workflows/deploy-release.sh
./scripts/continuous-integration/github-workflows/deploy-javadoc.sh
env:
MAVEN_USERNAME: ${{ secrets.MCHV_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.MCHV_TOKEN }}

@ -1 +1 @@
Subproject commit cf3cc7b1d3879b384508d33d3011e170487677ba
Subproject commit 5686d574f842f74a21897faacb4425471a216cb0

View File

@ -0,0 +1,15 @@
#!/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>/' {} \;
git init "--initial-branch=${IMPLEMENTATION_NAME}"
git remote add origin "https://${GIT_IG_USERNAME}:${GIT_IG_TOKEN}@git.ignuranza.net/tdlight-team/tdlight-docs"
git config user.email \"andrea@warp.ovh\"
git config user.name \"Andrea Cavalli\"
git add -A
git commit -m \"Update javadocs\"
git push --set-upstream origin "${IMPLEMENTATION_NAME}" --force
echo "Done."
exit 0

View File

@ -53,7 +53,11 @@
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.2.0</version>
<configuration>
<source>8</source>
<additionalOptions>-html5</additionalOptions>
<additionalOptions>-public</additionalOptions>
<release>13</release>
<quiet>true</quiet>
<notimestamp>true</notimestamp>
</configuration>
<executions>
<execution>