docs(comment section): add custom config

This commit is contained in:
thomas
2023-10-13 22:58:07 +02:00
parent ffba1ecf78
commit 7437914e50
6 changed files with 14 additions and 4 deletions

View File

@@ -1,7 +1,13 @@
import { defineCollection } from 'astro:content';
import { docsSchema, i18nSchema } from '@astrojs/starlight/schema';
import { defineCollection, z } from 'astro:content';
export const collections = {
docs: defineCollection({ schema: docsSchema() }),
docs: defineCollection({
schema: (ctx) =>
docsSchema()(ctx).extend({
// Add a new optional field to the schema.
noCommentSection: z.boolean().optional(),
}),
}),
i18n: defineCollection({ type: 'data', schema: i18nSchema() }),
};

View File

@@ -1,7 +1,6 @@
---
title: 🟠 Optimize Big List
description: Challenge 37 is about learning how virtualization optimize big list rendering
toto: skldfjklsdlfkj
sidebar:
order: 117
badge: New

View File

@@ -3,6 +3,7 @@ title: Angular Performance
prev: false
next: false
description: Learn how to use the Angular Devtool chrome extension.
noCommentSection: true
sidebar:
order: 1
---

View File

@@ -3,6 +3,7 @@ title: Testing
prev: false
next: false
description: Introduction to testing challenges.
noCommentSection: true
sidebar:
order: 1
---

View File

@@ -2,6 +2,7 @@
title: Welcome to Angular Challenges
description: Get started by resolving those challenges and becoming a better Angular FrontEnd engineer.
template: splash
noCommentSection: true
hero:
tagline: Start now and become an Angular Expert!
image: