Skip to content

Commit

Permalink
Hide table in TreedocViewer by default
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Aug 24, 2023
1 parent 5c4c648 commit d1f97da
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions ogc/bblocks/templates/slate/index.html.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ code_clipboard: true
meta:
- name: ${bblock.name} (${bblock.itemClass.capitalize()})
---
<% import re, os, urllib.parse, json %>
<%
import re, os, urllib.parse, json
treedocviewer_options = '&amp;option={}'.format(urllib.parse.quote_plus('{"showTable": false}'))
%>

${'#'} ${bblock.name} `${bblock.identifier}`

Expand Down Expand Up @@ -100,7 +103,7 @@ ${snippet['code']}
% if snippet_lang == 'json':

<blockquote class="lang-specific ${snippet_lang}">
<p><a target="_blank" href="https://avillar.github.io/TreedocViewer/?dataParser=json&amp;dataUrl=${urllib.parse.quote_plus(snippet_url)}">View on JSON Viewer</a></p>
<p><a target="_blank" href="https://avillar.github.io/TreedocViewer/?dataParser=json&amp;dataUrl=${urllib.parse.quote_plus(snippet_url)}${treedocviewer_options}">View on JSON Viewer</a></p>
</blockquote>

% elif snippet_lang in ('json-ld', 'jsonld'):
Expand All @@ -112,7 +115,7 @@ ${snippet['code']}
% elif snippet_lang == 'yaml':

<blockquote class="lang-specific ${snippet_lang}">
<p><a target="_blank" href="https://avillar.github.io/TreedocViewer/?dataParser=yaml&amp;dataUrl=${urllib.parse.quote_plus(snippet_url)}">View on YAML Viewer</a></p>
<p><a target="_blank" href="https://avillar.github.io/TreedocViewer/?dataParser=yaml&amp;dataUrl=${urllib.parse.quote_plus(snippet_url)}${treedocviewer_options}">View on YAML Viewer</a></p>
</blockquote>

% endif
Expand All @@ -130,7 +133,7 @@ ${'#'} JSON Schema
${bblock.annotated_schema_contents}
```

> <a target="_blank" href="https://avillar.github.io/TreedocViewer/?dataParser=yaml&amp;dataUrl=${urllib.parse.quote_plus(bblock.metadata['schema']['application/yaml'])}">View on YAML Viewer</a>
> <a target="_blank" href="https://avillar.github.io/TreedocViewer/?dataParser=yaml&amp;dataUrl=${urllib.parse.quote_plus(bblock.metadata['schema']['application/yaml'])}${treedocviewer_options}">View on YAML Viewer</a>
Links to the schema:

Expand Down

0 comments on commit d1f97da

Please sign in to comment.