Generate docs correctly from any dir