I have played with the RPC documents and I found out that while the format looks crazy, with some changes, it can be made easily parseable and I actually wrote a parser for that.
I have wrote a proposal for a unified format, that requires minimal changes to the current docs (mostly whitespace), and a parser in go
The proposal is here
https://gist.github.com/karel-3d/1490786786525b0365ea8f459a9fc683
The parser in go is here
https://github.com/karel-3d/bitcoincore.org/blob/formatted_doc/contrib/doc-gen/convert.go
(I found off-by-one error; the first example always has a description “Examples:”, please ignore that)
The changes needed in bitcoin core are here
https://github.com/karel-3d/bitcoin/commit/45d2c866b536b30b09b658d8b954c4a7bc820405
And the result is generated here
https://bitcoin-rpc.github.io/en/doc/0.17.99/rpc/wallet/sendmany/ (the repo here https://github.com/bitcoin-rpc/bitcoin-rpc.github.io but it’s just the _site from the jekyll)
I want to first hear some general notes before posting a PR.