Commit 98194b2a authored by Mark Hansen's avatar Mark Hansen
Browse files

Make attribute defaults code blocks

This is just a styling change.

Makes it hopefully a bit clearer what's the default and what's the condition.
parent 71bc660c
---
defaults:
- forward(directed)
- none(undirected)
- default: forward
for: (directed)
- default: none
for: (undirected)
flags: []
minimums: []
title: dir
......
---
defaults:
- '.0001 * # nodes(mode == KK)'
- .0001(mode == major)
- .01(mode == sgd)
- default: '.0001 * # nodes'
for: (mode == KK)'
- default: '.0001'
for: (mode == major)
- default: '.01'
for: (mode == sgd)
flags:
- neato
minimums: []
......
---
defaults:
- lightgrey(nodes)
- black(clusters)
- default: lightgrey
for: (nodes)
- default: black
for: (clusters)
flags: []
minimums: []
title: fillcolor
......
---
defaults:
- system-dependent
- <system-dependent>
flags: []
minimums: []
title: fontpath
......
---
defaults:
- '"\N" (nodes)'
- '"" (otherwise)'
- default: '"\N"'
for: '(nodes)'
- default: '""'
for: '(otherwise)'
flags: []
minimums: []
title: label
......
---
defaults:
- '"t"(clusters)'
- '"b"(root graphs)'
- '"c"(nodes)'
- default: '"t"'
for: '(clusters)'
- default: '"b"'
for: '(root graphs)'
- default: '"c"'
for: '(nodes)'
flags: []
minimums: []
title: labelloc
......
---
defaults:
- 1.0(neato)
- 0.3(fdp)
- default: '1.0'
for: (neato)
- default: '0.3'
for: (fdp)
flags:
- neato
- fdp
......
---
defaults:
- '100 * # nodes(mode == KK)'
- 200(mode == major)
- 30(mode == sgd)
- 600(fdp)
- default: '100 * # nodes'
for: '(mode == KK)'
- default: '200'
for: '(mode == major)'
- default: '30'
for: '(mode == sgd)'
- default: '600'
for: '(fdp)'
flags:
- neato
- fdp
......
---
defaults:
- 0.0555 (4 points)
- default: 0.0555
suffix: '(4 points)'
flags: []
minimums: []
title: pad
......
---
defaults:
- shape default(nodes)
- 1(clusters)
- default: <shape default>
for: (nodes)
- default: '1'
for: (clusters)
flags: []
minimums:
- '0'
......
---
defaults:
- ''
flags:
- dot
minimums: []
......
---
defaults:
- 0.5(dot)
- 1.0(twopi)
- default: '0.5'
for: (dot)
- default: '1.0'
for: (twopi)
flags:
- dot
- twopi
......
---
defaults:
- <none>(graphs)
- false(nodes)
- default: <none>
for: (graphs)
- default: 'false'
for: (nodes)
flags:
- twopi
- circo
......
---
defaults:
- 8(output)
- 20(overlap and image maps)
- default: '8'
for: (output)
- default: '20'
for: (overlap and image maps)
flags: []
minimums: []
title: samplepoints
......
---
defaults:
- ''
flags:
- bitmap output
minimums: []
......
---
defaults:
- ''
flags:
- xdot
minimums: []
......
......@@ -6,12 +6,16 @@ type: <I>{{ range $i, $t := .Params.types -}}
{{- range $i, $d := .Params.defaults }}
{{- if eq $i 0 }}, default: {{ end }}
{{- if $i }}, {{ end -}}
{{ $d }}
{{- if reflect.IsMap $d -}}
<code>{{ $d.default }}</code> {{$d.for}} {{$d.suffix}}
{{- else -}}
<code>{{ $d }}</code>
{{- end -}}
{{- end -}}
{{- range $i, $minimum := .Params.minimums -}}
{{- if eq $i 0 }}, minimum: {{ end }}
{{- if $i }}, {{ end -}}
{{- $minimum -}}
<code>{{- $minimum -}}</code>
{{- end -}}
</I>
</P>
......
......@@ -56,13 +56,17 @@ The attributes are alphabetized on output.
<TD>
{{- range $i, $d := .Params.defaults -}}
{{- if $i -}}<BR>{{- end -}}
{{ $d }}
{{- if reflect.IsMap $d -}}
<code>{{ $d.default }}</code> {{$d.for}} {{$d.suffix}}
{{- else -}}
<code>{{ $d }}</code>
{{- end -}}
{{- end -}}
</TD>
<TD>
{{- range $i, $minimum := .Params.minimums -}}
{{- if $i -}}<BR>{{- end -}}
{{- $minimum -}}
<code>{{ $minimum }}</code>
{{- end -}}
</TD>
<TD>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment