Skip to content

Commit

Permalink
minor change to building config
Browse files Browse the repository at this point in the history
  • Loading branch information
voorhs committed Nov 17, 2024
1 parent c296a6f commit 73bdcbb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
22 changes: 8 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
$(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
10 changes: 10 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 73bdcbb

Please sign in to comment.