[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] doc: use svg instead of png
From: |
Akim Demaille |
Subject: |
[PATCH 2/2] doc: use svg instead of png |
Date: |
Mon, 29 Apr 2019 07:59:43 +0200 |
* doc/bison.texi, doc/local.mk: here.
---
doc/bison.texi | 6 +++---
doc/local.mk | 12 ++++++------
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/doc/bison.texi b/doc/bison.texi
index 33065c54..a6cd29a1 100644
--- a/doc/bison.texi
+++ b/doc/bison.texi
@@ -9776,7 +9776,7 @@ Parser}, for a detailed analysis of the textual report.
@ifnotinfo
@float Figure,fig:graph
address@hidden/example, 430pt}
address@hidden @image{figs/example, 430pt,,,.svg}
@caption{A graphical rendering of the parser.}
@end float
@end ifnotinfo
@@ -9814,7 +9814,7 @@ State 3
A Graphviz rendering of this portion of the graph could be:
address@hidden @image{figs/example-shift, 100pt}
address@hidden @image{figs/example-shift, 100pt,,,.svg}
@subheading Graphical Representation of Reductions
@@ -9836,7 +9836,7 @@ State 1
A Graphviz rendering of this portion of the graph could be:
address@hidden @image{figs/example-reduce, 120pt}
address@hidden @image{figs/example-reduce, 120pt,,,.svg}
When unresolved conflicts are present, because in deterministic parsing
a single decision can be made, Bison can arbitrarily choose to disable a
diff --git a/doc/local.mk b/doc/local.mk
index 76859b05..c0763767 100644
--- a/doc/local.mk
+++ b/doc/local.mk
@@ -33,7 +33,7 @@ doc_bison = doc/bison
$(doc_bison).dvi: $(FIGS_GV:.gv=.eps)
$(doc_bison).info: $(FIGS_GV:.gv=.txt)
$(doc_bison).pdf: $(FIGS_GV:.gv=.pdf)
-$(doc_bison).html: $(FIGS_GV:.gv=.png)
+$(doc_bison).html: $(FIGS_GV:.gv=.svg)
TEXI2DVI = texi2dvi --build-dir=doc/bison.t2d -I doc
CLEANDIRS += doc/bison.t2d
@@ -142,14 +142,14 @@ endif
## Graphviz examples generation. ##
## ----------------------------- ##
-CLEANFILES += $(FIGS_GV:.gv=.eps) $(FIGS_GV:.gv=.pdf) $(FIGS_GV:.gv=.png)
+CLEANFILES += $(FIGS_GV:.gv=.eps) $(FIGS_GV:.gv=.pdf) $(FIGS_GV:.gv=.svg)
FIGS_GV = \
doc/figs/example.gv \
doc/figs/example-reduce.gv doc/figs/example-shift.gv
EXTRA_DIST += \
$(FIGS_GV) $(FIGS_GV:.gv=.txt) \
- $(FIGS_GV:.gv=.eps) $(FIGS_GV:.gv=.pdf) $(FIGS_GV:.gv=.png)
-SUFFIXES += .gv .eps .pdf .png
+ $(FIGS_GV:.gv=.eps) $(FIGS_GV:.gv=.pdf) $(FIGS_GV:.gv=.svg)
+SUFFIXES += .gv .eps .pdf .svg
.gv.eps:
$(AM_V_GEN) $(MKDIR_P) `echo "./$@" | sed -e 's,/[^/]*$$,,'`
@@ -161,9 +161,9 @@ SUFFIXES += .gv .eps .pdf .png
$(AM_V_at) $(DOT) -Gmargin=0 -Tpdf $< >address@hidden
$(AM_V_at) mv address@hidden $@
-.gv.png:
+.gv.svg:
$(AM_V_GEN) $(MKDIR_P) `echo "./$@" | sed -e 's,/[^/]*$$,,'`
- $(AM_V_at) $(DOT) -Gmargin=0 -Tpng $< >address@hidden
+ $(AM_V_at) $(DOT) -Gmargin=0 -Tsvg $< >address@hidden
$(AM_V_at) mv address@hidden $@
## -------------- ##
--
2.21.0