rdoc: cleanup and stop depending on :enddoc: