integrant

2021-09-08T17:25:12.001500Z

Are there any libraries or utilities for documenting your integrant keys? Unfortunately you can’t add docstrings or metadata to defmethods, so curious if other people have solved this problem somehow.

2021-09-08T17:35:39.001900Z

comments in your config edn maybe?

2021-09-08T17:55:40.002400Z

Hoping for it to be data so we can use it for other things (like building documentation).

👍 1
2021-09-08T17:59:00.003900Z

When creating rules with odoyle I just made an atom which had a map from keys to docstrings and made an extra doc function for getting them.

2021-09-08T19:47:38.004800Z

^ this is what we were considering, just wanted to verify a solution didn’t already exist.

2021-09-08T21:00:09.005900Z

Yeah, I'm not aware of one. Although I think that an nrepl middleware could be designed that would take a message to register a new doc handler that will call a different documentation function specified by the user's code.

2021-09-08T21:00:28.006300Z

It could provide a general facility for editor integration with arbitrary documentation registries.