Skip to content

Commit 2be50cb

Browse files
author
Rand McKinney
committed
Tweak diagram layout
1 parent 88961af commit 2be50cb

File tree

3 files changed

+29
-27
lines changed

3 files changed

+29
-27
lines changed

_includes/horiz-line.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
<polyline points="{{include.x-start}},{{include.y}} {{include.x-finish}},{{include.y}}"
1+
{% assign x-finish = include.x | plus: include.length %}
2+
<!-- xfinish = {{x-finish}} -->
3+
<polyline points="{{include.x}},{{include.y}} {{x-finish}},{{include.y}}"
24
style="fill:none;stroke:black;stroke-width:2" />

_includes/property.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010

1111
{% elsif include.type=="scalar" %}
1212
{%- if include.desc -%}
13-
<span style="font-family: 'Courier New', Courier, monospace; font-weight: bold;">{{include.name}}</span>{% unless include.desc=="NA" %}: {{include.desc}}{%endunless%}
13+
<span style="font-family: 'Courier New', Courier, monospace; font-weight: bold;">{{include.name}}</span>{% unless include.desc=="NA" %}: <span style="font-size:80%;">{{include.desc}}</span>{%endunless%}
1414
{%- else -%}
1515
{%- for term in site.data.ManifestStore_schema_edited.definitions -%}
1616
{%- if term.first=="Manifest" -%} <!-- {% comment %} Only for Manifest object currently, could be generalized {% endcomment %} -->
1717
{%- for property in term.last.properties -%}
1818
{% if property.first==include.name %}
1919
<div style="display: table-cell; font-family: 'Courier New', Courier, monospace; font-weight: bold;">{{property.first}}</div>
20-
<div style="display: table-cell; line-height: 100%; padding-top: 0;">{%- if property.last.description -%} {{property.last.description | prepend: ": " | markdownify | remove: "<p>" | remove: "</p>" }} {%- else -%}: <i>Description TBD</i>. {%- endif -%}</div>
20+
<div style="display: table-cell; line-height: 100%; padding-top: 0;">: <span style="font-size:80%;">{%- if property.last.description -%} {{property.last.description | markdownify | remove: "<p>" | remove: "</p>" }} {%- else -%}: <i>Description TBD</i>. {%- endif -%}</span></div>
2121
{% endif %}
2222
{% endfor %}
2323
{%- endif -%}

pages/manifest-diagram.md

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<div class="manifest-object" style="margin-bottom: 0; font-size: 110%;"><a href="#manifeststore">ManifestStore</a></div>
22

33
<div style="position: relative;" markdown="1" >
4-
{% include property.html type="scalar" name="active_manifest" desc="<i>UUID</i>" x="65" y="25" %}
5-
{% include property.html type="scalar" name="manifests" desc="NA" x="65" y="65" %}
4+
{% include property.html type="scalar" name="active_manifest" desc="<i>UUID</i>" x="65" y="30" %}
5+
{% include property.html type="scalar" name="manifests" desc="NA" x="65" y="70" %}
66

77
{% include property.html type="object" name="<i>UUID</i>:" obj="Manifest" x="145" y="125" %}
88
{% include property.html type="object" name="<i>UUID</i>:" obj="Manifest" x="145" y="165" %}
@@ -11,18 +11,18 @@
1111

1212
<svg height="300" width="300" style="margin-top: 0;">
1313
{% include vert-line.html x="20" y-start="0" y-finish="260" %}
14-
{% include horiz-line.html y="40" x-start="20" x-finish="60" %}
15-
{% include horiz-line.html y="80" x-start="20" x-finish="60" %}
16-
{% include horiz-line.html y="260" x-start="20" x-finish="60" %}
14+
{% include horiz-line.html y="40" x="20" length="40" %}
15+
{% include horiz-line.html y="80" x="20" length="40" %}
16+
{% include horiz-line.html y="260" x="20" length="40" %}
1717

