tpb1908/AndroidProjectsClient

Project documentation generation

Closed this issue · 5 comments

I was looking for a way to include code in the project documentation without the need to update it so I created a small script that allows you to import files into markdown using #import "path/to/file". I added a pre-commit hook to generate the markdown file and a link to gitprint to create a pdf.

Just thought it might be usefull to you considering the amount of code you will have!

Thanks. I might add imports for methods.

What are you using for markdown editing?

Just vscode.

Are you planning to document each method separately then?

No, but some classes (e.g. networking or utilities) don't make much sense to document all at once as they are used project wide and aren't dependent on anything else.

That makes sense, shouldn't be to hard to do.

I added filetypes for highlighting.
https://gist.github.com/tpb1908/2e5b2eb2be50cdc95ed258d1dcad2b00

Functions are now hacked on. They work so long as you make sure to specify the full name, and you don't happen to have any strings containing '{' or '}'.
Doesn't work for abstract methods or interfaces.