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 <[email protected]> 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) => {
