Skip to content

Commit 177de93

Browse files
dmullisdmullis
authored andcommitted
Fix display of SVG output examples in README.md
1 parent 3d21ee6 commit 177de93

File tree

3 files changed

+23
-24
lines changed

3 files changed

+23
-24
lines changed

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ GoAT's [README.md](README.md), then finally rendered to HTML ```<img>``` element
8787
8888
8989
```
90-
![](//examples/trees.svg)
90+
![](/examples/trees.svg)
9191

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

101101

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

104104
### Overlaps
105105
```
@@ -113,7 +113,7 @@ from within an enclosing `<img>` element such as are generated by Markdown.
113113
'-' '-' '-' '-' '-' '-'
114114
115115
```
116-
![](//examples/overlaps.svg)
116+
![](/examples/overlaps.svg)
117117

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

131131
### Line Ends
132132
```
@@ -143,7 +143,7 @@ from within an enclosing `<img>` element such as are generated by Markdown.
143143
144144
145145
```
146-
![](//examples/line-ends.svg)
146+
![](/examples/line-ends.svg)
147147

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

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

177177
### Small Grids
178178
```
@@ -211,7 +211,7 @@ Not Supported:
211211
0123434567890123456 |
212212
213213
```
214-
![](//examples/small-grids.svg)
214+
![](/examples/small-grids.svg)
215215

216216
### Big Grids
217217
```
@@ -229,7 +229,7 @@ Not Supported:
229229
230230
231231
```
232-
![](//examples/big-grids.svg)
232+
![](/examples/big-grids.svg)
233233

234234
### Complicated
235235
```
@@ -259,7 +259,7 @@ Not Supported:
259259
'-' '---------+--' / Nor/is this. ---
260260
261261
```
262-
![](//examples/complicated.svg)
262+
![](/examples/complicated.svg)
263263

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

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

282282
The diagram above was derived by [./pre-push.sh](./pre-push.sh) from ASCII-art in the Go
283283
source file [./goat.go](./goat.go).

README.md.tmpl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ GoAT's [README.md](README.md), then finally rendered to HTML ```<img>``` element
7878
```
7979
{{.trees_txt}}
8080
```
81-
![]({{.Root}}/examples/trees.svg)
81+
![](/examples/trees.svg)
8282

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

9292

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

9595
### Overlaps
9696
```
9797
{{.overlaps_txt}}
9898
```
99-
![]({{.Root}}/examples/overlaps.svg)
99+
![](/examples/overlaps.svg)
100100

101101
### Line Decorations
102102
```
103103
{{.line_decorations_txt}}
104104
```
105-
![]({{.Root}}/examples/line-decorations.svg)
105+
![](/examples/line-decorations.svg)
106106

107107
### Line Ends
108108
```
109109
{{.line_ends_txt}}
110110
```
111-
![]({{.Root}}/examples/line-ends.svg)
111+
![](/examples/line-ends.svg)
112112

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

120120
### Large Nodes
121121
```
122122
{{.large_nodes_txt}}
123123
```
124-
![]({{.Root}}/examples/large-nodes.svg)
124+
![](/examples/large-nodes.svg)
125125

126126
### Small Grids
127127
```
128128
{{.small_grids_txt}}
129129
```
130-
![]({{.Root}}/examples/small-grids.svg)
130+
![](/examples/small-grids.svg)
131131

132132
### Big Grids
133133
```
134134
{{.big_grids_txt}}
135135
```
136-
![]({{.Root}}/examples/big-grids.svg)
136+
![](/examples/big-grids.svg)
137137

138138
### Complicated
139139
```
140140
{{.complicated_txt}}
141141
```
142-
![]({{.Root}}/examples/complicated.svg)
142+
![](/examples/complicated.svg)
143143

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

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

162162
The diagram above was derived by [./pre-push.sh](./pre-push.sh) from ASCII-art in the Go
163163
source file [./goat.go](./goat.go).

pre-push.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ then
4242
fi
4343

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

4948
#tmpl_expand <go.tmpl.mod >go.mod

0 commit comments

Comments
 (0)