This is an automated email from the ASF dual-hosted git repository.

JingsongLi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 6ea273d5b feat: update doc build to Docusaurus
6ea273d5b is described below

commit 6ea273d5b7a0c1d9cdfd3344d5205378e996fef4
Author: JingsongLi <[email protected]>
AuthorDate: Thu May 21 20:26:53 2026 +0800

    feat: update doc build to Docusaurus
---
 .github/workflows/build.yml | 18 +++++++++++++++---
 1 file changed, 15 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index c291d4677..71e80e2bf 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -48,6 +48,9 @@ jobs:
         with:
           node-version: 20.x
 
+      - name: Enable yarn
+        run: corepack enable yarn
+
       - name: Copy out old docs directory
         run: |
           git fetch origin asf-site:asf-site
@@ -105,9 +108,18 @@ jobs:
             then
               git checkout release-"$version"
             fi
-            . ./docs.sh
-            # copy document to target directory
-            cp -r docs/target/* "$current_dir"/docs/"$version"
+            # master or version >= 1.5 uses Docusaurus, otherwise Hugo
+            if [ "$version" == "master" ] || [ "$(echo "$version" | awk -F. 
'{print ($1 * 100 + $2)}')" -ge 105 ]; then
+              cd docs
+              sed -i "s|baseUrl: '/docs/master/'|baseUrl: '/docs/$version/'|g" 
docusaurus.config.js
+              yarn install --frozen-lockfile
+              yarn build
+              cp -r build/* "$current_dir"/docs/"$version"
+              cd /tmp/paimon
+            else
+              . ./docs.sh
+              cp -r docs/target/* "$current_dir"/docs/"$version"
+            fi
             # clean up
             git reset --hard HEAD
             cd "$current_dir"

Reply via email to