Skip to content

Commit 27f4453

Browse files
committed
Add reference to config option
1 parent da8db53 commit 27f4453

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

content/terms/references/declaration.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ The examples given throughout this reference can be seen in context in the [decl
2626

2727
To facilitate cross-service comparisons and ensure consistency, a standardized list of term types is maintained in a [dedicated repository](https://github.com/OpenTermsArchive/terms-types).
2828

29-
Please note, the terms type may differ from the exact name provided by the service, but it should align with the underlying commitment. For example, some providers might call “Terms and Conditions” or “Terms of Use” what some others call “Terms of Service”.
30-
`
29+
Please note, the terms type may differ from the exact name provided by the service, but it should align with the underlying commitment. For example, some providers might call “Terms and Conditions” or “Terms of Use” what some others call “Terms of Service”.`
3130
required=true
32-
allowedValues="See the [terms-types repository](https://github.com/OpenTermsArchive/terms-types)."
31+
reference="[Terms Types](https://github.com/OpenTermsArchive/terms-types)."
3332
>}}
3433
```json
3534
"terms": {

themes/opentermsarchive/assets/css/components/configOption.css

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
.config-option-description,
3939
.config-option-default,
4040
.config-option-example,
41-
.config-option-allowed-values {
41+
.config-option-allowed-values,
42+
.config-option-reference {
4243
padding: 1rem 0.4em;
4344
}
4445

@@ -51,7 +52,8 @@
5152

5253
.config-option-example,
5354
.config-option-default,
54-
.config-option-allowed-values {
55+
.config-option-allowed-values,
56+
.config-option-reference {
5557
font-size: 0.85em;
5658
}
5759

@@ -63,3 +65,7 @@
6365
.config-option-details_full .config-option-example .highlight {
6466
margin-top: 0.4em;
6567
}
68+
69+
.config-option-reference span{
70+
margin-right: 0.4em;
71+
}

themes/opentermsarchive/layouts/shortcodes/configOption.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@
4545
</span>
4646
</div>
4747
{{ end }}
48+
{{ if $reference }}
49+
<div class="config-option-reference"><span>Reference:</span>{{ $reference | markdownify }}</div>
50+
{{ end }}
4851
</div>
4952
</div>
5053

0 commit comments

Comments
 (0)