doc: move files out of api dir

Effectively undoes 33747c74abf74d0d31c3a47d2562afa33c63bd2d. More clear
not to intermix source files and generated api/ directory. For
instance, rsync ends up copying links instead of the target of the
link, which was not the intended behavior.