Docs: CAPI. fix format and port to LDoc syntax

Signed-off-by: Ignas Anikevicius (gns_ank) <anikevicius@gmail.com>
Docs: Another stab at gears

Signed-off-by: Ignas Anikevicius (gns_ank) <anikevicius@gmail.com>
Add a doc-builder script.

This is for building the documentation locally and commiting it to
another branch in order to update the mock website.

Signed-off-by: Ignas Anikevicius (gns_ank) <anikevicius@gmail.com>