Recently I’ve integrated a tutorial on how to write an addon into blenders documentation.
This goes through from basics to taking an existing script, adding menu and keymap item and explains whats going on.
It also became clear to me that a lot the ways I often find out info when writing scripts are not obvious and needed to be explained.
Thanks to John Nyquist for editing/feedback and Sebastian König who made me realize how non-obvious this stuff is
Feedback welcome, if you want to make improvements the sources are here.