diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 350ecdfb6eb3aa0ff29e7666728074aec4d78086..60689bb9c1da5231bfddc1d0d3fafd891bfc4aa6 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -68,41 +68,51 @@ const config: Config = { }, items: [ { - label: '模型', - to: 'https://ai.gitee.com/models', + label: 'API', + to: 'https://ai.gitee.com/serverless-api', target: '_self', }, { - label: '数据集', - to: 'https://ai.gitee.com/datasets', - target: '_self', + label: '模型', + items: [ + { + label: '模型', + to: 'https://ai.gitee.com/models', + target: '_self', + }, + { + label: '数据集', + to: 'https://ai.gitee.com/datasets', + target: '_self', + }, + ], }, { label: '应用', to: 'https://ai.gitee.com/apps', target: '_self', }, - { - label: 'Serverless API', - to: 'https://ai.gitee.com/serverless-api', - target: '_self', - }, { label: '解决方案', items: [ { label: '模型引擎', - to: 'https://ai.gitee.com/endpoints', + to: 'https://ai.gitee.com/solutions/model-engine', + target: '_self', + }, + { + label: '应用引擎', + to: 'https://ai.gitee.com/solutions/app-engine', target: '_self', }, { label: '算力网络', - to: 'https://ai.gitee.com/computing-network', + to: 'https://ai.gitee.com/solutions/computing-network', target: '_self', }, { label: 'Serverless 推理引擎', - to: 'https://ai.gitee.com/serverless', + to: 'https://ai.gitee.com/solutions/serverless', target: '_self', }, ], diff --git a/src/css/custom.css b/src/css/custom.css index e2bcbfc0c7ccc500a4657acb30076641cb04be4f..3861a6cea75b590986b0e4716422f53e54a5e090 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -71,10 +71,23 @@ input[type='number'] { .navbar__item { margin-right: 1rem; + padding: 0; } -.navbar__item.navbar__link { +.navbar__item.navbar__link, +.navbar__items .navbar__link { font-size: 10.5pt; + padding: var(--ifm-navbar-item-padding-vertical) + var(--ifm-navbar-item-padding-horizontal); +} +.navbar__items .navbar__link { + display: block; +} +.navbar__items > a:nth-of-type(2) { + margin-left: auto; +} +.navbar__items > a:last-child { + margin-right: auto; } .footer { @@ -129,16 +142,16 @@ article table td { } /* blogs */ -article[itemprop=blogPost] header h1 { +article[itemprop='blogPost'] header h1 { font-size: 2.4em; } -article[itemprop=blogPost] header h2 { +article[itemprop='blogPost'] header h2 { font-size: 1.6em; } -article[itemprop=blogPost] header h2 a { - color: var(--ifm-heading-color) +article[itemprop='blogPost'] header h2 a { + color: var(--ifm-heading-color); } .avatar img { @@ -159,11 +172,11 @@ article[itemprop=blogPost] header h2 a { font-size: 10pt; } -div[id^=headlessui-disclosure-panel] tr td.relative:nth-child(2) { +div[id^='headlessui-disclosure-panel'] tr td.relative:nth-child(2) { position: inherit !important; } /* 修正 tabs 样式 */ .markdown li.tabs__item { display: inline-flex; -} \ No newline at end of file +}