docs(ComponentCode/ComponentExample/ComponentTheme): handle collapse

This commit is contained in:
Benjamin Canac
2024-08-07 12:27:47 +02:00
parent daa98c56fa
commit 5d2d198aae
3 changed files with 47 additions and 4 deletions

View File

@@ -44,6 +44,7 @@ const component = computed(() => {
const { data: ast } = await useAsyncData(`component-theme-${name}`, async () => {
const md = `
::code-collapse
\`\`\`ts [app.config.ts]
export default defineAppConfig({
ui: {
@@ -52,6 +53,8 @@ export default defineAppConfig({
})
\`\`\`\
::
${strippedCompoundVariants.value
? `
::callout{icon="i-simple-icons-github" to="https://github.com/benjamincanac/ui3/blob/dev/src/theme/${name}.ts"}