This is an automated email from the ASF dual-hosted git repository.
jiafengzheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris-website.git
The following commit(s) were added to refs/heads/master by this push:
new 0eea7c1b60b update sitemap path (#85)
0eea7c1b60b is described below
commit 0eea7c1b60b19c717874af281277028ac58dd687
Author: wangyongfeng <[email protected]>
AuthorDate: Wed Sep 7 14:30:36 2022 +0800
update sitemap path (#85)
Co-authored-by: wangyf0555 <[email protected]>
---
docusaurus.config.js | 6 ++++--
src/pages/index.tsx | 4 ++--
src/pages/{siteMap => learning}/index.tsx | 2 +-
src/pages/{siteMap => learning}/siteMap.scss | 0
src/theme/DocSidebar/Desktop/index.tsx | 2 +-
5 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index 34b90dcf174..e7a92ca94b9 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -183,9 +183,11 @@ const config = {
items: [
{ to: '/', label: 'Home', position: 'left', exact: true },
{
+ type: 'doc',
position: 'left',
label: 'Docs',
- to: '/sitemap',
+ docId: 'summary/basic-summary',
+ to: '/basic-summary',
},
{ to: '/blog', label: 'Blog', position: 'left' },
{
@@ -229,7 +231,7 @@ const config = {
},
{
label: 'Docs',
- href: '/sitemap',
+ href: '/learning',
},
],
},
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 2b45ceee28f..d997caa680f 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -21,7 +21,7 @@ export default function Home(): JSX.Element {
},
{
label: <Translate id="homepage.banner.button1">Get
Started</Translate>,
- link: '/siteMap',
+ link: '/learning',
type: 'ghost',
},
{
@@ -243,7 +243,7 @@ export default function Home(): JSX.Element {
<Link className="start-btn download-btn"
to="/download">
<Translate
id="homepage.start.downloadButton">Download</Translate>
</Link>
- <Link className="start-btn docs-btn" to="/sitemap">
+ <Link className="start-btn docs-btn"
to="/learning">
<Translate id="homepage.start.docsButton">Go
to docs</Translate>
</Link>
</div>
diff --git a/src/pages/siteMap/index.tsx b/src/pages/learning/index.tsx
similarity index 99%
rename from src/pages/siteMap/index.tsx
rename to src/pages/learning/index.tsx
index f42e732e644..b7161022e50 100644
--- a/src/pages/siteMap/index.tsx
+++ b/src/pages/learning/index.tsx
@@ -313,7 +313,7 @@ const sitemapList = [
],
},
];
-export default function SiteMap(): JSX.Element {
+export default function Learning(): JSX.Element {
const { siteConfig } = useDocusaurusContext();
return (
<Layout
diff --git a/src/pages/siteMap/siteMap.scss b/src/pages/learning/siteMap.scss
similarity index 100%
rename from src/pages/siteMap/siteMap.scss
rename to src/pages/learning/siteMap.scss
diff --git a/src/theme/DocSidebar/Desktop/index.tsx
b/src/theme/DocSidebar/Desktop/index.tsx
index 7538ecb17d8..37045a48d26 100644
--- a/src/theme/DocSidebar/Desktop/index.tsx
+++ b/src/theme/DocSidebar/Desktop/index.tsx
@@ -21,7 +21,7 @@ function DocSidebarDesktop({ path, sidebar, onCollapse,
isHidden }) {
<div className="doc-search">
<SearchBar />
</div>
- <Link to="/sitemap" className="learning-path">
+ <Link to="/learning" className="learning-path">
<Translate id="sitemap.page.title" description="">
Learning Path
</Translate>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]