docus 5.8.1 → 5.10.0

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.
Files changed (75) hide show
  1. package/README.md +1 -1
  2. package/app/app.config.ts +13 -0
  3. package/app/app.vue +5 -1
  4. package/app/components/OgImage/Docs.takumi.vue +43 -0
  5. package/app/components/OgImage/Landing.takumi.vue +67 -0
  6. package/app/components/app/AppFooterRight.vue +4 -1
  7. package/app/components/app/AppHeader.vue +6 -7
  8. package/app/components/app/AppHeaderBody.vue +6 -2
  9. package/app/components/app/AppHeaderBottom.vue +6 -2
  10. package/app/components/app/AppHeaderLeft.vue +16 -0
  11. package/app/components/docs/DocsAsideLeftBody.vue +6 -1
  12. package/app/components/docs/DocsAsideMobileBar.vue +11 -1
  13. package/app/components/docs/DocsAsideRight.vue +6 -1
  14. package/app/composables/useDocusColorMode.ts +7 -0
  15. package/app/composables/useUIConfig.ts +30 -0
  16. package/app/error.vue +3 -0
  17. package/app/middleware/colorMode.global.ts +8 -0
  18. package/app/pages/[[lang]]/[...slug].vue +16 -12
  19. package/app/templates/landing.vue +3 -3
  20. package/app/utils/ogImage.ts +23 -0
  21. package/i18n/locales/ar.json +27 -0
  22. package/i18n/locales/be.json +27 -0
  23. package/i18n/locales/bg.json +27 -0
  24. package/i18n/locales/bn.json +27 -0
  25. package/i18n/locales/ca.json +27 -0
  26. package/i18n/locales/ckb.json +32 -1
  27. package/i18n/locales/cs.json +27 -0
  28. package/i18n/locales/da.json +27 -0
  29. package/i18n/locales/de.json +27 -0
  30. package/i18n/locales/el.json +27 -0
  31. package/i18n/locales/es.json +27 -0
  32. package/i18n/locales/et.json +27 -0
  33. package/i18n/locales/fi.json +27 -0
  34. package/i18n/locales/he.json +27 -0
  35. package/i18n/locales/hi.json +27 -0
  36. package/i18n/locales/hy.json +27 -0
  37. package/i18n/locales/id.json +27 -0
  38. package/i18n/locales/it.json +27 -0
  39. package/i18n/locales/ja.json +27 -0
  40. package/i18n/locales/kk.json +27 -0
  41. package/i18n/locales/km.json +27 -0
  42. package/i18n/locales/ko.json +27 -0
  43. package/i18n/locales/ky.json +27 -0
  44. package/i18n/locales/lb.json +27 -0
  45. package/i18n/locales/ms.json +27 -0
  46. package/i18n/locales/nb.json +27 -0
  47. package/i18n/locales/nl.json +27 -0
  48. package/i18n/locales/pl.json +27 -0
  49. package/i18n/locales/pt-BR.json +27 -0
  50. package/i18n/locales/ro.json +27 -0
  51. package/i18n/locales/ru.json +27 -0
  52. package/i18n/locales/si.json +27 -0
  53. package/i18n/locales/sl.json +27 -0
  54. package/i18n/locales/sv.json +27 -0
  55. package/i18n/locales/tr.json +27 -0
  56. package/i18n/locales/uk.json +27 -0
  57. package/i18n/locales/ur.json +27 -0
  58. package/i18n/locales/vi.json +27 -0
  59. package/i18n/locales/zh-CN.json +27 -0
  60. package/index.d.ts +33 -0
  61. package/modules/assistant/README.md +17 -8
  62. package/modules/assistant/index.ts +26 -16
  63. package/modules/assistant/runtime/server/api/search.ts +5 -0
  64. package/modules/config.ts +7 -2
  65. package/modules/css.ts +12 -0
  66. package/modules/skills/index.ts +158 -0
  67. package/modules/skills/runtime/server/routes/skills-files.ts +49 -0
  68. package/modules/skills/runtime/server/routes/skills-index.ts +8 -0
  69. package/nuxt.config.ts +8 -2
  70. package/nuxt.schema.ts +22 -0
  71. package/package.json +24 -21
  72. package/server/mcp/tools/get-page.ts +16 -5
  73. package/server/mcp/tools/list-pages.ts +13 -3
  74. package/app/components/OgImage/OgImageDocs.vue +0 -76
  75. package/app/components/OgImage/OgImageLanding.vue +0 -98
