diff --git a/Dockerfile b/Dockerfile index 1bb8313998d22952fd05bd8492b8dcc5082e9b71..dc67f7946e56f92cb9d3fd330f161d02556d973c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -136,6 +136,17 @@ RUN cd /src/ && \ mkdir -p /src/website/content/en/docs/6.0.0-lite/ && \ cp -rf /src/6.0.0/docs/content/docs-lite/en/* /src/website/content/en/docs/6.0.0-lite/ && \ + git clone -b 7.0.0-RC1 https://gitee.com/opengauss/docs --depth=1 7.0.0-RC1/docs && \ + mkdir -p /src/website/content/zh/docs/7.0.0-RC1 && \ + cp -rf /src/7.0.0-RC1/docs/content/zh/* /src/website/content/zh/docs/7.0.0-RC1 && \ + mkdir -p /src/website/content/en/docs/7.0.0-RC1 && \ + cp -rf /src/7.0.0-RC1/docs/content/en/* /src/website/content/en/docs/7.0.0-RC1 && \ + + mkdir -p /src/website/content/zh/docs/7.0.0-RC1-lite/ && \ + cp -rf /src/7.0.0-RC1/docs/content/docs-lite/zh/* /src/website/content/zh/docs/7.0.0-RC1-lite/ && \ + mkdir -p /src/website/content/en/docs/7.0.0-RC1-lite/ && \ + cp -rf /src/7.0.0-RC1/docs/content/docs-lite/en/* /src/website/content/en/docs/7.0.0-RC1-lite/ && \ + cd /src/website && hugo -b / --minify && \ cp -rf /src/website/public/* /usr/share/nginx/html/ && \ chmod -R 755 /usr/share/nginx/html && \ diff --git a/content/zh/docmap/_index.md b/content/zh/docmap/_index.md index 8f4dd06f8c13b6da791eb3575938019f11c7a1fa..62c11c88fce07c47d8f52a8e85ab7a74eb861052 100644 --- a/content/zh/docmap/_index.md +++ b/content/zh/docmap/_index.md @@ -5,81 +5,81 @@ title = "文档地图" title = "了解" [[module.list]] title= "关于openGauss" - download = "/zh/docs/6.0.0/docs/TechnicalWhitePaper/%E4%BA%A7%E5%93%81%E5%AE%9A%E4%BD%8D.html" + download = "/zh/docs/7.0.0-RC1/docs/TechnicalWhitePaper/%E4%BA%A7%E5%93%81%E5%AE%9A%E4%BD%8D.html" [[module.list]] title= "特性描述" - download = "/zh/docs/6.0.0/docs/AboutopenGauss/CharacteristicDescription.html" + download = "/zh/docs/7.0.0-RC1/docs/AboutopenGauss/CharacteristicDescription.html" [[module.list]] title= "版本介绍" - download = "/zh/docs/6.0.0/docs/ReleaseNotes/%E7%89%88%E6%9C%AC%E4%BB%8B%E7%BB%8D.html" + download = "/zh/docs/7.0.0-RC1/docs/ReleaseNotes/%E7%89%88%E6%9C%AC%E4%BB%8B%E7%BB%8D.html" [[module]] title = "部署" [[module.list]] title= "极简版服务器安装" - download = "/zh/docs/6.0.0/docs/InstallationGuide/%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%89%E8%A3%85.html" + download = "/zh/docs/7.0.0-RC1/docs/InstallationGuide/%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%89%E8%A3%85.html" [[module.list]] title= "极简版容器安装" - download = "/zh/docs/6.0.0/docs/InstallationGuide/%E5%AE%B9%E5%99%A8%E5%AE%89%E8%A3%85.html" + download = "/zh/docs/7.0.0-RC1/docs/InstallationGuide/%E5%AE%B9%E5%99%A8%E5%AE%89%E8%A3%85.html" [[module.list]] title= "企业版OM安装" - download = "/zh/docs/6.0.0/docs/InstallationGuide/%E5%AE%89%E8%A3%85openGauss.html" + download = "/zh/docs/7.0.0-RC1/docs/InstallationGuide/%E5%AE%89%E8%A3%85openGauss.html" [[module]] title = "开发" [[module.list]] title= "基于JDBC开发" - download = "/zh/docs/6.0.0/docs/DeveloperGuide/%E5%9F%BA%E4%BA%8EJDBC%E5%BC%80%E5%8F%91.html" + download = "/zh/docs/7.0.0-RC1/docs/DeveloperGuide/%E5%9F%BA%E4%BA%8EJDBC%E5%BC%80%E5%8F%91.html" [[module.list]] title= "基于ODBC开发" - download = "/zh/docs/6.0.0/docs/DeveloperGuide/%E5%9F%BA%E4%BA%8EODBC%E5%BC%80%E5%8F%91.html" + download = "/zh/docs/7.0.0-RC1/docs/DeveloperGuide/%E5%9F%BA%E4%BA%8EODBC%E5%BC%80%E5%8F%91.html" [[module.list]] title= "基于Psycopg开发" - download = "/zh/docs/6.0.0/docs/DeveloperGuide/%E5%9F%BA%E4%BA%8EPsycopg%E5%BC%80%E5%8F%91.html" + download = "/zh/docs/7.0.0-RC1/docs/DeveloperGuide/%E5%9F%BA%E4%BA%8EPsycopg%E5%BC%80%E5%8F%91.html" [[module.list]] title= "基于libpq开发" - download = "/zh/docs/6.0.0/docs/DeveloperGuide/%E5%9F%BA%E4%BA%8Elibpq%E5%BC%80%E5%8F%91.html" + download = "/zh/docs/7.0.0-RC1/docs/DeveloperGuide/%E5%9F%BA%E4%BA%8Elibpq%E5%BC%80%E5%8F%91.html" [[module.list]] title= "数据导入/导出" - download = "/zh/docs/6.0.0/docs/DatabaseOMGuide/%E5%AF%BC%E5%85%A5%E6%95%B0%E6%8D%AE.html" + download = "/zh/docs/7.0.0-RC1/docs/DatabaseOMGuide/%E5%AF%BC%E5%85%A5%E6%95%B0%E6%8D%AE.html" [[module]] title = "运维" [[module.list]] title= "日常运维" - download = "/zh/docs/6.0.0/docs/DatabaseOMGuide/%E5%90%AF%E5%81%9CopenGauss.html" + download = "/zh/docs/7.0.0-RC1/docs/DatabaseOMGuide/%E5%90%AF%E5%81%9CopenGauss.html" [[module.list]] title= "备份与恢复" - download = "/zh/docs/6.0.0/docs/DatabaseOMGuide/%E5%A4%87%E4%BB%BD%E4%B8%8E%E6%81%A2%E5%A4%8D.html" + download = "/zh/docs/7.0.0-RC1/docs/DatabaseOMGuide/%E5%A4%87%E4%BB%BD%E4%B8%8E%E6%81%A2%E5%A4%8D.html" [[module.list]] title= "升级指南" - download = "/zh/docs/6.0.0/docs/DatabaseOMGuide/upgrade.html" + download = "/zh/docs/7.0.0-RC1/docs/DatabaseOMGuide/upgrade.html" [[module.list]] title= "故障诊断指南" - download = "/zh/docs/6.0.0/docs/DatabaseOMGuide/%E5%B8%B8%E8%A7%81%E6%95%85%E9%9A%9C%E5%AE%9A%E4%BD%8D%E6%89%8B%E6%AE%B5.html" + download = "/zh/docs/7.0.0-RC1/docs/DatabaseOMGuide/%E5%B8%B8%E8%A7%81%E6%95%85%E9%9A%9C%E5%AE%9A%E4%BD%8D%E6%89%8B%E6%AE%B5.html" [[module.list]] title= "openGauss命令集" - download = "/zh/docs/6.0.0/docs/ToolandCommandReference/%E5%B7%A5%E5%85%B7%E4%B8%80%E8%A7%88%E8%A1%A8.html" + download = "/zh/docs/7.0.0-RC1/docs/ToolandCommandReference/%E5%B7%A5%E5%85%B7%E4%B8%80%E8%A7%88%E8%A1%A8.html" [[module]] title = "调优" [[module.list]] title= "系统调优指南" - download = "/zh/docs/6.0.0/docs/PerformanceTuningGuide/%E7%B3%BB%E7%BB%9F%E8%B0%83%E4%BC%98%E6%8C%87%E5%8D%97.html" + download = "/zh/docs/7.0.0-RC1/docs/PerformanceTuningGuide/%E7%B3%BB%E7%BB%9F%E8%B0%83%E4%BC%98%E6%8C%87%E5%8D%97.html" [[module.list]] title= "SQL调优指南" - download = "/zh/docs/6.0.0/docs/PerformanceTuningGuide/SQL%E8%B0%83%E4%BC%98%E6%8C%87%E5%8D%97.html" + download = "/zh/docs/7.0.0-RC1/docs/PerformanceTuningGuide/SQL%E8%B0%83%E4%BC%98%E6%8C%87%E5%8D%97.html" [[module.list]] title= "TPCC性能调优指南" - download = "/zh/docs/6.0.0/docs/PerformanceTuningGuide/TPCC%E6%80%A7%E8%83%BD%E8%B0%83%E4%BC%98%E6%B5%8B%E8%AF%95%E6%8C%87%E5%AF%BC.html" + download = "/zh/docs/7.0.0-RC1/docs/PerformanceTuningGuide/TPCC%E6%80%A7%E8%83%BD%E8%B0%83%E4%BC%98%E6%B5%8B%E8%AF%95%E6%8C%87%E5%AF%BC.html" [[module.list]] title= "WDR解读指南" - download = "/zh/docs/6.0.0/docs/SQLReference/WDR-Snapshot-Schema.html" + download = "/zh/docs/7.0.0-RC1/docs/SQLReference/WDR-Snapshot-Schema.html" [[module]] title = "工具" [[module.list]] title= "统一数据库管理工具(CM)" - download = "/zh/docs/6.0.0/docs/ToolandCommandReference/%E9%9B%86%E7%BE%A4%E7%AE%A1%E7%90%86.html" + download = "/zh/docs/7.0.0-RC1/docs/ToolandCommandReference/%E9%9B%86%E7%BE%A4%E7%AE%A1%E7%90%86.html" [[module.list]] title= "DataKit" - download = "/zh/docs/6.0.0/docs/ToolandCommandReference/DataKit.html" + download = "/zh/docs/7.0.0-RC1/docs/ToolandCommandReference/DataKit.html" [[module.list]] title= "MySQL迁移工具" - download = "/zh/docs/6.0.0/docs/DataMigrationGuide/%E8%BF%81%E7%A7%BBMySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E8%87%B3openGauss.html" + download = "/zh/docs/7.0.0-RC1/docs/DataMigrationGuide/%E8%BF%81%E7%A7%BBMySQL%E6%95%B0%E6%8D%AE%E5%BA%93%E8%87%B3openGauss.html" +++ diff --git a/static/js/version-data.js b/static/js/version-data.js index a59de572f7c40f868f2d62375409e7d8e577bc60..3e8fa3f68151f57ef240681ed010608305c31be8 100644 --- a/static/js/version-data.js +++ b/static/js/version-data.js @@ -6,6 +6,12 @@ const versionObjZh = { downLink: "", state: "DEV", }, + "7.0.0-RC1": { + homePath: "/docs/GettingStarted/GettingStarted.html", + homeLitePath: "/docs/GettingStarted/GettingStarted.html", + downLink: "", + state: "Preview", + }, "6.0.0": { homePath: "/docs/GettingStarted/GettingStarted.html", homeLitePath: "/docs/GettingStarted/GettingStarted.html", @@ -101,6 +107,12 @@ const versionObjEn = { downLink: "", state: "DEV", }, + "7.0.0-RC1": { + homePath: "/docs/GettingStarted/GettingStarted.html", + homeLitePath: "/docs/GettingStarted/GettingStarted.html", + downLink: "", + state: "Preview", + }, "6.0.0": { homePath: "/docs/GettingStarted/GettingStarted.html", homeLitePath: "/docs/GettingStarted/GettingStarted.html", diff --git a/static/js/version.js b/static/js/version.js index 82783ea250fd9c1478ee456b1059cdd8e038357b..76fc314ac01ad09b69364473279b4aef6983fe38 100644 --- a/static/js/version.js +++ b/static/js/version.js @@ -8,8 +8,9 @@ function jumpDocsHome(lang, version) { const versionObj = lang === "zh" ? versionObjZh : versionObjEn; // 修复版本号中划线 const path = - versionObj[version === "6.0.0-RC1" ? version : version.split("-")[0]] - .homePath; + versionObj[ + version.includes("-lite") ? version.replace("-lite", "") : version + ].homePath; const link = version !== "" ? "/" + lang + "/docs/" + version + path : "/" + lang + "/";