mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-14 08:42:31 +02:00
refactor(v2): include path in error about non-existent ids (#4969)
This commit is contained in:
parent
737f80a026
commit
e25c0e7d3f
3 changed files with 8 additions and 5 deletions
|
@ -189,7 +189,10 @@ export default function pluginContentDocs(
|
|||
const sidebarsUtils = createSidebarsUtils(sidebars);
|
||||
|
||||
const validDocIds = Object.keys(docsBaseById);
|
||||
sidebarsUtils.checkSidebarsDocIds(validDocIds);
|
||||
sidebarsUtils.checkSidebarsDocIds(
|
||||
validDocIds,
|
||||
versionMetadata.sidebarFilePath as string,
|
||||
);
|
||||
|
||||
// Add sidebar/next/previous to the docs
|
||||
function addNavData(doc: DocMetadataBase): DocMetadata {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue