Skip to content

Commit 8da2773

Browse files
committed
fix: docs
1 parent 59db1f0 commit 8da2773

File tree

12 files changed

+1698
-193
lines changed

12 files changed

+1698
-193
lines changed

docs-v3/components/TheSidebar.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,16 @@ watch(isMobileMenuOpen, (isOpen) => {
144144
}
145145
})
146146
147-
// Collapsible sections state - start with all sections collapsed
147+
// Collapsible sections state - start with API section expanded
148148
const collapsedSections = ref<Set<string>>(new Set())
149149
150-
// Initialize all sections as collapsed when navigation sections are available
150+
// Initialize sections as collapsed except for API section
151151
onMounted(() => {
152152
if (navigationSections.value) {
153153
const allSectionTitles = navigationSections.value.map(section => section.title)
154-
collapsedSections.value = new Set(allSectionTitles)
154+
// Start with all sections collapsed except 'API'
155+
const sectionsToCollapse = allSectionTitles.filter(title => title !== 'API')
156+
collapsedSections.value = new Set(sectionsToCollapse)
155157
}
156158
})
157159

docs-v3/composables/useNavigation.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export const useNavigation = () => {
2-
const navigationSections = [
2+
const navigationSections = ref([
33
{
44
title: 'Getting Started',
55
items: [
@@ -30,6 +30,14 @@ export const useNavigation = () => {
3030
{ title: 'Validation Methods', path: '/api/validation-methods' }
3131
]
3232
},
33+
{
34+
title: 'AI Agents',
35+
items: [
36+
{ title: 'MCP Server', path: '/mcp/mcp' },
37+
{ title: 'MCP Repositories', path: '/mcp/repositories' },
38+
{ title: 'MCP Fields', path: '/mcp/fields' }
39+
]
40+
},
3341
{
3442
title: 'Search',
3543
items: [
@@ -50,12 +58,11 @@ export const useNavigation = () => {
5058
items: [
5159
{ title: 'GraphQL', path: '/graphql/graphql' },
5260
{ title: 'GraphQL Generation', path: '/graphql/graphql-generation' },
53-
{ title: 'MCP Server', path: '/mcp/mcp' },
5461
{ title: 'Boost', path: '/boost/boost' },
5562
{ title: 'Testing', path: '/testing/testing' }
5663
]
5764
}
58-
]
65+
])
5966

6067
return {
6168
navigationSections

docs-v3/content/api/getters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Getters
33
menuTitle: Getters
44
category: API
5-
position: 10
5+
position: 11
66
---
77

88
## Motivation

0 commit comments

Comments
 (0)