This is an automated email from the ASF dual-hosted git repository.
luzhijing 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 35f0517125f (feat) nav docs go to 2.0 by default (#329)
35f0517125f is described below
commit 35f0517125f46f87326772de7e990d1eda8d7ea7
Author: Jeffrey <[email protected]>
AuthorDate: Sat Oct 21 00:43:47 2023 +0800
(feat) nav docs go to 2.0 by default (#329)
* (feat) nav docs go to 2.0 by default
* (feat) remove learning path
---
docusaurus.config.js | 13 ++++---------
src/theme/DocSidebar/Desktop/index.tsx | 6 +++---
2 files changed, 7 insertions(+), 12 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index a3c37def60a..04bc35f0b71 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -212,26 +212,21 @@ const config = {
type: 'dropdown',
position: 'left',
label: 'Docs',
- to: '/docs/dev/get-starting/what-is-apache-doris',
+ to: '/docs/get-starting',
items: [
- {
- label: 'Learning Path',
- to: '/learning',
- align: 'left',
- },
{
label: 'Getting Started',
- to: '/docs/dev/get-starting/quick-start',
+ to: '/docs/get-starting',
align: 'left',
},
{
label: 'Install and Deploy',
- to: '/docs/dev/install/standard-deployment',
+ to: '/docs/install/standard-deployment',
align: 'left',
},
{
label: 'FAQ',
- to: '/docs/dev/faq/install-faq',
+ to: '/docs/faq/install-faq',
align: 'left',
},
// {
diff --git a/src/theme/DocSidebar/Desktop/index.tsx
b/src/theme/DocSidebar/Desktop/index.tsx
index 42e78ae72e4..92bce9f3309 100644
--- a/src/theme/DocSidebar/Desktop/index.tsx
+++ b/src/theme/DocSidebar/Desktop/index.tsx
@@ -15,18 +15,18 @@ function DocSidebarDesktop({ path, sidebar, onCollapse,
isHidden }) {
sidebar: { hideable },
},
} = useThemeConfig();
- const hasLearningPath = path.includes('/docs')
+ const hasLearningPath = path.includes('/docs');
return (
<div className={clsx('sidebar', hideOnScroll &&
'sidebar-with-hideable-navbar', isHidden && 'sidebar-hidden')}>
{hideOnScroll && <Logo tabIndex={-1} className="sidebar-logo" />}
<div className="doc-search">
<SearchBar />
</div>
- {hasLearningPath && <Link to="/learning" className="learning-path">
+ {/* {hasLearningPath && <Link to="/learning"
className="learning-path">
<Translate id="sitemap.page.title" description="">
Learning Path
</Translate>
- </Link>}
+ </Link>} */}
<Content path={path} sidebar={sidebar} />
{hideable && <CollapseButton onClick={onCollapse} />}
</div>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]