Skip to content

Commit

Permalink
Changed docs Makefile to use Poetry.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbywater committed Nov 7, 2024
1 parent 3c6b34d commit ba3b2c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Minimal makefile for Sphinx documentation
#

POETRY ?= poetry

# You can set these variables from the command line, and also
# from the environment for the first two.
SPHINXOPTS ?=
Expand All @@ -10,11 +12,11 @@ BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
$(POETRY) run $(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
$(POETRY) run $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

0 comments on commit ba3b2c1

Please sign in to comment.