From 741af5280a5e263d549fa562f62d1c81c31606d4 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Wed, 29 Jan 2020 12:57:03 +0100 Subject: [PATCH] config: ignore only generated images Make sure we can add other images without doing special things. --- doc/api/_images/Makefile | 5 +++-- doc/api/images/.gitignore | 4 +--- doc/api/startinstall.rst | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) 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