update setup to remove need to build theme, clean up readme, bump pyyaml dep (#555)

This commit is contained in:
Lucy
2023-12-06 16:16:47 -05:00
committed by GitHub
parent 93a480815e
commit d6eb2a1f4e
5 changed files with 259 additions and 273 deletions

View File

@@ -28,7 +28,6 @@ clean:
.PHONY: preview
preview:
npm --prefix ../sphinx-scylladb-theme run build
$(POETRY) run sphinx-autobuild -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml --port 5500
.PHONY: dirhtml
@@ -55,7 +54,6 @@ linkcheck: setup
.PHONY: multiversion
multiversion:
npm --prefix ../sphinx-scylladb-theme run build
git diff --quiet || >&2 echo "\033[31;1;4mWARNING: Uncommitted changes will not be included in ./_build\033[0m"
@mkdir -p $(HOME)/.cache/pypoetry/virtualenvs
$(POETRY) run sphinx-multiversion source $(BUILDDIR)/dirhtml
@@ -64,5 +62,4 @@ multiversion:
.PHONY: multiversionpreview
multiversionpreview: multiversion
npm --prefix ../sphinx-scylladb-theme run build
$(POETRY) run python3 -m http.server 5500 --directory $(BUILDDIR)/dirhtml

View File

@@ -1,11 +0,0 @@
#! /bin/bash
if pwd | egrep -q '\s'; then
echo "Working directory name contains one or more spaces."
exit 1
fi
which python3 || { echo "Failed to find python3. Try installing Python for your operative system: https://www.python.org/downloads/" && exit 1; }
which poetry || curl -sSL https://install.python-poetry.org | python3 -
poetry install