Skip to content

Commit

Permalink
feat: add learn more button for landing page (#8)
Browse files Browse the repository at this point in the history
* feat: add learn more button for landing page

Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Feb 28, 2022
1 parent 847fa5d commit 4198c1d
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 14 deletions.
24 changes: 20 additions & 4 deletions i18n/zh/docusaurus-theme-classic/footer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
"message": "快速开始",
"description": "The label of footer link with label=Getting Started linking to /docs/"
},
"link.item.label.Tutorial": {
"message": "实践教程",
"description": "The label of footer link with label=Tutorial linking to /docs/tutorial/helm"
},
"link.item.label.Discussions": {
"message": "讨论组",
"description": "The label of footer link with label=Discussions linking to https://github.com/dragonflyoss/Dragonfly2/discussions"
Expand All @@ -38,5 +34,25 @@
"copyright": {
"message": "Copyright © 2022 Dragonfly Authors.",
"description": "The footer copyright"
},
"link.item.label.Setup": {
"message": "Setup",
"description": "The label of footer link with label=Setup linking to /docs/setup/install/kubernetes"
},
"link.item.label.Concepts": {
"message": "Concepts",
"description": "The label of footer link with label=Concepts linking to /docs/concepts/best-practices"
},
"link.item.label.Reference": {
"message": "Reference",
"description": "The label of footer link with label=Reference linking to /docs/reference/benchmark"
},
"link.item.label.Contribute": {
"message": "Contribute",
"description": "The label of footer link with label=Contribute linking to /docs/contribute/development-guide/development"
},
"link.item.label.Others": {
"message": "Others",
"description": "The label of footer link with label=Others linking to /docs/others/faqs"
}
}
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,13 @@
},
"lint-staged": {
"*.js": [
"prettier --write",
"git add"
"prettier --write"
],
"*.css": [
"prettier --write",
"git add"
"prettier --write"
],
"*.json": [
"prettier --write",
"git add"
"prettier --write"
]
},
"commitlint": {
Expand Down
8 changes: 4 additions & 4 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,21 +67,21 @@ module.exports = {
items: [
{
type: 'category',
label: 'Observability',
label: 'Terminology',
items: [
{
type: 'autogenerated',
dirName: 'concepts/observability',
dirName: 'concepts/terminology',
},
],
},
{
type: 'category',
label: 'Terminology',
label: 'Observability',
items: [
{
type: 'autogenerated',
dirName: 'concepts/terminology',
dirName: 'concepts/observability',
},
],
},
Expand Down
3 changes: 3 additions & 0 deletions src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export default function Home() {
<Button href={useBaseUrl("docs/")}>
<Translate>Get Started</Translate>
</Button>
<Button href={useBaseUrl("docs/concepts/terminology/cdn")}>
<Translate>Learn More</Translate>
</Button>
</div>
</header>

Expand Down

0 comments on commit 4198c1d

Please sign in to comment.