diff --git a/doc/api/_images/Makefile b/doc/api/_images/Makefile index cf15c72..5847dd3 100755 --- a/doc/api/_images/Makefile +++ b/doc/api/_images/Makefile @@ -2,8 +2,9 @@ SRC_DIR = . OUT_DIR = ../images +POSTFIX := _label SVG := $(wildcard $(SRC_DIR)/*.svg) -PNG := $(patsubst $(SRC_DIR)/%.svg,$(OUT_DIR)/%.png,$(SVG)) +PNG := $(patsubst $(SRC_DIR)/%.svg,$(OUT_DIR)/%$(POSTFIX).png,$(SVG)) DIR := ${CURDIR} all: $(PNG) @@ -11,5 +12,5 @@ all: $(PNG) clean: rm -f $(PNG) -$(OUT_DIR)/%.png: $(SRC_DIR)/%.svg +$(OUT_DIR)/%$(POSTFIX).png: $(SRC_DIR)/%.svg inkscape --file=$(DIR)/$< --export-area-drawing --export-png=$(DIR)/$@ diff --git a/doc/api/images/.gitignore b/doc/api/images/.gitignore index 8ab8387..cb2d9fb 100644 --- a/doc/api/images/.gitignore +++ b/doc/api/images/.gitignore @@ -1,3 +1 @@ -*.png -!pybricks-logo-large.png -!pybricks-logo-small.png +*_label.png diff --git a/doc/api/startinstall.rst b/doc/api/startinstall.rst index d80ceff..173531c 100644 --- a/doc/api/startinstall.rst +++ b/doc/api/startinstall.rst @@ -5,7 +5,7 @@ See :numref:`fig_newproject`. .. _fig_newproject: -.. figure:: images/newproject.png +.. figure:: images/newproject_label.png :width: 90 % :alt: newproject :align: center