dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.68k stars 252 forks source link

sidebar publishing `category` id requirement #3879

Open robproject opened 1 year ago

robproject commented 1 year ago

Please select the area your bug applies to. (Multiple selections are Possible. You can leave blank if you're not sure.)

Describe the bug

Sidebar object documentation shows a 'category' type (labeled 'Getting Started') with no link key. This led me to believe links aren't required for categories, which seems to be incorrect as attempting to publish without a link value or key & value results in an error upon npx dendron publish dev saying Invalid input.

To Reproduce

Using a custom sidebar like this where there is no link key in the first dict, run npx dendron publish dev

Steps to reproduce the behavior: Create a custom sidebar.js file, add its path in dendron.yml, create a category without a link in the js file, and try publishing.

Expected behavior

Dendron publishes correctly resulting in an arbitrary category with no link functionality when clicked.

Desktop (please complete the following information)

Dendron Log file

Please attach the output of > Dendron:Dev: Open Logs here