docs-please 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/components/app/AppSearch.vue +2 -2
- package/app/components/content/Caution.vue +2 -2
- package/app/components/content/Note.vue +2 -2
- package/app/components/content/Tip.vue +2 -2
- package/app/components/content/UButton.vue +1 -1
- package/app/components/content/Warning.vue +2 -2
- package/app/composables/useContentSearch.ts +2 -2
- package/package.json +12 -12
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
DialogHeader,
|
|
18
18
|
DialogTitle,
|
|
19
19
|
} from '~/components/ui/dialog'
|
|
20
|
-
import {
|
|
20
|
+
import { flattenNavigationToSearchItems, useContentSearch } from '~/composables/useContentSearch'
|
|
21
21
|
|
|
22
22
|
const router = useRouter()
|
|
23
23
|
const colorMode = useColorMode()
|
|
@@ -27,7 +27,7 @@ const { data: navigation } = await useNavigation()
|
|
|
27
27
|
const searchTerm = ref('')
|
|
28
28
|
|
|
29
29
|
// Flatten navigation for search
|
|
30
|
-
const searchItems = computed(() =>
|
|
30
|
+
const searchItems = computed(() => flattenNavigationToSearchItems(navigation.value))
|
|
31
31
|
|
|
32
32
|
// Fuse search
|
|
33
33
|
const { results } = useFuse(searchTerm, searchItems, {
|
|
@@ -27,7 +27,7 @@ export function useContentSearch() {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
export function
|
|
30
|
+
export function flattenNavigationToSearchItems(items: NavigationItem[], prefix = '', isDocSection = false): SearchItem[] {
|
|
31
31
|
return items.flatMap((item) => {
|
|
32
32
|
const result: SearchItem[] = []
|
|
33
33
|
// Determine if this item is a doc page based on parent context or path
|
|
@@ -44,7 +44,7 @@ export function flattenNavigation(items: NavigationItem[], prefix = '', isDocSec
|
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
if (item.children?.length) {
|
|
47
|
-
result.push(...
|
|
47
|
+
result.push(...flattenNavigationToSearchItems(item.children, item.title, itemIsDoc))
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
return result
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "docs-please",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.5",
|
|
5
5
|
"description": "Nuxt layer for documentation sites using shadcn-vue",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -34,15 +34,17 @@
|
|
|
34
34
|
"nuxt": "4.x"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@iconify-json/lucide": "^1.2.
|
|
38
|
-
"@nuxt/content": "^3.
|
|
37
|
+
"@iconify-json/lucide": "^1.2.81",
|
|
38
|
+
"@nuxt/content": "^3.9.0",
|
|
39
39
|
"@nuxt/eslint": "^1.11.0",
|
|
40
40
|
"@nuxt/icon": "^2.1.0",
|
|
41
41
|
"@nuxt/image": "^2.0.0",
|
|
42
|
-
"@nuxt/kit": "^4.2.
|
|
42
|
+
"@nuxt/kit": "^4.2.2",
|
|
43
43
|
"@nuxtjs/color-mode": "^4.0.0",
|
|
44
|
-
"@nuxtjs/mdc": "^0.
|
|
44
|
+
"@nuxtjs/mdc": "^0.19.1",
|
|
45
|
+
"@nuxtjs/robots": "^5.6.7",
|
|
45
46
|
"@tabler/icons-vue": "^3.35.0",
|
|
47
|
+
"@tailwindcss/vite": "^4.1.18",
|
|
46
48
|
"@vueuse/core": "^14.1.0",
|
|
47
49
|
"@vueuse/integrations": "^14.1.0",
|
|
48
50
|
"class-variance-authority": "^0.7.1",
|
|
@@ -53,7 +55,8 @@
|
|
|
53
55
|
"exsolve": "^1.0.8",
|
|
54
56
|
"fuse.js": "^7.1.0",
|
|
55
57
|
"lucide-vue-next": "^0.555.0",
|
|
56
|
-
"nuxt-
|
|
58
|
+
"nuxt-llms": "^0.1.3",
|
|
59
|
+
"nuxt-og-image": "^5.1.13",
|
|
57
60
|
"oxc-parser": "^0.99.0",
|
|
58
61
|
"parse5": "^7.3.0",
|
|
59
62
|
"rehype-raw": "^7.0.0",
|
|
@@ -62,22 +65,19 @@
|
|
|
62
65
|
"remark-gfm": "^4.0.1",
|
|
63
66
|
"remark-mdc": "^3.5.1",
|
|
64
67
|
"remark-rehype": "^11.1.2",
|
|
65
|
-
"shadcn-nuxt": "2.
|
|
68
|
+
"shadcn-nuxt": "2.4.3",
|
|
66
69
|
"slugify": "^1.6.6",
|
|
67
70
|
"tailwind-merge": "^3.4.0",
|
|
68
|
-
"tailwindcss": "^4.1.
|
|
71
|
+
"tailwindcss": "^4.1.18",
|
|
69
72
|
"tw-animate-css": "^1.4.0",
|
|
70
73
|
"ufo": "^1.6.1",
|
|
71
74
|
"unified": "^11.0.5",
|
|
72
75
|
"unist-util-visit": "^5.0.0",
|
|
73
|
-
"zod": "^
|
|
76
|
+
"zod": "^4.2.1",
|
|
74
77
|
"zod-to-json-schema": "^3.25.0"
|
|
75
78
|
},
|
|
76
79
|
"devDependencies": {
|
|
77
|
-
"@nuxtjs/robots": "^5.6.1",
|
|
78
|
-
"@tailwindcss/vite": "^4.1.17",
|
|
79
80
|
"better-sqlite3": "^11.9.1",
|
|
80
|
-
"nuxt-llms": "^0.1.3",
|
|
81
81
|
"typescript": "^5.9.3",
|
|
82
82
|
"vue-tsc": "^2.0.0"
|
|
83
83
|
}
|