docus 5.6.0 → 5.7.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 (53) hide show
  1. package/app/assets/icons/LICENSE +14 -0
  2. package/app/assets/icons/ai.svg +1 -0
  3. package/app/components/OgImage/OgImageDocs.vue +2 -4
  4. package/app/components/OgImage/OgImageLanding.vue +36 -13
  5. package/app/components/app/AppHeaderLogo.vue +12 -7
  6. package/app/composables/useLogoAssets.ts +246 -0
  7. package/app/types/index.d.ts +8 -0
  8. package/content.config.ts +1 -1
  9. package/i18n/locales/ar.json +14 -1
  10. package/i18n/locales/be.json +13 -1
  11. package/i18n/locales/bg.json +14 -1
  12. package/i18n/locales/bn.json +14 -1
  13. package/i18n/locales/ca.json +14 -1
  14. package/i18n/locales/ckb.json +14 -1
  15. package/i18n/locales/cs.json +14 -1
  16. package/i18n/locales/da.json +14 -1
  17. package/i18n/locales/de.json +13 -0
  18. package/i18n/locales/el.json +14 -1
  19. package/i18n/locales/en.json +13 -0
  20. package/i18n/locales/es.json +13 -0
  21. package/i18n/locales/et.json +14 -1
  22. package/i18n/locales/fi.json +14 -1
  23. package/i18n/locales/fr.json +13 -0
  24. package/i18n/locales/he.json +14 -1
  25. package/i18n/locales/hi.json +14 -1
  26. package/i18n/locales/hy.json +14 -1
  27. package/i18n/locales/id.json +36 -23
  28. package/i18n/locales/it.json +13 -0
  29. package/i18n/locales/ja.json +14 -1
  30. package/i18n/locales/kk.json +14 -1
  31. package/i18n/locales/km.json +14 -1
  32. package/i18n/locales/ko.json +14 -1
  33. package/i18n/locales/ky.json +14 -1
  34. package/i18n/locales/lb.json +14 -1
  35. package/i18n/locales/ms.json +14 -1
  36. package/i18n/locales/nb.json +14 -1
  37. package/i18n/locales/nl.json +15 -2
  38. package/i18n/locales/pl.json +13 -1
  39. package/i18n/locales/pt-BR.json +14 -1
  40. package/i18n/locales/ro.json +13 -0
  41. package/i18n/locales/ru.json +13 -1
  42. package/i18n/locales/si.json +14 -1
  43. package/i18n/locales/sl.json +14 -1
  44. package/i18n/locales/sv.json +14 -1
  45. package/i18n/locales/tr.json +34 -21
  46. package/i18n/locales/uk.json +14 -1
  47. package/i18n/locales/ur.json +14 -1
  48. package/i18n/locales/vi.json +14 -1
  49. package/i18n/locales/zh-CN.json +13 -0
  50. package/modules/assistant/runtime/components/AssistantChat.vue +2 -2
  51. package/nuxt.config.ts +20 -0
  52. package/nuxt.schema.ts +50 -1
  53. package/package.json +3 -4
@@ -18,5 +18,18 @@
18
18
  "toc": "Trên trang này",
19
19
  "report": "Báo cáo sự cố",
20
20
  "edit": "Chỉnh sửa trang này"
21
+ },
22
+ "logo": {
23
+ "copyLogo": "Sao chép logo",
24
+ "copyWordmark": "Sao chép wordmark",
25
+ "downloadLogo": "Tải logo",
26
+ "downloadWordmark": "Tải wordmark",
27
+ "brandAssets": "Tài nguyên thương hiệu",
28
+ "logoCopied": "Đã sao chép logo",
29
+ "wordmarkCopied": "Đã sao chép wordmark",
30
+ "logoDownloaded": "Đã tải logo",
31
+ "wordmarkDownloaded": "Đã tải wordmark",
32
+ "copyLogoFailed": "Không thể sao chép logo",
33
+ "copyWordmarkFailed": "Không thể sao chép wordmark"
21
34
  }
22
- }
35
+ }
@@ -18,5 +18,18 @@
18
18
  "toc": "在此页面上",
19
19
  "report": "提交问题报告",
20
20
  "edit": "编辑此页面"
21
+ },
22
+ "logo": {
23
+ "copyLogo": "复制图标",
24
+ "copyWordmark": "复制文字标识",
25
+ "downloadLogo": "下载图标",
26
+ "downloadWordmark": "下载文字标识",
27
+ "brandAssets": "品牌资源",
28
+ "logoCopied": "图标已复制",
29
+ "wordmarkCopied": "文字标识已复制",
30
+ "logoDownloaded": "图标已下载",
31
+ "wordmarkDownloaded": "文字标识已下载",
32
+ "copyLogoFailed": "复制图标失败",
33
+ "copyWordmarkFailed": "复制文字标识失败"
21
34
  }
22
35
  }
@@ -6,15 +6,15 @@ const { toggle } = useAssistant()
6
6
  const { t } = useDocusI18n()
7
7
 
8
8
  const tooltipText = computed(() => t('assistant.tooltip'))
9
- const triggerIcon = computed(() => appConfig.assistant?.icons?.trigger || 'i-lucide-sparkles')
9
+ const triggerIcon = computed(() => appConfig.assistant?.icons?.trigger || 'i-custom-ai')
10
10
  </script>
11
11
 
12
12
  <template>
13
13
  <UTooltip :text="tooltipText">
14
14
  <UButton
15
15
  :icon="triggerIcon"
16
+ color="neutral"
16
17
  variant="ghost"
