You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduced with version 1.0.3 the typedoc-sidebar.cjs is generated with \\ in the path resulting in an error "sidebar document ids do not exist". With version 1.0.2 everything works fine.
Details
We are using the docusaurus-plugin-typedoc to generate markdown documentation from source. This also automatically generates a typedoc-sidebar.cjs.
Although the sidebar file is created, the build fails after that with the error:
[ERROR] Error: Invalid sidebar file at "config/sidebars.js".
These sidebar document ids do not exist:
api-references\viewer/variables/emitter
Available document ids are:
README
api-references/viewer/globals
api-references/viewer/index
api-references/viewer/variables/emitter
at Object.checkSidebarsDocIds (C:\Dev\viewer\node_modules@docusaurus\plugin-content-docs\lib\sidebars\utils.js:181:19)
at addDocNavigation (C:\Dev\viewer\node_modules@docusaurus\plugin-content-docs\lib\docs.js:206:19)
at doLoadVersion (C:\Dev\viewer\node_modules@docusaurus\plugin-content-docs\lib\index.js:106:55)
at async loadVersion (C:\Dev\viewer\node_modules@docusaurus\plugin-content-docs\lib\index.js:113:28)
at async Promise.all (index 0)
at async Object.loadContent (C:\Dev\viewer\node_modules@docusaurus\plugin-content-docs\lib\index.js:121:33)
at async C:\Dev\viewer\node_modules@docusaurus\core\lib\server\plugins\index.js:35:25
at async Promise.all (index 0)
at async loadPlugins (C:\Dev\viewer\node_modules@docusaurus\core\lib\server\plugins\index.js:34:27)
at async load (C:\Dev\viewer\node_modules@docusaurus\core\lib\server\index.js:76:58)
Note that the id is otherwise correct, just the / vs. \ after api-references is different.
Reverting docusaurus-plugin-typedoc to 1.0.2 in package-json resolves the issue.
Please let me know if the description is not enough and you need more information.
Page ids generated in typedoc-sidebar.cjs should be valid and match existing ids. They should not contain backward slashes when ids are otherwise only containing forward slashes.
The text was updated successfully, but these errors were encountered:
What package is the bug related to?
docusaurus-plugin-typedoc
Describe the issue
Summary
Introduced with version 1.0.3 the
typedoc-sidebar.cjs
is generated with\\
in the path resulting in an error "sidebar document ids do not exist". With version 1.0.2 everything works fine.Details
We are using the docusaurus-plugin-typedoc to generate markdown documentation from source. This also automatically generates a
typedoc-sidebar.cjs
.With version 1.0.2 the sidebar looked like this:
With version 1.0.3 the sidebar ids contain
\\
:Although the sidebar file is created, the build fails after that with the error:
Note that the id is otherwise correct, just the
/
vs.\
afterapi-references
is different.Reverting docusaurus-plugin-typedoc to 1.0.2 in package-json resolves the issue.
Please let me know if the description is not enough and you need more information.
TypeDoc configuration
snippet from site-config.js
Expected behavior
Page ids generated in
typedoc-sidebar.cjs
should be valid and match existing ids. They should not contain backward slashes when ids are otherwise only containing forward slashes.The text was updated successfully, but these errors were encountered: