Skip to content

Commit 9436def

Browse files
committed
MAINT: Use sphobjinv to create objects.inv
1 parent 4939512 commit 9436def

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

doc/Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ for line in sys.stdin:
3131
endef
3232
export PRINT_HELP_PYSCRIPT
3333

34-
define CREATE_OBJECTS_INV
35-
import sphobjinv as soi
36-
inv = soi.Inventory(source="objects.txt")
37-
soi.writebytes("objects.inv", soi.compress(inv.data_file()))
38-
endef
39-
export CREATE_OBJECTS_INV
4034

4135
help:
4236
@$(PYTHON) -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
@@ -71,7 +65,8 @@ config: ## Configure project for quartodoc and quarto
7165

7266
docstrings: config ## Generate qmd files from the docstrings
7367
$(PYTHON) -m quartodoc build --config _quartodoc.yml
74-
@$(PYTHON) -c "$$CREATE_OBJECTS_INV"
68+
# Create a objects.inv
69+
@$(PYTHON) sphobjinv convert zlib objects.txt
7570

7671
html: docstrings ## Build html site
7772
quarto render

0 commit comments

Comments
 (0)