Skip to content

Commit

Permalink
optimize: optimize the style of the official website (#404)
Browse files Browse the repository at this point in the history
  • Loading branch information
qq635840580 authored Oct 31, 2023
1 parent 4b33dd7 commit 39886b5
Show file tree
Hide file tree
Showing 27 changed files with 20,063 additions and 7,041 deletions.
2 changes: 2 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
}
42 changes: 37 additions & 5 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ const config = {

// Set the production url of your site here
url: 'https://nacos.io',
// url: 'https://nacos-group.github.io',
// organizationName: 'qq635840580',
// deploymentBranch: 'develop-new-framework',
// projectName: 'nacos-group.github.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/',
Expand Down Expand Up @@ -42,18 +46,19 @@ const config = {
}
},
scripts: [
{ src: '//g.alicdn.com/mamba/assets/0.0.19/mse-arc-ui.min.js' },
{ src: '//dev.g.alicdn.com/mamba/mse-arc-ui/0.0.20/umd/mse-arc-ui.min.js' },
{
src: 'https://www.googletagmanager.com/gtag/js?id=G-0YDFJ7LX7F',
async: true,
},
],
stylesheets: [
{
href: '//g.alicdn.com/mamba/assets/0.0.19/mse-arc-ui.min.css',
href: '//dev.g.alicdn.com/mamba/mse-arc-ui/0.0.20/umd/mse-arc-ui.min.css',
},
],
plugins: ['docusaurus-plugin-sass',
'./postcss-tailwind-loader.js',
['docusaurus-plugin-includes',
{
injectedHtmlTags: {
Expand Down Expand Up @@ -99,6 +104,13 @@ const config = {
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// lastVersion: 'current',
// versions: {
// current: {
// label: '',
// path: '',
// },
// },
},
blog: {
showReadingTime: true,
Expand Down Expand Up @@ -136,6 +148,11 @@ const config = {
activeBaseRegex: '^/$',
position: 'right',
},
// {
// label: 'Blog',
// to: '/blog',
// activeBaseRegex: '^/blog/',
// },
{
type: "docsVersionDropdown",
label: "Docs",
Expand Down Expand Up @@ -173,11 +190,16 @@ const config = {
// },
// ],
// },
// {
// label: 'NACOS IN CLOUD',
// href: 'https://cn.aliyun.com/product/aliware/mse?spm=nacos-website.topbar.0.0.0',
// position: 'right',
// target: '_blank',
// },
{
label: 'NACOS IN CLOUD',
href: 'https://cn.aliyun.com/product/aliware/mse?spm=nacos-website.topbar.0.0.0',
label: 'NACOS CLOUD',
position: 'right',
target: '_blank',
to: '/cloud'
},
{
label: 'E-BOOK-NACOS',
Expand Down Expand Up @@ -224,6 +246,16 @@ const config = {
indexName: 'nacos',
},
}),

headTags: [
{
tagName: 'meta',
attributes: {
name: 'referrer',
content: 'no-referrer',
}
}
]
};

module.exports = config;
2 changes: 1 addition & 1 deletion i18n/en/code.json
Original file line number Diff line number Diff line change
Expand Up @@ -381,4 +381,4 @@
"message": "Tags",
"description": "The title of the tag list page"
}
}
}
2 changes: 1 addition & 1 deletion i18n/zh-cn/docusaurus-plugin-content-docs/current.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
"message": "社区",
"description": "The label for category Community in sidebar docs"
}
}
}
8 changes: 6 additions & 2 deletions i18n/zh-cn/docusaurus-theme-classic/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"description": "Navbar item with label Home"
},
"item.label.Docs": {
"message": "文档",
"message": "用户文档",
"description": "Navbar item with label Docs"
},
"item.label.Solutions": {
Expand All @@ -19,6 +19,10 @@
"message": "企业版NACOS",
"description": "Navbar item with label NACOS IN CLOUD"
},
"item.label.NACOS CLOUD": {
"message": "Nacos Cloud",
"description": "Navbar item with label Nacos Cloud"
},
"item.label.E-BOOK-NACOS": {
"message": "NACOS架构与原理",
"description": "Navbar item with label E-BOOK-NACOS"
Expand Down Expand Up @@ -59,4 +63,4 @@
"message": "Service mesh Solution",
"description": "Navbar item with label Service mesh Solution"
}
}
}
Loading

0 comments on commit 39886b5

Please sign in to comment.