mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-04 12:47:14 +02:00
wip
This commit is contained in:
parent
6b83e2d153
commit
c3f32ab781
3 changed files with 5 additions and 5 deletions
|
@ -29,8 +29,8 @@ export function validateFrontMatterTags(
|
|||
): void {
|
||||
const result = tagListSchema.validate(frontMatterTags);
|
||||
if (result.error) {
|
||||
throw new Error(
|
||||
`Front matter contains invalid tags: ${result.error.message}`,
|
||||
);
|
||||
throw new Error(`Front matter contains invalid tags`, {
|
||||
cause: result.error,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -131,7 +131,7 @@ export default function pluginContentShowcase(
|
|||
} catch (err) {
|
||||
throw new Error(
|
||||
`Processing of page source file path=${relativeSource} failed.`,
|
||||
{cause: err as Error},
|
||||
{cause: err},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -239,7 +239,7 @@ export default async function createConfigAsync() {
|
|||
],
|
||||
themes: ['live-codeblock', ...dogfoodingThemeInstances],
|
||||
plugins: [
|
||||
'content-showcase',
|
||||
['content-showcase', {}],
|
||||
[
|
||||
'./src/plugins/changelog/index.js',
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue