Skip to content

Commit

Permalink
Fix display of SVG output examples in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dmullis authored and dmullis committed Jul 31, 2024
1 parent 3d21ee6 commit 177de93
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 24 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ GoAT's [README.md](README.md), then finally rendered to HTML ```<img>``` element
```
![](//examples/trees.svg)
![](/examples/trees.svg)

### Trees -- mid-range color value
Setting a foreground color in the middle of the possible range of value or luminance
Expand All @@ -99,7 +99,7 @@ CSS property by
from within an enclosing `<img>` element such as are generated by Markdown.


![](//trees.mid-blue.svg)
![](/trees.mid-blue.svg)

### Overlaps
```
Expand All @@ -113,7 +113,7 @@ from within an enclosing `<img>` element such as are generated by Markdown.
'-' '-' '-' '-' '-' '-'
```
![](//examples/overlaps.svg)
![](/examples/overlaps.svg)

### Line Decorations
```
Expand All @@ -126,7 +126,7 @@ from within an enclosing `<img>` element such as are generated by Markdown.
/\ *---------------'
```
![](//examples/line-decorations.svg)
![](/examples/line-decorations.svg)

### Line Ends
```
Expand All @@ -143,7 +143,7 @@ from within an enclosing `<img>` element such as are generated by Markdown.
```
![](//examples/line-ends.svg)
![](/examples/line-ends.svg)

### Dot Grids
```
Expand All @@ -157,7 +157,7 @@ from within an enclosing `<img>` element such as are generated by Markdown.
```
Note that '·' above is not ASCII, but rather Unicode, the MIDDLE DOT character, encoded with UTF-8.
![](//examples/dot-grids.svg)
![](/examples/dot-grids.svg)

### Large Nodes
```
Expand All @@ -172,7 +172,7 @@ Note that '·' above is not ASCII, but rather Unicode, the MIDDLE DOT character,
'-' '---' '-' '---' '-' '-' '---'
```
![](//examples/large-nodes.svg)
![](/examples/large-nodes.svg)

### Small Grids
```
Expand Down Expand Up @@ -211,7 +211,7 @@ Not Supported:
0123434567890123456 |
```
![](//examples/small-grids.svg)
![](/examples/small-grids.svg)

### Big Grids
```
Expand All @@ -229,7 +229,7 @@ Not Supported:
```
![](//examples/big-grids.svg)
![](/examples/big-grids.svg)

### Complicated
```
Expand Down Expand Up @@ -259,7 +259,7 @@ Not Supported:
'-' '---------+--' / Nor/is this. ---
```
![](//examples/complicated.svg)
![](/examples/complicated.svg)

### More examples are [here](examples)

Expand All @@ -277,7 +277,7 @@ A nicely formatted reference may be found at [pkg.go.dev](https://pkg.go.dev/git
$ go get -u github.com/blampe/goat/
```
### Library Data Flow
![](//goat.svg)
![](/goat.svg)

The diagram above was derived by [./pre-push.sh](./pre-push.sh) from ASCII-art in the Go
source file [./goat.go](./goat.go).
Expand Down
22 changes: 11 additions & 11 deletions README.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ GoAT's [README.md](README.md), then finally rendered to HTML ```<img>``` element
```
{{.trees_txt}}
```
![]({{.Root}}/examples/trees.svg)
![](/examples/trees.svg)

### Trees -- mid-range color value
Setting a foreground color in the middle of the possible range of value or luminance
Expand All @@ -90,56 +90,56 @@ CSS property by
from within an enclosing `<img>` element such as are generated by Markdown.


![]({{.Root}}/trees.mid-blue.svg)
![](/trees.mid-blue.svg)

### Overlaps
```
{{.overlaps_txt}}
```
![]({{.Root}}/examples/overlaps.svg)
![](/examples/overlaps.svg)

### Line Decorations
```
{{.line_decorations_txt}}
```
![]({{.Root}}/examples/line-decorations.svg)
![](/examples/line-decorations.svg)

### Line Ends
```
{{.line_ends_txt}}
```
![]({{.Root}}/examples/line-ends.svg)
![](/examples/line-ends.svg)

### Dot Grids
```
{{.dot_grids_txt}}
```
Note that '·' above is not ASCII, but rather Unicode, the MIDDLE DOT character, encoded with UTF-8.
![]({{.Root}}/examples/dot-grids.svg)
![](/examples/dot-grids.svg)

### Large Nodes
```
{{.large_nodes_txt}}
```
![]({{.Root}}/examples/large-nodes.svg)
![](/examples/large-nodes.svg)

### Small Grids
```
{{.small_grids_txt}}
```
![]({{.Root}}/examples/small-grids.svg)
![](/examples/small-grids.svg)

### Big Grids
```
{{.big_grids_txt}}
```
![]({{.Root}}/examples/big-grids.svg)
![](/examples/big-grids.svg)

### Complicated
```
{{.complicated_txt}}
```
![]({{.Root}}/examples/complicated.svg)
![](/examples/complicated.svg)

### More examples are [here](examples)

Expand All @@ -157,7 +157,7 @@ A nicely formatted reference may be found at [pkg.go.dev](https://pkg.go.dev/git
$ go get -u github.com/{{.Github_Repository_Owner}}/goat/
```
### Library Data Flow
![]({{.Root}}/goat.svg)
![](/goat.svg)

The diagram above was derived by [./pre-push.sh](./pre-push.sh) from ASCII-art in the Go
source file [./goat.go](./goat.go).
Expand Down
3 changes: 1 addition & 2 deletions pre-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ then
fi

tmpl_expand () {
# XX Root="/" resolves to root of the repo -- consider dropping the variable.
go run ./cmd/tmpl-expand Root="/" Github_Repository_Owner=${GITHUB_REPOSITORY_OWNER} "$@"
go run ./cmd/tmpl-expand Github_Repository_Owner=${GITHUB_REPOSITORY_OWNER} "$@"
}

#tmpl_expand <go.tmpl.mod >go.mod
Expand Down

0 comments on commit 177de93

Please sign in to comment.