17
- class="rounded-full"
18
18
  @click="toggle"
19
19
  />
20
20
  </UTooltip>
package/nuxt.config.ts CHANGED
@@ -1,3 +1,4 @@
1
+ import { join } from 'node:path'
1
2
  import { extendViteConfig, createResolver, useNuxt } from '@nuxt/kit'
2
3
 
3
4
  const { resolve } = createResolver(import.meta.url)
@@ -8,6 +9,15 @@ export default defineNuxtConfig({
8
9
  resolve('./modules/routing'),
9
10
  resolve('./modules/markdown-rewrite'),
10
11
  resolve('./modules/css'),
12
+ () => {
13
+ const nuxt = useNuxt()
14
+ nuxt.options.icon ||= {}
15
+ nuxt.options.icon.customCollections ||= []
16
+ nuxt.options.icon.customCollections.push({
17
+ prefix: 'custom',
18
+ dir: join(nuxt.options.srcDir, 'assets/icons'),
19
+ })
20
+ },
11
21
  '@nuxt/ui',
12
22
  '@nuxt/content',
13
23
  '@nuxt/image',
@@ -94,6 +104,16 @@ export default defineNuxtConfig({
94
104
  },
95
105
  },
96
106
  icon: {
107
+ customCollections: [
108
+ {
109
+ prefix: 'custom',
110
+ dir: resolve('./app/assets/icons'),
111
+ },
112
+ ],
113
+ clientBundle: {
114
+ scan: true,
115
+ includeCustomCollections: true,
116
+ },
97
117
  provider: 'iconify',
98
118
  },
99
119
  robots: {
package/nuxt.schema.ts CHANGED
@@ -140,6 +140,55 @@ export default defineNuxtSchema({
140
140
  icon: 'i-lucide-text',
141
141
  default: '',
142
142
  }),
143
+ wordmark: group({
144
+ title: 'Wordmark',
145
+ description: 'Wordmark (text logo) configuration for brand assets.',
146
+ icon: 'i-lucide-type',
147
+ fields: {
148
+ light: field({
149
+ type: 'media',
150
+ title: 'Light Mode Wordmark',
151
+ description: 'Wordmark image for light mode.',
152
+ icon: 'i-lucide-sun',
153
+ default: '',
154
+ }),
155
+ dark: field({
156
+ type: 'media',
157
+ title: 'Dark Mode Wordmark',
158
+ description: 'Wordmark image for dark mode.',
159
+ icon: 'i-lucide-moon',
160
+ default: '',
161
+ }),
162
+ },
163
+ }),
164
+ class: field({
165
+ type: 'string',
166
+ title: 'Class',
167
+ description: 'Additional CSS classes to apply to the logo image.',
168
+ icon: 'i-lucide-paintbrush',
169
+ default: '',
170
+ }),
171
+ display: field({
172
+ type: 'string',
173
+ title: 'Display',
174
+ description: 'Which logo variant to show in the header: "logo" for the icon or "wordmark" for the full wordmark.',
175
+ icon: 'i-lucide-layout',
176
+ default: 'logo',
177
+ }),
178
+ favicon: field({
179
+ type: 'media',
180
+ title: 'Favicon',
181
+ description: 'Path to the favicon file for brand asset downloads.',
182
+ icon: 'i-lucide-app-window',
183
+ default: '/favicon.ico',
184
+ }),
185
+ brandAssetsUrl: field({
186
+ type: 'string',
187
+ title: 'Brand Assets URL',
188
+ description: 'Link to the full brand assets page (shown in the logo context menu).',
189
+ icon: 'i-lucide-palette',
190
+ default: '',
191
+ }),
143
192
  },
144
193
  }),
145
194
  },
@@ -217,7 +266,7 @@ export default defineNuxtSchema({
217
266
  assistant: group({
218
267
  title: 'Assistant',
219
268
  description: 'Assistant configuration.',
220
- icon: 'i-lucide-sparkles',
269
+ icon: 'i-custom-ai',
221
270
  fields: {
222
271
  floatingInput: field({
223
272
  type: 'boolean',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "docus",
3
3
  "description": "Nuxt layer for Docus documentation theme",
4
- "version": "5.6.0",
4
+ "version": "5.7.0",
5
5
  "type": "module",
6
6
  "main": "./nuxt.config.ts",
7
7
  "repository": {
@@ -28,10 +28,10 @@
28
28
  "@iconify-json/lucide": "^1.2.91",
29
29
  "@iconify-json/simple-icons": "^1.2.71",
30
30
  "@iconify-json/vscode-icons": "^1.2.43",
31
- "@nuxt/content": "^3.11.2",
31
+ "@nuxt/content": "^3.12.0",
32
32
  "@nuxt/image": "^2.0.0",
33
33
  "@nuxt/kit": "^4.3.1",
34
- "@nuxt/ui": "^4.4.0",
34
+ "@nuxt/ui": "^4.5.0",
35
35
  "@nuxtjs/i18n": "^10.2.3",
36
36
  "@nuxtjs/mcp-toolkit": "^0.7.0",
37
37
  "@nuxtjs/mdc": "^0.20.1",
@@ -41,7 +41,6 @@
41
41
  "defu": "^6.1.4",
42
42
  "exsolve": "^1.0.8",
43
43
  "git-url-parse": "^16.1.0",
44
- "minimark": "^1.0.0",
45
44
  "motion-v": "^1.10.3",
46
45
  "nuxt-llms": "^0.2.0",
47
46
  "nuxt-og-image": "^5.1.13",