Skip to content

Commit

Permalink
main: update default dataset template
Browse files Browse the repository at this point in the history
  • Loading branch information
balinthaller committed Mar 27, 2021
1 parent 45352f2 commit 13edf0b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
18 changes: 14 additions & 4 deletions carte_cli/utils/templates/dataset_flattened.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# {{ dataset.name }} {: .page-title }

<a class="edit-link" href="/admin/#/collections/datasets/entries/{{dataset.connection}}/{{dataset.database}}/{{dataset.name}}"></a>
<a class="edit-link" target="_blank" href="/admin/#/collections/datasets/entries/{{dataset.connection}}/{{dataset.database}}/{{dataset.name}}"></a>

#### Type: {: .attribute }
`{{ dataset.table_type.value }}`
Expand Down Expand Up @@ -36,12 +36,22 @@ No description

`{{ column.column_type }}`{: .column-type }
{% if column.description != none %}
{{- column.description -}}
{{ column.description.strip() }}
{: .column-description }

{% else %}
No description
{: .column-description .no-description }
<br>
{: .column-name-break}

{% endif %}
{% if column.values != none %}
{% for column_value in column.values %}
{{ column_value }}
{: .column-value }
{% endfor %}

<br>
{: .column-value-break}

{% endif %}
{% endfor %}
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "carte-cli"
version = "0.3.1"
version = "0.3.2"
description = "A static site generator for data catalogs"
authors = ["Balint Haller <balint@hey.com>"]
license = "GPL-3.0-or-later"
Expand Down

0 comments on commit 13edf0b

Please sign in to comment.