18-
{% include horiz-line.html y="40" x-start="20" x-finish="60" %}
19-
{% include horiz-line.html y="40" x-start="20" x-finish="60" %}
18+
{% include horiz-line.html y="40" x="20" length="40" %}
19+
{% include horiz-line.html y="40" x="20" length="40" %}
2020

2121
{% include vert-line.html x="100" y-start="100" y-finish="220" %} <!-- small vertical -->
2222

23-
{% include horiz-line.html y="140" x-start="100" x-finish="140" %}
24-
{% include horiz-line.html y="180" x-start="100" x-finish="140" %}
25-
{% include horiz-line.html y="220" x-start="100" x-finish="140" %}
23+
{% include horiz-line.html y="140" x="100" length="40" %}
24+
{% include horiz-line.html y="180" x="100" length="40" %}
25+
{% include horiz-line.html y="220" x="100" length="40" %}
2626
</svg>
2727
</div>
2828

@@ -39,27 +39,27 @@
3939

4040
{% include property.html type="object" name="claim_generator_info" obj="ClaimGeneratorInfo" x="65" y="310" %}
4141

42-
{% include property.html type="object" name="thumbnail" obj="ResourceRef" x="65" y="350" %}
42+
{% include property.html type="object" name="thumbnail" obj="ResourceRef" x="65" y="355" %}
4343
{% include property.html type="object_array" name="ingredients" obj="Ingredient" x="65" y="390" %}
4444
{% include property.html type="object_array" name="assertions" obj="ManifestAssertion" x="65" y="430" %}
4545
{% include property.html type="object" name="signature_info" obj="SignatureInfo" x="65" y="470" %}
4646

4747
<svg height="500" width="300" style="margin-top: 0;">
4848
{% include vert-line.html x="20" y-start="0" y-finish="485" %}
4949

50-
{% include horiz-line.html y="35" x-start="20" x-finish="60" %}
51-
{% include horiz-line.html y="75" x-start="20" x-finish="60" %}
52-
{% include horiz-line.html y="115" x-start="20" x-finish="60" %}
53-
{% include horiz-line.html y="155" x-start="20" x-finish="60" %}
54-
{% include horiz-line.html y="195" x-start="20" x-finish="60" %}
55-
{% include horiz-line.html y="235" x-start="20" x-finish="60" %}
56-
{% include horiz-line.html y="275" x-start="20" x-finish="60" %}
57-
{% include horiz-line.html y="325" x-start="20" x-finish="60" %}
58-
{% include horiz-line.html y="370" x-start="20" x-finish="60" %}
59-
{% include horiz-line.html y="405" x-start="20" x-finish="60" %}
60-
{% include horiz-line.html y="405" x-start="20" x-finish="60" %}
61-
{% include horiz-line.html y="445" x-start="20" x-finish="60" %}
62-
{% include horiz-line.html y="485" x-start="20" x-finish="60" %}
50+
{% include horiz-line.html y="30" x="20" length="40" %}
51+
{% include horiz-line.html y="70" x="20" length="40" %}
52+
{% include horiz-line.html y="110" x="20" length="40" %}
53+
{% include horiz-line.html y="150" x="20" length="40" %}
54+
{% include horiz-line.html y="190" x="20" length="40" %}
55+
{% include horiz-line.html y="230" x="20" length="40" %}
56+
{% include horiz-line.html y="270" x="20" length="40" %}
57+
{% include horiz-line.html y="325" x="20" length="40" %}
58+
{% include horiz-line.html y="370" x="20" length="40" %}
59+
{% include horiz-line.html y="405" x="20" length="40" %}
60+
{% include horiz-line.html y="405" x="20" length="40" %}
61+
{% include horiz-line.html y="445" x="20" length="40" %}
62+
{% include horiz-line.html y="485" x="20" length="40" %}
6363
</svg>
6464
</div>
6565

0 commit comments

Comments
 (0)