docs: fix the navbar based on the latest feedback

This commit is contained in:
Arista Indrajaya 2024-03-08 14:12:50 +07:00
parent 3743da25fe
commit 17181927a4
2 changed files with 84 additions and 28 deletions

View File

@ -177,7 +177,6 @@ const sidebars = {
items: [ items: [
"guides/best-practices", "guides/best-practices",
"guides/thread", "guides/thread",
"guides/faq",
] ]
}, },
{ {
@ -186,24 +185,54 @@ const sidebars = {
collapsible: false, collapsible: false,
className: "head_Menu", className: "head_Menu",
items: [ items: [
"guides/models/README", {
"guides/models/customize-engine", type: "category",
"guides/models/import-models", label: "Advanced Model Setup",
"guides/models/integrate-remote", className: "head_SubMenu",
"guides/extensions/README", link: {
"guides/extensions/import-ext", type: 'doc',
"guides/extensions/setup-ext", id: "guides/models/README",
"guides/integration/README", },
"guides/integration/azure", items: [
"guides/integration/discord", "guides/models/customize-engine",
"guides/integration/groq", "guides/models/import-models",
"guides/integration/lmstudio", "guides/models/integrate-remote",
"guides/integration/mistral", ]
"guides/integration/ollama", },
"guides/integration/openinterpreter", {
"guides/integration/openrouter", type: "category",
"guides/integration/raycast", label: "Extensions",
"guides/integration/vscode", className: "head_SubMenu",
link: {
type: 'doc',
id: "guides/extensions/README",
},
items: [
"guides/extensions/import-ext",
"guides/extensions/setup-ext",
]
},
{
type: "category",
label: "Integrations",
className: "head_SubMenu",
link: {
type: 'doc',
id: "guides/integration/README",
},
items: [
"guides/integration/azure",
"guides/integration/discord",
"guides/integration/groq",
"guides/integration/lmstudio",
"guides/integration/mistral",
"guides/integration/ollama",
"guides/integration/openinterpreter",
"guides/integration/openrouter",
"guides/integration/raycast",
"guides/integration/vscode",
]
},
] ]
}, },
{ {
@ -212,15 +241,35 @@ const sidebars = {
collapsible: false, collapsible: false,
className: "head_Menu", className: "head_Menu",
items: [ items: [
"guides/common-error/README", {
"guides/common-error/broken-build", type: "category",
"guides/common-error/not-using-gpu", label: "Error Codes",
"guides/error-codes/README", className: "head_SubMenu",
"guides/error-codes/how-to-get-error-logs", link: {
"guides/error-codes/permission-denied", type: 'doc',
"guides/error-codes/something-amiss", id: "guides/error-codes/README",
"guides/error-codes/undefined-issue", },
"guides/error-codes/unexpected-token", items: [
"guides/error-codes/how-to-get-error-logs",
"guides/error-codes/permission-denied",
"guides/error-codes/something-amiss",
"guides/error-codes/undefined-issue",
"guides/error-codes/unexpected-token",
]
},
{
type: "category",
label: "Common Error",
className: "head_SubMenu",
link: {
type: 'doc',
id: "guides/common-error/README",
},
items: [
"guides/common-error/broken-build",
"guides/common-error/not-using-gpu",
]
},
"guides/faq" "guides/faq"
] ]
}, },

View File

@ -20,4 +20,11 @@
font-weight: normal; font-weight: normal;
background-color: white; background-color: white;
margin-bottom: 5px; /* Adjust margin as needed */ margin-bottom: 5px; /* Adjust margin as needed */
}
.head_SubMenu div {
font-weight: normal;
background-color: white;
margin-left: 0rem;
font-size: medium;
} }