refactor docs with sphinx