This commit is contained in:
ozakione 2024-04-01 15:46:51 +02:00
parent 6b83e2d153
commit c3f32ab781
3 changed files with 5 additions and 5 deletions

View file

@ -29,8 +29,8 @@ export function validateFrontMatterTags(
): void { ): void {
const result = tagListSchema.validate(frontMatterTags); const result = tagListSchema.validate(frontMatterTags);
if (result.error) { if (result.error) {
throw new Error( throw new Error(`Front matter contains invalid tags`, {
`Front matter contains invalid tags: ${result.error.message}`, cause: result.error,
); });
} }
} }

View file

@ -131,7 +131,7 @@ export default function pluginContentShowcase(
} catch (err) { } catch (err) {
throw new Error( throw new Error(
`Processing of page source file path=${relativeSource} failed.`, `Processing of page source file path=${relativeSource} failed.`,
{cause: err as Error}, {cause: err},
); );
} }
} }

View file

@ -239,7 +239,7 @@ export default async function createConfigAsync() {
], ],
themes: ['live-codeblock', ...dogfoodingThemeInstances], themes: ['live-codeblock', ...dogfoodingThemeInstances],
plugins: [ plugins: [
'content-showcase', ['content-showcase', {}],
[ [
'./src/plugins/changelog/index.js', './src/plugins/changelog/index.js',
{ {