Collection
A collection page list all collection videos available in the project for a specific collection.
Create a collection page
Section titled “Create a collection page”To transform a documentation page into a collection page, add the video frontmatter field to a Markdown or MDX page with the type set to collection and at least a collection to define the collection.
---title: My video coursevideo: type: collection collection: course---Any Markdown or MDX content will be displayed alongside the collection videos allowing you to provide additional information related to the collection you want to share with your users.
Frontmatter fields
Section titled “Frontmatter fields”The video frontmatter field supports the following fields when the type is set to collection:
collection
Section titled “collection”required
type: string
The name of the collection for which to display the collection videos.
The collection name must match the collection name defined in the collection field of all collection videos related to that collection.
---video: collection: course---description
Section titled “description”type: number | string
An optional description of the collection that will be displayed in collections pages listing all collections.
When not provided, the Starlight description frontmatter field will be used if present.
---video: description: A concise description of the collection to display in the collections page.---type: Date
The optional publication date of the collection which must be a valid YAML timestamp. In collections pages listing all collections, collections will be sorted by publication date and then by title.
---video: date: 2024-12-31---