Skip to content

Commit

Permalink
Fixes the docs generation for tagged releases (#2878)
Browse files Browse the repository at this point in the history
Signed-off-by: Tao He <linzhu.ht@alibaba-inc.com>
  • Loading branch information
sighingnow committed Jun 13, 2023
1 parent c489c63 commit 387f915
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/docs.yml
Expand Up @@ -7,6 +7,8 @@ on:
- main
- docs
- dev/docs
tags:
- "v*"
pull_request_target:
branches:
- main
Expand Down Expand Up @@ -224,8 +226,8 @@ jobs:
shopt -s extglob
rm google-java-format-1.13.0-all-deps.jar* || true
git config user.email github-actions@github.com
git config user.name github-actions
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
tag=$(git describe --exact-match --tags HEAD 2>/dev/null || true)
Expand Down Expand Up @@ -258,6 +260,6 @@ jobs:
rm -rf ../analytical_engine/java || true
git add -A
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)"
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)"
git push -f origin gh-pages
2 changes: 1 addition & 1 deletion docs/Makefile
Expand Up @@ -41,7 +41,7 @@ clean:
cd ${WORKING_DIR}/../analytical_engine/java && \
mvn -P javadoc javadoc:aggregate -Dmaven.antrun.skip=true -DskipTests -Djavadoc.output.directory=${WORKING_DIR}/$(BUILDDIR)/${TAG}/$@/reference -Djavadoc.output.destDir=gae_java --quiet \

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

doxygen:
Expand Down
8 changes: 5 additions & 3 deletions docs/_static/css/rst-versions.css
Expand Up @@ -16,16 +16,18 @@

.rst-versions-ver {
/* bottom: 128px !important; */
bottom: 100px !important;
height: 6rem !important;
bottom: 6rem !important;
}

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

.rst-versions-lang {
/* height: 128px !important; */
bottom: 1rem !important;;
height: 5rem !important;
bottom: 0 !important;;
padding-bottom: 1rem !important;
}

.rst-versions {
Expand Down

0 comments on commit 387f915

Please sign in to comment.