diff --git a/Makefile b/Makefile index 1087b38..1321f2b 100644 --- a/Makefile +++ b/Makefile @@ -22,22 +22,16 @@ lint: $(poetry) ruff format $(poetry) ruff check --fix -.PHONY: docs -docs: - cd docs && make html - -.PHONY: serve-docs -serve-docs: - cd docs/_build/html && $(poetry) python -m http.server - -.PHONY: all -all: lint - .PHONY: sync sync: poetry install --sync --with dev,test,lint,typing,docs -.PHONY: docs-serve -docs-serve: +.PHONY: docs +docs: $(poetry) sphinx-apidoc -e -E -f --remove-old -o docs/source/apiref autointent - $(poetry) sphinx-autobuild docs/source docs/build/html --port 8333 \ No newline at end of file + $(poetry) python -m sphinx build docs/source docs/build/html + +.PHONY: serve-docs +serve-docs: + make docs + $(poetry) python -m http.server -d docs/build/html 8333 \ No newline at end of file diff --git a/docs/source/conf.py b/docs/source/conf.py index ccb913d..581f0f6 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -34,6 +34,16 @@ html_static_path = ["_static"] +autodoc_default_options = { + "members": True, + "undoc-members": False, + "private-members": True, + # "special-members": "__call__", + "member-order": "bysource", + # "exclude-members": "_abc_impl, model_fields, model_computed_fields, model_config", +} + + def setup(_) -> None: # noqa: ANN001 regenerate_apiref( [ diff --git a/pyproject.toml b/pyproject.toml index 362f3d0..15050e8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,6 @@ optional = true [tool.poetry.group.docs.dependencies] sphinx = "^8.1.3" -sphinx-autobuild = "^2024.10.3" [tool.poetry.scripts] "autointent" = "autointent.pipeline.optimization.cli_endpoint:main"