This is an automated email from the ASF dual-hosted git repository. juzhiyuan 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 7d3064d docs: added dashboard (#225) 7d3064d is described below commit 7d3064da0047bb2c838ae877866c1d3e1b3fa6ef Author: 琚致远 <juzhiy...@apache.org> AuthorDate: Tue Mar 2 12:34:39 2021 +0800 docs: added dashboard (#225) --- sync-docs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sync-docs.js b/sync-docs.js index 54396de..1d03356 100644 --- a/sync-docs.js +++ b/sync-docs.js @@ -3,8 +3,8 @@ console.log("Start sync-docs.js"); const childProcess = require("child_process"); const fs = require("fs"); -// NOTE: disable "apisix-dashboard" "apisix-docker" "apisix-helm-chart" currently -const projects = ["apisix-ingress-controller", "apisix"]; +// NOTE: disable "apisix-docker" "apisix-helm-chart" currently +const projects = ["apisix-ingress-controller", "apisix", "apisix-dashboard"]; const projectPaths = projects.map((project) => { return { @@ -77,7 +77,7 @@ const copyDocs = (source, target, projectName, locale) => { console.log(`[${projectName}] write sidebar.json`); const sidebar = { - docs: [...(configLatest.sidebar || {})], + docs: [...(configLatest.sidebar || [])], }; fs.writeFileSync(`${target}/sidebars.json`, JSON.stringify(sidebar, null, 2)); };