Merge branch 'main' into feat/bmad-marketplace-plugin
This commit is contained in:
commit
1715dfbc48
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
|
|
@ -71,6 +71,12 @@
|
||||||
"markdownlint-cli2"
|
"markdownlint-cli2"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"overrides": {
|
||||||
|
"esbuild": "^0.28.1",
|
||||||
|
"markdownlint-cli2": {
|
||||||
|
"markdown-it": "^14.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@clack/core": "^1.3.1",
|
"@clack/core": "^1.3.1",
|
||||||
"@clack/prompts": "^1.4.0",
|
"@clack/prompts": "^1.4.0",
|
||||||
|
|
@ -87,10 +93,10 @@
|
||||||
"yaml": "^2.7.0"
|
"yaml": "^2.7.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@astrojs/sitemap": "^3.6.0",
|
"@astrojs/sitemap": "^3.7.3",
|
||||||
"@astrojs/starlight": "^0.37.5",
|
"@astrojs/starlight": "^0.40.0",
|
||||||
"@eslint/js": "^9.33.0",
|
"@eslint/js": "^9.33.0",
|
||||||
"astro": "^5.16.0",
|
"astro": "^6.4.6",
|
||||||
"c8": "^10.1.3",
|
"c8": "^10.1.3",
|
||||||
"eslint": "^9.33.0",
|
"eslint": "^9.33.0",
|
||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
|
|
|
||||||
|
|
@ -106,25 +106,25 @@ export default defineConfig({
|
||||||
label: 'Tutorials',
|
label: 'Tutorials',
|
||||||
translations: { 'vi-VN': 'Hướng dẫn nhập môn', 'zh-CN': '教程', 'fr-FR': 'Tutoriels', 'cs-CZ': 'Tutoriály' },
|
translations: { 'vi-VN': 'Hướng dẫn nhập môn', 'zh-CN': '教程', 'fr-FR': 'Tutoriels', 'cs-CZ': 'Tutoriály' },
|
||||||
collapsed: false,
|
collapsed: false,
|
||||||
autogenerate: { directory: 'tutorials' },
|
items: [{ autogenerate: { directory: 'tutorials' } }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'How-To Guides',
|
label: 'How-To Guides',
|
||||||
translations: { 'vi-VN': 'Hướng dẫn tác vụ', 'zh-CN': '操作指南', 'fr-FR': 'Guides pratiques', 'cs-CZ': 'Praktické návody' },
|
translations: { 'vi-VN': 'Hướng dẫn tác vụ', 'zh-CN': '操作指南', 'fr-FR': 'Guides pratiques', 'cs-CZ': 'Praktické návody' },
|
||||||
collapsed: true,
|
collapsed: true,
|
||||||
autogenerate: { directory: 'how-to' },
|
items: [{ autogenerate: { directory: 'how-to' } }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Explanation',
|
label: 'Explanation',
|
||||||
translations: { 'vi-VN': 'Giải thích', 'zh-CN': '概念说明', 'fr-FR': 'Explications', 'cs-CZ': 'Vysvětlení' },
|
translations: { 'vi-VN': 'Giải thích', 'zh-CN': '概念说明', 'fr-FR': 'Explications', 'cs-CZ': 'Vysvětlení' },
|
||||||
collapsed: true,
|
collapsed: true,
|
||||||
autogenerate: { directory: 'explanation' },
|
items: [{ autogenerate: { directory: 'explanation' } }],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Reference',
|
label: 'Reference',
|
||||||
translations: { 'vi-VN': 'Tham chiếu', 'zh-CN': '参考', 'fr-FR': 'Référence', 'cs-CZ': 'Reference' },
|
translations: { 'vi-VN': 'Tham chiếu', 'zh-CN': '参考', 'fr-FR': 'Référence', 'cs-CZ': 'Reference' },
|
||||||
collapsed: true,
|
collapsed: true,
|
||||||
autogenerate: { directory: 'reference' },
|
items: [{ autogenerate: { directory: 'reference' } }],
|
||||||
},
|
},
|
||||||
// TEA docs moved to standalone module site; keep BMM sidebar focused.
|
// TEA docs moved to standalone module site; keep BMM sidebar focused.
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,8 @@
|
||||||
|
import { defineCollection } from 'astro:content';
|
||||||
|
import { docsLoader, i18nLoader } from '@astrojs/starlight/loaders';
|
||||||
|
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
|
||||||
|
|
||||||
|
export const collections = {
|
||||||
|
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
|
||||||
|
i18n: defineCollection({ loader: i18nLoader(), schema: i18nSchema() }),
|
||||||
|
};
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
import { defineCollection } from 'astro:content';
|
|
||||||
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
|
|
||||||
|
|
||||||
export const collections = {
|
|
||||||
docs: defineCollection({ schema: docsSchema() }),
|
|
||||||
i18n: defineCollection({ type: 'data', schema: i18nSchema() }),
|
|
||||||
};
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
---
|
---
|
||||||
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
|
import StarlightPage from '@astrojs/starlight/components/StarlightPage.astro';
|
||||||
import { getEntry } from 'astro:content';
|
import { getEntry, render } from 'astro:content';
|
||||||
import { translatedLocales } from '../lib/locales.mjs';
|
import { translatedLocales } from '../lib/locales.mjs';
|
||||||
|
|
||||||
const entry = await getEntry('docs', '404');
|
const entry = await getEntry('docs', '404');
|
||||||
const { Content } = await entry.render();
|
const { Content } = await render(entry);
|
||||||
---
|
---
|
||||||
|
|
||||||
<StarlightPage frontmatter={{ title: entry.data.title, template: entry.data.template }}>
|
<StarlightPage frontmatter={{ title: entry.data.title, template: entry.data.template }}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue