Skip to content

Commit 14d6942

Browse files
committed
add logo building to Makefile
1 parent 37491ca commit 14d6942

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docs/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,14 @@ help:
1414

1515
.PHONY: help Makefile
1616

17+
source/_static/logo_docs.png: logo.py
18+
python logo.py
19+
20+
# Fake target to avoid the catch-all target
21+
logo.py:
22+
@echo "never executed"
23+
1724
# Catch-all target: route all unknown targets to Sphinx using the new
1825
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
19-
%: Makefile
26+
%: Makefile source/_static/logo_docs.png
2027
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

docs/logo.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
import os
2+
import sys
3+
4+
sys.path.insert(0, os.path.abspath('..')) # to get adaptive on the path
5+
16
import adaptive
27
import holoviews
38
import matplotlib.pyplot as plt

0 commit comments

Comments
 (0)