docus 4.0.0-beta.10 → 4.0.0-beta.12
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { kebabCase } from 'scule'
|
|
3
3
|
import type { ContentNavigationItem, Collections, DocsCollectionItem } from '@nuxt/content'
|
|
4
4
|
import { findPageHeadline } from '@nuxt/content/utils'
|
|
5
|
-
import { addPrerenderPath } from '
|
|
5
|
+
import { addPrerenderPath } from '../../utils/prerender'
|
|
6
6
|
|
|
7
7
|
definePageMeta({
|
|
8
8
|
layout: 'docs',
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export default defineI18nConfig(async () => {
|
|
2
|
+
const config = useRuntimeConfig().public
|
|
3
|
+
|
|
4
|
+
const messages: Record<string, Record<string, never>> = {}
|
|
5
|
+
await Promise.all(
|
|
6
|
+
config.i18n.locales.map(async (locale) => {
|
|
7
|
+
const localeFile = await import(`./locales/${locale.code}.json`)
|
|
8
|
+
messages[locale.code] = localeFile.default
|
|
9
|
+
}),
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
return {
|
|
13
|
+
messages,
|
|
14
|
+
}
|
|
15
|
+
})
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"common": {
|
|
3
|
+
"or": "or"
|
|
4
|
+
},
|
|
5
|
+
"docs": {
|
|
6
|
+
"copy": {
|
|
7
|
+
"page": "Copy page",
|
|
8
|
+
"link": "Copy Markdown page",
|
|
9
|
+
"view": "View as Markdown",
|
|
10
|
+
"gpt": "Open in ChatGPT",
|
|
11
|
+
"claude": "Open in Claude"
|
|
12
|
+
},
|
|
13
|
+
"links": "Community",
|
|
14
|
+
"toc": "On this page",
|
|
15
|
+
"report": "Report an issue",
|
|
16
|
+
"edit": "Edit this page"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"common": {
|
|
3
|
+
"or": "ou"
|
|
4
|
+
},
|
|
5
|
+
"docs": {
|
|
6
|
+
"copy": {
|
|
7
|
+
"page": "Copier la page",
|
|
8
|
+
"link": "Copier la page Markdown",
|
|
9
|
+
"view": "Voir en Markdown",
|
|
10
|
+
"gpt": "Ouvrir dans ChatGPT",
|
|
11
|
+
"claude": "Ouvrir dans Claude"
|
|
12
|
+
},
|
|
13
|
+
"links": "Communauté",
|
|
14
|
+
"toc": "Sur cette page",
|
|
15
|
+
"report": "Signaler un problème",
|
|
16
|
+
"edit": "Éditer cette page"
|
|
17
|
+
}
|
|
18
|
+
}
|
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": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.12",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./nuxt.config.ts",
|
|
7
7
|
"repository": {
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"files": [
|
|
14
14
|
"app",
|
|
15
|
+
"i18n",
|
|
15
16
|
"content.config.ts",
|
|
16
17
|
"modules",
|
|
17
18
|
"nuxt.config.ts",
|