Skip to content

Commit 387f915

Browse files
authored
Fixes the docs generation for tagged releases (#2878)
Signed-off-by: Tao He <[email protected]>
1 parent c489c63 commit 387f915

File tree

3 files changed

+11
-7
lines changed

3 files changed

+11
-7
lines changed

.github/workflows/docs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
- main
88
- docs
99
- dev/docs
10+
tags:
11+
- "v*"
1012
pull_request_target:
1113
branches:
1214
- main
@@ -224,8 +226,8 @@ jobs:
224226
shopt -s extglob
225227
rm google-java-format-1.13.0-all-deps.jar* || true
226228
227-
git config user.email github-actions@github.com
228-
git config user.name github-actions
229+
git config user.name "github-actions[bot]"
230+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
229231
230232
tag=$(git describe --exact-match --tags HEAD 2>/dev/null || true)
231233
@@ -258,6 +260,6 @@ jobs:
258260
rm -rf ../analytical_engine/java || true
259261
260262
git add -A
261-
git commit --amend --no-edit -m "Generate latest docs on CI, from commit ${{ github.sha }}." --author "github-actions <github-actions@github.com>" -s --date="$(date -R)"
263+
git commit --amend --no-edit -m "Generate latest docs on CI, from commit ${{ github.sha }}." --author "github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>" -s --date="$(date -R)"
262264
git push -f origin gh-pages
263265

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ clean:
4141
cd ${WORKING_DIR}/../analytical_engine/java && \
4242
mvn -P javadoc javadoc:aggregate -Dmaven.antrun.skip=true -DskipTests -Djavadoc.output.directory=${WORKING_DIR}/$(BUILDDIR)/${TAG}/$@/reference -Djavadoc.output.destDir=gae_java --quiet \
4343

44-
@echo "Building Java doc to $(BUILDDIR)/${TAG}/$@/reference/flex"
44+
@echo "Building Flex doc to $(BUILDDIR)/${TAG}/$@/reference/flex"
4545
@doxygen Doxyfile-flex
4646

4747
doxygen:

docs/_static/css/rst-versions.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,18 @@
1616

1717
.rst-versions-ver {
1818
/* bottom: 128px !important; */
19-
bottom: 100px !important;
19+
height: 6rem !important;
20+
bottom: 6rem !important;
2021
}
2122

2223
.rst-versions.rst-versions-ver .rst-current-version {
2324
padding: 10px 0 12px 10px;
2425
}
2526

2627
.rst-versions-lang {
27-
/* height: 128px !important; */
28-
bottom: 1rem !important;;
28+
height: 5rem !important;
29+
bottom: 0 !important;;
30+
padding-bottom: 1rem !important;
2931
}
3032

3133
.rst-versions {

0 commit comments

Comments
 (0)