-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compose and style data dictionary HTML
- Loading branch information
Showing
13 changed files
with
105 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
69 changes: 0 additions & 69 deletions
69
dcpy/lifecycle/package/resources/data_dictionary_template.jinja
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions
21
dcpy/lifecycle/package/resources/document_templates/attributes.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<div class="attributes"> | ||
|
||
<h2>Attributes</h2> | ||
|
||
<div class="field"> | ||
|
||
<p class="field-content"> | ||
<span class="field-name">Description:</span> {{ metadata.attributes.description }} | ||
</p> | ||
|
||
<p class="field-content"> | ||
<span class="field-name">Each row is a:</span> {{ metadata.attributes.each_row_is_a }} | ||
</p> | ||
|
||
<p class="field-content"> | ||
<span class="field-name">Tags:</span> {{ metadata.attributes.tags|join(', ') }} | ||
</p> | ||
|
||
</div> | ||
|
||
</div> |
28 changes: 28 additions & 0 deletions
28
dcpy/lifecycle/package/resources/document_templates/columns.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<div class="attributes"> | ||
|
||
<h2>Columns</h2> | ||
|
||
{% for column in metadata.columns %} | ||
<div class="column"> | ||
|
||
<h3>{{ column.name }}</h3> | ||
|
||
<p class="column-field"> | ||
<span class="field-name">Description:</span> {{ column.description }} | ||
</p> | ||
<p class="column-field"> | ||
<span class="field-name">Type:</span> | ||
{% if column.custom.readme_data_type %} | ||
{{ column.custom.readme_data_type }} | ||
{% else %} | ||
{{ column.data_type }} | ||
{% endif %} | ||
</p> | ||
<p class="column-field"> | ||
<span class="field-name">Source:</span> {{ column.data_source }} | ||
</p> | ||
|
||
</div> | ||
{% endfor %} | ||
|
||
</div> |
17 changes: 17 additions & 0 deletions
17
dcpy/lifecycle/package/resources/document_templates/data_dictionary.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>{{ metadata.attributes.display_name }} Data Dictionary</title> | ||
</head> | ||
|
||
<body> | ||
<h1>{{ metadata.attributes.display_name }} - Data Dictionary</h1> | ||
|
||
{% include 'attributes.jinja' %} | ||
|
||
{% include 'columns.jinja' %} | ||
</body> | ||
|
||
</html> |
12 changes: 12 additions & 0 deletions
12
dcpy/lifecycle/package/resources/document_templates/document.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
html { | ||
color: #393939; | ||
font-family: Fira Sans; | ||
font-size: 10pt; | ||
} | ||
|
||
.field-name { | ||
font-weight: bold; | ||
} | ||
.column-field { | ||
text-indent: 1cm; | ||
} |
12 changes: 12 additions & 0 deletions
12
dcpy/lifecycle/package/resources/document_templates/paged_media.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@page { | ||
@top-left { | ||
content: url("../dcp_logo.png"); | ||
} | ||
@top-right { | ||
content: string(top-right-text); | ||
} | ||
@bottom-right-corner { | ||
content: counter(page); | ||
text-align: center; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters