You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by bz...@apache.org on 2021/11/03 03:25:00 UTC

[apisix-website] branch master updated: fix: extract docs from target branch (#697)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new d739649  fix: extract docs from target branch (#697)
d739649 is described below

commit d739649330f1f15a668b7cdf0bc52258332f42ba
Author: 琚致远 <ju...@apache.org>
AuthorDate: Wed Nov 3 11:24:53 2021 +0800

    fix: extract docs from target branch (#697)
---
 scripts/sync-docs.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/scripts/sync-docs.js b/scripts/sync-docs.js
index 2943f90..45458e9 100644
--- a/scripts/sync-docs.js
+++ b/scripts/sync-docs.js
@@ -80,7 +80,8 @@ const tasks = new listr([
                     {
                       title: "Replace elements inside MD files",
                       task: () => {
-                        replaceMDElements(project.name, [`${tempPath}/${project.name}/docs`], project.branch);
+                        const branchName = `release/${version}`;
+                        replaceMDElements(project.name, [`${tempPath}/${project.name}/docs`], branchName);
                         copyAllDocs(project);
                       }
                     },
@@ -117,6 +118,7 @@ const tasks = new listr([
     }
   },
   {
+    // NOTE: Extract docs from the master branch
     title: "Extract next version documents",
     task: () => {
       const nextVersionTasks = projectPaths.map((project) => {