publish-org-roam-ui
publish-org-roam-ui copied to clipboard
[feature request] tag filtering in generate_graphdata.js
I think we can add some SQL to filter out some tags. This can prevent some nodes from being published, like personal projects, medical/health records and such.
A proposed solution is to
- have a list of filtered tags, probably in an json array such as
{"tag-filtered":["private"]}
, stored in a file in the repo likeconfig.json
. - Said array would be read by
generate_graphdata.js
, and turned into a SQL filter clause to be inserted in a format function call to assemble some SQL query string now exist ingenerate_graphdata.js
. Or else, depend on how tag filtering works in org-roam's sql database schema
Then as following site generation is based on graphdata.json, there should be no appearance of the filtered node whatsoever.
I have forgotten my SQL but I think it will be a quick one. I can work on it but it will be a while before I can make some time up for it.