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 789f2f68769 update sitemap (#84)
789f2f68769 is described below
commit 789f2f68769043eaee1e71899f72c576ed40cc88
Author: wangyongfeng <[email protected]>
AuthorDate: Wed Sep 7 11:35:21 2022 +0800
update sitemap (#84)
update sitemap
---
docusaurus.config.js | 4 +---
src/pages/siteMap/index.tsx | 2 +-
src/pages/siteMap/siteMap.scss | 12 ++++++------
src/theme/DocSidebar/Desktop/index.tsx | 7 +++++++
src/theme/DocSidebar/Desktop/styles.scss | 12 ++++++++++++
5 files changed, 27 insertions(+), 10 deletions(-)
diff --git a/docusaurus.config.js b/docusaurus.config.js
index f74839cfb38..34b90dcf174 100644
--- a/docusaurus.config.js
+++ b/docusaurus.config.js
@@ -183,11 +183,9 @@ const config = {
items: [
{ to: '/', label: 'Home', position: 'left', exact: true },
{
- type: 'doc',
position: 'left',
label: 'Docs',
- docId: 'summary/basic-summary',
- to: '/basic-summary',
+ to: '/sitemap',
},
{ to: '/blog', label: 'Blog', position: 'left' },
{
diff --git a/src/pages/siteMap/index.tsx b/src/pages/siteMap/index.tsx
index 59758f14de6..f42e732e644 100644
--- a/src/pages/siteMap/index.tsx
+++ b/src/pages/siteMap/index.tsx
@@ -9,7 +9,7 @@ import PageColumn from '@site/src/components/PageColumn';
const sitemapList = [
{
- title: 'Get Started',
+ title: <Translate>Get Started</Translate>,
icon: require('@site/static/images/sitemap/sitemap-start.png').default,
list: [
{
diff --git a/src/pages/siteMap/siteMap.scss b/src/pages/siteMap/siteMap.scss
index fd7f04db6ff..50e38db56ee 100644
--- a/src/pages/siteMap/siteMap.scss
+++ b/src/pages/siteMap/siteMap.scss
@@ -1,6 +1,6 @@
.sitemap {
.page-column {
- padding-top: 4rem;
+ padding-top: 3rem;
}
}
@@ -9,7 +9,7 @@
flex-direction: column;
padding: 0 1rem;
line-height: 1.6;
- margin-top: 4rem;
+ margin-top: 3rem;
.sitemap-item {
display: flex;
@@ -26,8 +26,8 @@
}
.sitemap-title {
- font-size: 1.25rem;
- width: 14rem;
+ font-size: 1.2rem;
+ width: 12rem;
}
.sitemap-icon {
@@ -46,7 +46,7 @@
content: '';
border-left: 1px solid #F0F1FC;
position: absolute;
- left: 18.3rem;
+ left: 16.3rem;
top: 0;
bottom: 0;
}
@@ -57,7 +57,7 @@
border: 1px solid #E6E8FB;
color: #252734;
font-size: 1rem;
- padding: 1.25rem 0.8rem;
+ padding: 0.8rem 0.8rem;
.path-link {
display: inline-block;
diff --git a/src/theme/DocSidebar/Desktop/index.tsx
b/src/theme/DocSidebar/Desktop/index.tsx
index 823003c34da..7538ecb17d8 100644
--- a/src/theme/DocSidebar/Desktop/index.tsx
+++ b/src/theme/DocSidebar/Desktop/index.tsx
@@ -6,6 +6,8 @@ import SearchBar from '@theme/SearchBar';
import CollapseButton from '@theme/DocSidebar/Desktop/CollapseButton';
import Content from '@theme/DocSidebar/Desktop/Content';
import './styles.scss';
+import Link from '@docusaurus/Link';
+import Translate from '@docusaurus/Translate';
function DocSidebarDesktop({ path, sidebar, onCollapse, isHidden }) {
const {
navbar: { hideOnScroll },
@@ -19,6 +21,11 @@ function DocSidebarDesktop({ path, sidebar, onCollapse,
isHidden }) {
<div className="doc-search">
<SearchBar />
</div>
+ <Link to="/sitemap" className="learning-path">
+ <Translate id="sitemap.page.title" description="">
+ Learning Path
+ </Translate>
+ </Link>
<Content path={path} sidebar={sidebar} />
{hideable && <CollapseButton onClick={onCollapse} />}
</div>
diff --git a/src/theme/DocSidebar/Desktop/styles.scss
b/src/theme/DocSidebar/Desktop/styles.scss
index eec724b5482..973550c3f34 100644
--- a/src/theme/DocSidebar/Desktop/styles.scss
+++ b/src/theme/DocSidebar/Desktop/styles.scss
@@ -41,6 +41,18 @@
.sidebar-logo {
display: none;
}
+.learning-path {
+ padding: 0.8rem 1rem 0.5rem 2.5rem;
+ margin-bottom: -1.3rem;
+ color: var(--global-colors-text-primary);
+ text-decoration: none;
+ position: relative;
+ background-color: var(--global-colors-background);
+ z-index: 1;
+ &:hover {
+ text-decoration: none;
+ }
+}
.doc-search {
margin: 0.9375rem 0.9375rem 0;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]