We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to generate new documentations headers with custom and or automated sidebars
./Testing intro.md
sidebars.js --> testSidebars.js
update the sidebar Id appropriatly (line 18), remove line 21 it is not required
testSidebar: [{type: 'autogenerated', dirName: '.'}],
plugins: [ [ '@docusaurus/plugin-content-docs', { id: 'test', path: 'Testing', routeBasePath: 'Testing', sidebarPath: require.resolve('./testSidebars.js'), }, ], ],
{to: '/Testing/intro', label: 'Test', position: 'left'},
The text was updated successfully, but these errors were encountered:
src > theme
create a MDXComponents.ts or js use the folllowing as reference (this is a ts file)
import type {ComponentType} from 'react'; import MDXComponents from '@theme-original/MDXComponents'; import H5P from '@site/src/components/H5P'; import H5PLink from '@site/src/components/H5PLink'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; const components: typeof MDXComponents & { H5P: ComponentType<any>; H5PLink: ComponentType<any>; } = { ...MDXComponents, H5P, H5PLink, Tabs, TabItem, }; export default components;
Sorry, something went wrong.
No branches or pull requests
Summary
How to generate new documentations headers with custom and or automated sidebars
Create a new folder with content
copy the sidebar.js file at the root, rename it appropriatly,
sidebars.js --> testSidebars.js
update the sidebar Id appropriatly (line 18), remove line 21 it is not required
Go to your docusaur config
The text was updated successfully, but these errors were encountered: