From 9ce49c2f4c63ccd4f76bcbd2e631c6949a22ddf4 Mon Sep 17 00:00:00 2001 From: xuxiaozhou Date: Thu, 14 Nov 2024 18:19:08 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20=E5=AF=BC=E8=88=AA=E6=A0=8F?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docusaurus.config.ts | 25 +++++++++++++++---------- src/css/custom.css | 21 ++++++++++++++------- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 350ecdf..7cdc224 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -68,25 +68,30 @@ const config: Config = { }, items: [ { - label: '模型', - to: 'https://ai.gitee.com/models', + label: 'Serverless 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: [ diff --git a/src/css/custom.css b/src/css/custom.css index e2bcbfc..42540e5 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -73,9 +73,16 @@ input[type='number'] { margin-right: 1rem; } -.navbar__item.navbar__link { +.navbar__item.navbar__link, +.navbar__items .navbar__link { font-size: 10.5pt; } +.navbar__items > a:nth-of-type(2) { + margin-left: auto; +} +.navbar__items > a:last-child { + margin-right: auto; +} .footer { font-size: 10.5pt; @@ -129,16 +136,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 +166,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 +} -- Gitee From 0147a24dfec3e2dbec3487ff92037253867faf98 Mon Sep 17 00:00:00 2001 From: xuxiaozhou Date: Fri, 15 Nov 2024 14:06:19 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=BC=95=E6=93=8E=EF=BC=8C=E5=AD=97=E4=BD=93=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F=E5=92=8C=E9=AB=98=E5=BA=A6=E8=B0=83=E6=95=B4=E4=B8=BA?= =?UTF-8?q?=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docusaurus.config.ts | 7 ++++++- src/css/custom.css | 6 ++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 7cdc224..cc857ce 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -68,7 +68,7 @@ const config: Config = { }, items: [ { - label: 'Serverless API', + label: 'API', to: 'https://ai.gitee.com/serverless-api', target: '_self', }, @@ -100,6 +100,11 @@ const config: Config = { to: 'https://ai.gitee.com/endpoints', target: '_self', }, + { + label: '应用引擎', + to: 'https://ai.gitee.com/app-engine', + target: '_self', + }, { label: '算力网络', to: 'https://ai.gitee.com/computing-network', diff --git a/src/css/custom.css b/src/css/custom.css index 42540e5..3861a6c 100644 --- a/src/css/custom.css +++ b/src/css/custom.css @@ -71,11 +71,17 @@ input[type='number'] { .navbar__item { margin-right: 1rem; + padding: 0; } .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; -- Gitee From d2158b11e80a9e3455a3c2260e939e20b43ca68b Mon Sep 17 00:00:00 2001 From: xuxiaozhou Date: Fri, 15 Nov 2024 15:37:59 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docusaurus.config.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index cc857ce..60689bb 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -97,22 +97,22 @@ const config: Config = { items: [ { label: '模型引擎', - to: 'https://ai.gitee.com/endpoints', + to: 'https://ai.gitee.com/solutions/model-engine', target: '_self', }, { label: '应用引擎', - to: 'https://ai.gitee.com/app-engine', + 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', }, ], -- Gitee