Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: syntax highlighting of example 4, 51, 52, 60, 61, 65, 66, and 71 #1700

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
46 changes: 23 additions & 23 deletions index.html
Expand Up @@ -2893,7 +2893,7 @@ <h2>Omitting Default Values</h2>
<input type="checkbox"/>
<span><i>with Default Values</i></span>
</div>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:645ab619-19ba-4b37-9933-8f0594398245",
"title": "MyLampThing",
Expand Down Expand Up @@ -2931,7 +2931,7 @@ <h2>Omitting Default Values</h2>
}
}
</pre>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:014139c9-b267-4db5-9c61-cc2d2bfc217d",
"title": "MyLampThing",
Expand Down Expand Up @@ -5620,7 +5620,7 @@ <h4>Protocol Binding based on HTTP</h4>
<input type="checkbox">
<span><i>with default values for Protocol Binding based on HTTP</i></span>
</div>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:3a559b69-cbec-4e7b-b543-bd8e6e41fd8b",
"title": "MyLampThing",
Expand Down Expand Up @@ -5668,7 +5668,7 @@ <h4>Protocol Binding based on HTTP</h4>
}
}
}</pre>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:3deca264-4f90-4321-a5ea-f197e6a1c7cf",
"title": "MyLampThing",
Expand Down Expand Up @@ -5734,7 +5734,7 @@ <h4>Protocol Binding based on HTTP</h4>
<input type="checkbox">
<span><i>extended <code>forms</code> in case of multiple values in <code>op</code></i></span>
</div>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:43e2081d-3fd9-41bf-803d-baaefb79c70f",
"title": "MyLampThing",
Expand All @@ -5759,7 +5759,7 @@ <h4>Protocol Binding based on HTTP</h4>
}
}
}</pre>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:9cd44eef-0b3f-4566-94b0-1358af3d86bd",
"title": "MyLampThing",
Expand Down Expand Up @@ -6218,7 +6218,7 @@ <h3>Composition</h3>
<button class="exampleTab1 Ventilation" onclick="openTab('exampleTab1', 'Ventilation')">Ventilation TM</button>
<button class="exampleTab1 LED" onclick="openTab('exampleTab1', 'LED')">LED TM</button>
</div>
<pre class="SmartVentilator exampleTab1 selected ">
<pre class="SmartVentilator exampleTab1 selected json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"@type": "tm:ThingModel",
Expand All @@ -6243,7 +6243,7 @@ <h3>Composition</h3>
}
}
</pre>
<pre class="Ventilation exampleTab1">
<pre class="Ventilation exampleTab1 json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"@type": "tm:ThingModel",
Expand All @@ -6264,7 +6264,7 @@ <h3>Composition</h3>
}
}
</pre>
<pre class="LED exampleTab1">
<pre class="LED exampleTab1 json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"@type": "tm:ThingModel",
Expand Down Expand Up @@ -6336,7 +6336,7 @@ <h3>Composition</h3>
<button class="exampleTab1 Ventilation" onclick="openTab('exampleTab1', 'Ventilation')">Ventilation TD</button>
<button class="exampleTab1 LED" onclick="openTab('exampleTab1', 'LED')">LED TD</button>
</div>
<pre class="SmartVentilator exampleTab1 selected ">
<pre class="SmartVentilator exampleTab1 selected json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"title": "Smart Ventilator",
Expand Down Expand Up @@ -6381,7 +6381,7 @@ <h3>Composition</h3>
}
}
</pre>
<pre class="Ventilation exampleTab1">
<pre class="Ventilation exampleTab1 json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"title": "Ventilator",
Expand Down Expand Up @@ -6428,7 +6428,7 @@ <h3>Composition</h3>
}
}
</pre>
<pre class="LED exampleTab1">
<pre class="LED exampleTab1 json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"title": "LED Thing Model",
Expand Down Expand Up @@ -6761,7 +6761,7 @@ <h3>Placeholder</h3>
<button class="exampleTab1 placeholder" onclick="openTab('exampleTab1', 'placeholder')">Placeholder Map</button>
<button class="exampleTab1 thingdescription" onclick="openTab('exampleTab1', 'thingdescription')">Thing Description</button>
</div>
<pre class="thingmodel exampleTab1 selected ">
<pre class="thingmodel exampleTab1 selected json">
{
"@context": ["https://www.w3.org/2022/wot/td/v1.1"],
"@type" : "tm:ThingModel",
Expand All @@ -6780,7 +6780,7 @@ <h3>Placeholder</h3>
...
}
</pre>
<pre class="placeholder exampleTab1">
<pre class="placeholder exampleTab1 json">
{
"THERMOSTATE_NUMBER": 4,
"MQTT_BROKER_ADDRESS" : "192.168.178.72:1883",
Expand All @@ -6789,7 +6789,7 @@ <h3>Placeholder</h3>
"VERSION_INFO": {"instance": "1.0.1", "model": "2.0.0"}
}
</pre>
<pre class="thingdescription exampleTab1">
<pre class="thingdescription exampleTab1 json">
{
"@context": ["https://www.w3.org/2022/wot/td/v1.1"],
"@type" : "Thing",
Expand Down Expand Up @@ -6861,20 +6861,20 @@ <h2>Derivation of Thing Description Instances</h2>
<button class="selected exampleTab2 thingmodel" onclick="openTab('exampleTab2', 'thingmodel')">Thing Model</button>
<button class="exampleTab2 thingdescription" onclick="openTab('exampleTab2', 'thingdescription')">Thing Description</button>
</div>
<pre class="selected exampleTab2 thingmodel">
<pre class="selected exampleTab2 thingmodel json">
{
...
// ...
"@type": "tm:ThingModel",
"title": "Smart Pump",
"id" : "urn:example:{{RANDOM_ID_PATTERN}}",
"description": "Smart Pump live plant and simulator",
"version" : {"model" : "1.0.0" },
...
// ...
}
</pre>
<pre class="exampleTab2 thingdescription">
<pre class="exampleTab2 thingdescription json">
{
...
// ...
"@type": "Thing",
"title": "Smart Pump",
"id" : "urn:example:123-321-123-321",
Expand All @@ -6885,7 +6885,7 @@ <h2>Derivation of Thing Description Instances</h2>
"href" : "http://example.com/ThingModelPool/Pump",
"type": "application/tm+json"
}],
...
// ...
}
</pre>
</aside>
Expand Down Expand Up @@ -7787,7 +7787,7 @@ <h3>Webhook Event Example</h3>
<button class="selected exampleTab1 without" onclick="openTab('exampleTab1', 'without')">Without uriVariables</button>
<button class="exampleTab1 with" onclick="openTab('exampleTab1', 'with')">With uriVariables</button>
</div>
<pre class="without exampleTab1 selected ">
<pre class="without exampleTab1 selected json">
{
"@context": "http://www.w3.org/ns/td",
"id": "urn:uuid:4778f80a-4c78-4cbb-a0e4-fa37b7d748df",
Expand Down Expand Up @@ -7845,7 +7845,7 @@ <h3>Webhook Event Example</h3>
}
}
</pre>
<pre class="with exampleTab1">
<pre class="with exampleTab1 json">
{
"@context": "http://www.w3.org/ns/td",
"id": "urn:uuid:3c1b4716-247f-4cda-ba53-d3307ac6feb0",
Expand Down
46 changes: 23 additions & 23 deletions index.template.html
Expand Up @@ -1617,7 +1617,7 @@ <h2>Omitting Default Values</h2>
<input type="checkbox"/>
<span><i>with Default Values</i></span>
</div>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:645ab619-19ba-4b37-9933-8f0594398245",
"title": "MyLampThing",
Expand Down Expand Up @@ -1655,7 +1655,7 @@ <h2>Omitting Default Values</h2>
}
}
</pre>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:014139c9-b267-4db5-9c61-cc2d2bfc217d",
"title": "MyLampThing",
Expand Down Expand Up @@ -4344,7 +4344,7 @@ <h4>Protocol Binding based on HTTP</h4>
<input type="checkbox">
<span><i>with default values for Protocol Binding based on HTTP</i></span>
</div>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:3a559b69-cbec-4e7b-b543-bd8e6e41fd8b",
"title": "MyLampThing",
Expand Down Expand Up @@ -4392,7 +4392,7 @@ <h4>Protocol Binding based on HTTP</h4>
}
}
}</pre>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:3deca264-4f90-4321-a5ea-f197e6a1c7cf",
"title": "MyLampThing",
Expand Down Expand Up @@ -4458,7 +4458,7 @@ <h4>Protocol Binding based on HTTP</h4>
<input type="checkbox">
<span><i>extended <code>forms</code> in case of multiple values in <code>op</code></i></span>
</div>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:43e2081d-3fd9-41bf-803d-baaefb79c70f",
"title": "MyLampThing",
Expand All @@ -4483,7 +4483,7 @@ <h4>Protocol Binding based on HTTP</h4>
}
}
}</pre>
<pre>{
<pre class="json">{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"id": "urn:uuid:9cd44eef-0b3f-4566-94b0-1358af3d86bd",
"title": "MyLampThing",
Expand Down Expand Up @@ -4942,7 +4942,7 @@ <h3>Composition</h3>
<button class="exampleTab1 Ventilation" onclick="openTab('exampleTab1', 'Ventilation')">Ventilation TM</button>
<button class="exampleTab1 LED" onclick="openTab('exampleTab1', 'LED')">LED TM</button>
</div>
<pre class="SmartVentilator exampleTab1 selected ">
<pre class="SmartVentilator exampleTab1 selected json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"@type": "tm:ThingModel",
Expand All @@ -4967,7 +4967,7 @@ <h3>Composition</h3>
}
}
</pre>
<pre class="Ventilation exampleTab1">
<pre class="Ventilation exampleTab1 json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"@type": "tm:ThingModel",
Expand All @@ -4988,7 +4988,7 @@ <h3>Composition</h3>
}
}
</pre>
<pre class="LED exampleTab1">
<pre class="LED exampleTab1 json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"@type": "tm:ThingModel",
Expand Down Expand Up @@ -5060,7 +5060,7 @@ <h3>Composition</h3>
<button class="exampleTab1 Ventilation" onclick="openTab('exampleTab1', 'Ventilation')">Ventilation TD</button>
<button class="exampleTab1 LED" onclick="openTab('exampleTab1', 'LED')">LED TD</button>
</div>
<pre class="SmartVentilator exampleTab1 selected ">
<pre class="SmartVentilator exampleTab1 selected json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"title": "Smart Ventilator",
Expand Down Expand Up @@ -5105,7 +5105,7 @@ <h3>Composition</h3>
}
}
</pre>
<pre class="Ventilation exampleTab1">
<pre class="Ventilation exampleTab1 json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"title": "Ventilator",
Expand Down Expand Up @@ -5152,7 +5152,7 @@ <h3>Composition</h3>
}
}
</pre>
<pre class="LED exampleTab1">
<pre class="LED exampleTab1 json">
{
"@context": "https://www.w3.org/2022/wot/td/v1.1",
"title": "LED Thing Model",
Expand Down Expand Up @@ -5485,7 +5485,7 @@ <h3>Placeholder</h3>
<button class="exampleTab1 placeholder" onclick="openTab('exampleTab1', 'placeholder')">Placeholder Map</button>
<button class="exampleTab1 thingdescription" onclick="openTab('exampleTab1', 'thingdescription')">Thing Description</button>
</div>
<pre class="thingmodel exampleTab1 selected ">
<pre class="thingmodel exampleTab1 selected json">
{
"@context": ["https://www.w3.org/2022/wot/td/v1.1"],
"@type" : "tm:ThingModel",
Expand All @@ -5504,7 +5504,7 @@ <h3>Placeholder</h3>
...
}
</pre>
<pre class="placeholder exampleTab1">
<pre class="placeholder exampleTab1 json">
{
"THERMOSTATE_NUMBER": 4,
"MQTT_BROKER_ADDRESS" : "192.168.178.72:1883",
Expand All @@ -5513,7 +5513,7 @@ <h3>Placeholder</h3>
"VERSION_INFO": {"instance": "1.0.1", "model": "2.0.0"}
}
</pre>
<pre class="thingdescription exampleTab1">
<pre class="thingdescription exampleTab1 json">
{
"@context": ["https://www.w3.org/2022/wot/td/v1.1"],
"@type" : "Thing",
Expand Down Expand Up @@ -5585,20 +5585,20 @@ <h2>Derivation of Thing Description Instances</h2>
<button class="selected exampleTab2 thingmodel" onclick="openTab('exampleTab2', 'thingmodel')">Thing Model</button>
<button class="exampleTab2 thingdescription" onclick="openTab('exampleTab2', 'thingdescription')">Thing Description</button>
</div>
<pre class="selected exampleTab2 thingmodel">
<pre class="selected exampleTab2 thingmodel json">
{
...
// ...
"@type": "tm:ThingModel",
"title": "Smart Pump",
"id" : "urn:example:{{RANDOM_ID_PATTERN}}",
"description": "Smart Pump live plant and simulator",
"version" : {"model" : "1.0.0" },
...
// ...
}
</pre>
<pre class="exampleTab2 thingdescription">
<pre class="exampleTab2 thingdescription json">
{
...
// ...
"@type": "Thing",
"title": "Smart Pump",
"id" : "urn:example:123-321-123-321",
Expand All @@ -5609,7 +5609,7 @@ <h2>Derivation of Thing Description Instances</h2>
"href" : "http://example.com/ThingModelPool/Pump",
"type": "application/tm+json"
}],
...
// ...
}
</pre>
</aside>
Expand Down Expand Up @@ -6509,7 +6509,7 @@ <h3>Webhook Event Example</h3>
<button class="selected exampleTab1 without" onclick="openTab('exampleTab1', 'without')">Without uriVariables</button>
<button class="exampleTab1 with" onclick="openTab('exampleTab1', 'with')">With uriVariables</button>
</div>
<pre class="without exampleTab1 selected ">
<pre class="without exampleTab1 selected json">
{
"@context": "http://www.w3.org/ns/td",
"id": "urn:uuid:4778f80a-4c78-4cbb-a0e4-fa37b7d748df",
Expand Down Expand Up @@ -6567,7 +6567,7 @@ <h3>Webhook Event Example</h3>
}
}
</pre>
<pre class="with exampleTab1">
<pre class="with exampleTab1 json">
{
"@context": "http://www.w3.org/ns/td",
"id": "urn:uuid:3c1b4716-247f-4cda-ba53-d3307ac6feb0",
Expand Down