mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-17 02:02:38 +02:00
feat(blog): warn duplicate and inline authors (#10224)
Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com> Co-authored-by: sebastien <lorber.sebastien@gmail.com>
This commit is contained in:
parent
1405b25fc7
commit
de59621fbb
16 changed files with 299 additions and 21 deletions
|
@ -30,6 +30,7 @@ import {
|
|||
import {getTagsFile} from '@docusaurus/utils-validation';
|
||||
import {validateBlogPostFrontMatter} from './frontMatter';
|
||||
import {type AuthorsMap, getAuthorsMap, getBlogPostAuthors} from './authors';
|
||||
import {reportAuthorsProblems} from './authorsProblems';
|
||||
import type {TagsFile} from '@docusaurus/utils';
|
||||
import type {LoadContext, ParseFrontMatter} from '@docusaurus/types';
|
||||
import type {
|
||||
|
@ -317,7 +318,13 @@ async function processBlogSourceFile(
|
|||
routeBasePath,
|
||||
tagsRouteBasePath,
|
||||
]);
|
||||
|
||||
const authors = getBlogPostAuthors({authorsMap, frontMatter, baseUrl});
|
||||
reportAuthorsProblems({
|
||||
authors,
|
||||
blogSourceRelative,
|
||||
options,
|
||||
});
|
||||
|
||||
const tags = normalizeTags({
|
||||
options,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue