mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 23:57:22 +02:00
refactor(content-{blog,docs}): unify handling of tags (#7117)
This commit is contained in:
parent
ca718ccac0
commit
1156be3f20
24 changed files with 170 additions and 178 deletions
|
@ -56,7 +56,6 @@ export {
|
|||
buildSshUrl,
|
||||
} from './urlUtils';
|
||||
export {
|
||||
type Tag,
|
||||
type FrontMatterTag,
|
||||
normalizeFrontMatterTags,
|
||||
groupTaggedItems,
|
||||
|
|
|
@ -7,12 +7,7 @@
|
|||
|
||||
import _ from 'lodash';
|
||||
import {normalizeUrl} from './urlUtils';
|
||||
|
||||
export type Tag = {
|
||||
label: string;
|
||||
/** Permalink to this tag's page, without the `/tags/` base path. */
|
||||
permalink: string;
|
||||
};
|
||||
import type {Tag} from '@docusaurus/types';
|
||||
|
||||
export type FrontMatterTag = string | Tag;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue