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

[apisix-website] branch fix-replaceMDElements created (now ca8fb9a)

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

juzhiyuan pushed a change to branch fix-replaceMDElements
in repository https://gitbox.apache.org/repos/asf/apisix-website.git.


      at ca8fb9a  fix: extract docs from target branch

This branch includes the following new commits:

     new ca8fb9a  fix: extract docs from target branch

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[apisix-website] 01/01: fix: extract docs from target branch

Posted by ju...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit ca8fb9abf09d4cd38c5a4c8c219cbacea4ff39c1
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Wed Nov 3 10:57:15 2021 +0800

    fix: extract docs from target branch
---
 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) => {