mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-23 19:48:54 +02:00
feat(v2): Provide docs plugin typing (#3328)
This commit is contained in:
parent
b86806460c
commit
d299b99631
10 changed files with 125 additions and 35 deletions
|
@ -20,7 +20,7 @@ export default function getSlug({
|
|||
baseID: string;
|
||||
frontmatterSlug?: string;
|
||||
dirName: string;
|
||||
}) {
|
||||
}): string {
|
||||
const baseSlug: string = frontmatterSlug || baseID;
|
||||
let slug: string;
|
||||
if (baseSlug.startsWith('/')) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue