aleen42 / gitbook-treeview

:evergreen_tree: A gitbook plugin for generating tree view for ech page

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Two improve suggestions

skyao opened this issue · comments

Thank you for this great plugin, this is just I want :)

Yet I still have two suggestions:

  1. Can we close or don't display the line of "copyright"? For example, add a simple logic, check if copyright is set to empty (like "copyright": "") then we don't display this line.
  2. For some small pages, the content is short, it won't require a treeview. So can we add two configure parameters: { "minHeaderCount": 5, "minHeaderDeep": 3} , so the only when count of header is greater than 5 or deep of header is greater than 3 that we will generate the treeview.

Then I think this plugin is more suitable to use.

commented

Well, I see. Thanks for your suggestions, and I'm a little busy recently. Would you mind directly making a change above my code, and giving a pull request? If do, I will change it for you soon or later.

commented

Just wait for a moment, I will release one new version for this issue.

commented

@skyao Hello, check the latest version 2.6.5!!