refactor: Doc generation refactor structure