summaryrefslogtreecommitdiff
path: root/doc/Makefile.am
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2018-11-01 19:40:31 -0700
committerKeith Packard <keithp@keithp.com>2018-11-01 19:40:31 -0700
commite9a3268285e97b7316c3321892e77814703ff71d (patch)
tree910912b967454b169d3857335d7b06a5f26c4442 /doc/Makefile.am
parentd859a7f65baf6c5c170f14fb2d9401b5c607a254 (diff)
doc: Use icons for admonitions
This replaces the text 'WARNING' or 'NOTE' with a suitable icon instead. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'doc/Makefile.am')
-rw-r--r--doc/Makefile.am18
1 files changed, 15 insertions, 3 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index f7ba9647..404feab3 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -243,6 +243,13 @@ FONTS=\
fonts/OpenSans-Semibold.ttf \
fonts/OpenSans-SemiboldItalic.ttf
+ICONS=\
+ images/icons/caution.svg \
+ images/icons/important.svg \
+ images/icons/note.svg \
+ images/icons/tip.svg \
+ images/icons/warning.svg
+
PDF_CONFIG_FILES=altusmetrum-theme.yml
HTML_CONFIG_FILES=
@@ -287,20 +294,25 @@ install: all
WEB_ROOT=/home/bdale/web/
-publish: $(PUBLISH_DOC) $(FONTS)
- cp $(PUBLISH_DOC) $(WEB_ROOT)/altusmetrum/AltOS/doc/
+publish: $(PUBLISH_DOC) $(FONTS) $(ICONS)
+ cp -a $(PUBLISH_DOC) $(WEB_ROOT)/altusmetrum/AltOS/doc/
mkdir -p $(WEB_ROOT)/altusmetrum/AltOS/doc/fonts/
cp $(FONTS) $(WEB_ROOT)/altusmetrum/AltOS/doc/fonts/
+ mkdir -p $(WEB_ROOT)/altusmetrum/AltOS/doc/images/icons/
+ cp $(ICONS) $(WEB_ROOT)/altusmetrum/AltOS/doc/images/icons/
(cd $(WEB_ROOT)/altusmetrum ; \
git add $(WEB_ROOT)/altusmetrum/AltOS/doc/* ; \
git add $(WEB_ROOT)/altusmetrum/AltOS/doc/fonts/* ; \
+ git add $(WEB_ROOT)/altusmetrum/AltOS/doc/images/icons/* ;\
echo "update docs" | \
- git commit -F - $(WEB_ROOT)/altusmetrum/AltOS/doc/* $(WEB_ROOT)/altusmetrum/AltOS/doc/fonts/* ; \
+ git commit -F - $(WEB_ROOT)/altusmetrum/AltOS/doc/* $(WEB_ROOT)/altusmetrum/AltOS/doc/fonts/* $(WEB_ROOT)/altusmetrum/AltOS/doc/images/icons ; \
git push)
publish-keithp: am.html $(DOC) $(FONTS)
+ ssh keithp.com 'mkdir -p ~keithp/public_html/altos/fonts ~keithp/public_html/altos/images/icons'
scp -p am.html $(DOC) keithp.com:~keithp/public_html/altos
scp -p $(FONTS) keithp.com:~keithp/public_html/altos/fonts
+ scp -p $(ICONS) keithp.com:~keithp/public_html/altos/images/icons
clean:
rm -f am.html $(HTML) $(PDF) $(ADOC_FILES) $(TELEGPS_ADOC_FILES) $(MICROPEAK_ADOC_FILES)