First, let me say Robert did not really answer your question (and I don't mean the fact he only used the comment sections):
The comment to your first bullet point gives just a starter for an idea of one possible solution, but I would not call this an answer.
The comment to your second bullet point tells you very clearly why this part of the question is ...
Thanks for taking this constructive. I would recommend to start with clarifying the problem statement. You wrote
I'd like to publish it somehow
which is IMHO very ambigous. Do you want to publish it as Open Source on Github? Just inside your team to another team member? Inside your own project as a library which can be reused by another project? ...
It was the first paragraph that caught my attention.
I thought this was okay, could have been a little more specific about what documentation was being asked for, but it sounded good:
I once was on a project where a non-tech manager had the team spending
half of every hour documenting what they just did so that someone with
zero understanding of the ...