mirror of
https://github.com/Start9Labs/documentation.git
synced 2026-03-26 02:11:55 +00:00
update setup to remove need to build theme, clean up readme, bump pyyaml dep (#555)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user