Closed Mat4m0 closed 1 year ago
Automate the workflow for sidebar creation based on the first folders in Obsidian "docs" Directory.
Changes to sidebar.js:
const sidebars = { A: [{type: 'autogenerated', dirName: 'A'}], X: [{type: 'autogenerated', dirName: 'X'}], ...
docusaurus.config.js:
const config = { themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ ({ navbar: { items: [ { type: 'doc', docId: 'A/a', position: 'left', label: 'a', }, { type: 'doc', docId: 'X/x', position: 'left', label: 'x', }, {to: '/blog', label: 'Blog', position: 'left'}, { type: 'localeDropdown', position: 'right', }, ], }, module.exports = config;
Better not play around with Docusaurus config files
Description
Automate the workflow for sidebar creation based on the first folders in Obsidian "docs" Directory.
Changes to sidebar.js:
docusaurus.config.js: