Skip to content

Commit

Permalink
Edited Makefile to use poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
willtai committed May 20, 2024
1 parent 585cdcd commit 20d2073
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
VERSION = 0.1.2
PRODUCT = neo4j-genai-python
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXBUILD = poetry run sphinx-build
PAPER =
BUILDDIR = build

# User-friendly check for sphinx-build
ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1)
$(error The '$(SPHINXBUILD)' command was not found. Make sure you have Sphinx installed, then set the SPHINXBUILD environment variable to point to the full path of the '$(SPHINXBUILD)' executable. Alternatively you can add the directory with the executable to your PATH. If you don't have Sphinx installed, grab it from https://www.sphinx-doc.org/)
# User-friendly check for sphinx-build via Poetry
ifeq ($(shell poetry run which sphinx-build >/dev/null 2>&1; echo $$?), 1)
$(error The 'sphinx-build' command was not found within the Poetry environment. Make sure Sphinx is installed in your project dependencies.)
endif

# Internal variables.
Expand Down

0 comments on commit 20d2073

Please sign in to comment.