mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
config: ignore only generated images
Make sure we can add other images without doing special things.
This commit is contained in:
@@ -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)/$@
|
||||
|
||||
@@ -1,3 +1 @@
|
||||
*.png
|
||||
!pybricks-logo-large.png
|
||||
!pybricks-logo-small.png
|
||||
*_label.png
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user