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 f503a79a36a hide learning path in community (#87)
f503a79a36a is described below

commit f503a79a36a0f65736b9e91a55ee9f92faf8d9e6
Author: wangyongfeng <943155...@qq.com>
AuthorDate: Thu Sep 8 17:23:57 2022 +0800

    hide learning path in community (#87)
    
     hide learning path in community
---
 src/theme/DocSidebar/Desktop/index.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/theme/DocSidebar/Desktop/index.tsx 
b/src/theme/DocSidebar/Desktop/index.tsx
index 37045a48d26..42e78ae72e4 100644
--- a/src/theme/DocSidebar/Desktop/index.tsx
+++ b/src/theme/DocSidebar/Desktop/index.tsx
@@ -15,17 +15,18 @@ function DocSidebarDesktop({ path, sidebar, onCollapse, 
isHidden }) {
             sidebar: { hideable },
         },
     } = useThemeConfig();
+    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>
-            <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: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to