@@ -1,98 +0,0 @@
1
- <script lang="ts" setup>
2
- const props = withDefaults(defineProps<{ title?: string, description?: string }>(), {
3
- title: 'title',
4
- description: 'description',
5
- })
6
-
7
- const appConfig = useAppConfig()
8
- const logoPath = appConfig.header?.logo?.dark || appConfig.header?.logo?.light
9
-
10
- const logoSvg = await fetchLogoSvg(logoPath)
11
-
12
- const title = (props.title || '').slice(0, 60)
13
- const description = (props.description || '').slice(0, 200)
14
-
15
- async function fetchLogoSvg(path?: string): Promise<string> {
16
- if (!path) return ''
17
- try {
18
- // eslint-disable-next-line
19
- // @ts-ignore
20
- const { url: siteUrl } = useSiteConfig()
21
- const url = path.startsWith('http') ? path : `${siteUrl}${path}`
22
- const svg = await $fetch<string>(url, { responseType: 'text' })
23
- return svg.replace('<svg', '<svg width="100%" height="100%"')
24
- }
25
- catch {
26
- return ''
27
- }
28
- }
29
- </script>
30
-
31
- <template>
32
- <div class="w-full h-full flex items-center justify-center bg-neutral-900">
33
- <svg
34
- class="absolute right-0 top-0 opacity-50"
35
- width="629"
36
- height="593"
37
- viewBox="0 0 629 593"
38
- fill="none"
39
- xmlns="http://www.w3.org/2000/svg"
40
- >
41
- <g filter="url(#filter0_f_199_94966)">
42
- <path
43
- d="M628.5 -578L639.334 -94.4223L806.598 -548.281L659.827 -87.387L965.396 -462.344L676.925 -74.0787L1087.69 -329.501L688.776 -55.9396L1160.22 -164.149L694.095 -34.9354L1175.13 15.7948L692.306 -13.3422L1130.8 190.83L683.602 6.50012L1032.04 341.989L668.927 22.4412L889.557 452.891L649.872 32.7537L718.78 511.519L628.5 36.32L538.22 511.519L607.128 32.7537L367.443 452.891L588.073 22.4412L224.955 341.989L573.398 6.50012L126.198 190.83L564.694 -13.3422L81.8734 15.7948L562.905 -34.9354L96.7839 -164.149L568.224 -55.9396L169.314 -329.501L580.075 -74.0787L291.604 -462.344L597.173 -87.387L450.402 -548.281L617.666 -94.4223L628.5 -578Z"
44
- fill="white"
45
- />
46
- </g>
47
- <defs>
48
- <filter
49
- id="filter0_f_199_94966"
50
- x="0.873535"
51
- y="-659"
52
- width="1255.25"
53
- height="1251.52"
54
- filterUnits="userSpaceOnUse"
55
- color-interpolation-filters="sRGB"
56
- >
57
- <feFlood
58
- flood-opacity="0"
59
- result="BackgroundImageFix"
60
- />
61
- <feBlend
62
- mode="normal"
63
- in="SourceGraphic"
64
- in2="BackgroundImageFix"
65
- result="shape"
66
- />
67
- <feGaussianBlur
68
- stdDeviation="40.5"
69
- result="effect1_foregroundBlur_199_94966"
70
- />
71
- </filter>
72
- </defs>
73
- </svg>
74
-
75
- <div
76
- class="flex flex-col items-center justify-center p-8"
77
- >
78
- <div
79
- v-if="logoSvg"
80
- class="flex items-center justify-center mb-10 max-w-[900px]"
81
- style="width: 72px; height: 72px;"
82
- v-html="logoSvg"
83
- />
84
- <h1
85
- v-if="title"
86
- class="m-0 text-5xl font-semibold mb-4 text-white text-center"
87
- >
88
- {{ title }}
89
- </h1>
90
- <p
91
- v-if="description"
92
- class="text-center text-2xl text-neutral-300 leading-tight max-w-[800px]"
93
- >
94
- {{ description }}
95
- </p>
96
- </div>
97
- </div>
98
- </template>