mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-26 13:08:58 +02:00
feat(docs, blog): add support for tags.yml
, predefined list of tags (#10137)
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com> Co-authored-by: OzakIOne <OzakIOne@users.noreply.github.com> Co-authored-by: sebastien <lorber.sebastien@gmail.com> Co-authored-by: slorber <slorber@users.noreply.github.com>
This commit is contained in:
parent
1049294ba6
commit
0eb7b64aac
63 changed files with 2597 additions and 722 deletions
|
@ -20,6 +20,7 @@ import {
|
|||
DEFAULT_PLUGIN_ID,
|
||||
resolveMarkdownLinkPathname,
|
||||
} from '@docusaurus/utils';
|
||||
import {getTagsFilePathsToWatch} from '@docusaurus/utils-validation';
|
||||
import {
|
||||
getSourceToPermalink,
|
||||
getBlogTags,
|
||||
|
@ -104,9 +105,16 @@ export default async function pluginContentBlog(
|
|||
(contentPath) => include.map((pattern) => `${contentPath}/${pattern}`),
|
||||
);
|
||||
|
||||
return [authorsMapFilePath, ...contentMarkdownGlobs].filter(
|
||||
Boolean,
|
||||
) as string[];
|
||||
const tagsFilePaths = getTagsFilePathsToWatch({
|
||||
contentPaths,
|
||||
tags: options.tags,
|
||||
});
|
||||
|
||||
return [
|
||||
authorsMapFilePath,
|
||||
...tagsFilePaths,
|
||||
...contentMarkdownGlobs,
|
||||
].filter(Boolean) as string[];
|
||||
},
|
||||
|
||||
getTranslationFiles() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue