Document the graphviz stuff for my own benefit

So that I don't have to look it up and figure out what I did to get them
to work the last time.
This commit is contained in:
Carol (Nichols || Goulding)
2016-11-10 17:59:12 -05:00
parent 7d41f6caa3
commit a08e7fab8f
+16
View File
@@ -75,3 +75,19 @@ the word doc as markdown in order to backport changes to the online book:
1. Save as Microsoft Word 2007-2013 XML (.docx) in the *tmp* directory 1. Save as Microsoft Word 2007-2013 XML (.docx) in the *tmp* directory
1. Run `./doc-to-md.sh` 1. Run `./doc-to-md.sh`
1. Inspect changes made to the markdown file in the *nostarch* directory and copy the changes to the *src* directory as appropriate. 1. Inspect changes made to the markdown file in the *nostarch* directory and copy the changes to the *src* directory as appropriate.
## Graphviz dot
This is mostly for Carol's reference because she keeps having to look it up.
We're using [Graphviz](http://graphviz.org/) for some of the diagrams in the
book. The source for those files live in the `dot` directory. To turn a `dot`
file, for example, `dot/trpl04-01.dot` into an `svg`, run:
```
$ dot dot/trpl04-01.dot -Tsvg > src/img/trpl04-01.svg
```
In the generated SVG, remove the width and the height attributes from the `svg`
element and set the `viewBox` attribute to `0.00 0.00 1000.00 1000.00` or other
values that don't cut off the image.