Skip to content

Commit 4939512

Browse files
committed
DOC: Get qrenderer stylsheets from the package
1 parent c66b1a8 commit 4939512

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,4 @@ benchmarks
8686

8787
# version file generated by setuptools-scm
8888
plotnine/_version.py
89+
doc/qrenderer.scss

doc/Makefile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@ soi.writebytes("objects.inv", soi.compress(inv.data_file()))
3838
endef
3939
export CREATE_OBJECTS_INV
4040

41-
QRENDERER_STYLE_FILE=qrenderer.scss
42-
QRENDERER_STYLE_URL=https://raw.githubusercontent.com/has2k1/qrenderer/main/doc/qrenderer.scss
43-
4441
help:
4542
@$(PYTHON) -c "$$PRINT_HELP_PYSCRIPT" < $(MAKEFILE_LIST)
4643

@@ -57,17 +54,14 @@ clean: ## Remove build artefacts
5754
readme-images:
5855
cd images; $(PYTHON) readme_images.py
5956

60-
download_qrenderer_style: ## Download qrenderer stylesheet
61-
@if [ ! -f $(QRENDERER_STYLE_FILE) ]; then \
62-
echo "Downloading $(QRENDERER_STYLE_FILE)"; \
63-
wget $(QRENDERER_STYLE_URL) -O $(QRENDERER_STYLE_FILE); \
64-
fi
57+
install-stylesheets: ## Install qrenderer stylesheet(s)
58+
$(PYTHON) -m qrenderer.stylesheets.install $(CURDIR)
6559

6660
extensions: ## Install quarto/pandoc extensions
6761
quarto add --no-prompt has2k1/issuey
6862
quarto add --no-prompt has2k1/interlinks
6963

70-
dependencies: extensions download_qrenderer_style ## Install build dependencies
64+
dependencies: extensions install-stylesheets ## Install build dependencies
7165

7266
interlinks: ## Gather interlinks
7367
$(PYTHON) -m quartodoc interlinks
@@ -79,7 +73,7 @@ docstrings: config ## Generate qmd files from the docstrings
7973
$(PYTHON) -m quartodoc build --config _quartodoc.yml
8074
@$(PYTHON) -c "$$CREATE_OBJECTS_INV"
8175

82-
html: docstrings download_qrenderer_style ## Build html site
76+
html: docstrings ## Build html site
8377
quarto render
8478

8579
doc: clean interlinks html ## Build html documentation from a clean slate

0 commit comments

Comments
 (0)