Massive-Wiki / massivewikibuilder

Massive Wiki Builder
MIT License
3 stars 3 forks source link

Need to suppress some files in search output #39

Open peterkaminski opened 2 years ago

peterkaminski commented 2 years ago

Using MWB v2.0.0, with a Sidebar.md file and --lunr search enabled, Sidebar is one of the pages that can be found using search.

CleanShot 2022-07-30 at 18 24 00@2x

Some pages, such as Sidebar (and perhaps other pages in the future) should be excluded from search.

To satisfy this ticket to first level, suppress the configured sidebar page in search output, similar to the way MWB does it:

https://github.com/peterkaminski/massivewikibuilder/blob/6f328a4106f4aa5a12702a83f4ad235192e2c2b1/mwb.py#L230-L231

To satisfy this ticket to a higher level, implement some kind of blacklist of pages to suppress in mwb.yaml (not just the sidebar), and use that to suppress the sidebar by default.