mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-16 18:46:57 +02:00
feat(v2): editUrl functions should receive md doc permalink (#4232)
This commit is contained in:
parent
2ff5d347ba
commit
ae988d0eb9
8 changed files with 79 additions and 63 deletions
packages/docusaurus-plugin-content-docs/src/__tests__
|
@ -321,6 +321,7 @@ describe('simple site', () => {
|
|||
version: 'current',
|
||||
versionDocsDirPath: 'docs',
|
||||
docPath: path.posix.join('foo', 'baz.md'),
|
||||
permalink: '/docs/foo/bazSlug.html',
|
||||
locale: 'en',
|
||||
});
|
||||
});
|
||||
|
@ -672,6 +673,7 @@ describe('versioned site', () => {
|
|||
version: '1.0.0',
|
||||
versionDocsDirPath: 'versioned_docs/version-1.0.0',
|
||||
docPath: path.join('hello.md'),
|
||||
permalink: '/docs/1.0.0/hello',
|
||||
locale: 'en',
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue