Merge pull request #11498 from thaJeztah/cleanup_glossary

Minor fixes to glossary
This commit is contained in:
Sebastiaan van Stijn 2020-10-08 09:57:50 +02:00 committed by GitHub
commit 8d960416e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 9 deletions

View File

@ -70,6 +70,10 @@ defaults:
path: engine/reference/commandline
values:
edit_url: "https://github.com/docker/cli/tree/master/docs/reference/commandline"
- scope:
path: glossary
values:
edit_url: "https://github.com/docker/docker.github.io/blob/master/_data/glossary.yaml"
- scope:
path: notary/reference
values:

View File

@ -68,6 +68,10 @@ defaults:
path: engine/reference/commandline
values:
edit_url: "https://github.com/docker/cli/tree/master/docs/reference/commandline"
- scope:
path: glossary
values:
edit_url: "https://github.com/docker/docker.github.io/blob/master/_data/glossary.yaml"
- scope:
path: notary/reference
values:

View File

@ -1,11 +1,6 @@
---
layout: null
---
var glossary = [
{% for entry in site.data.glossary %}
{
"term": {{ entry[0] | jsonify }},
"def": {{ entry[1] | markdownify | replace:'href="#','href="/glossary/?term=' | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
{%- for entry in site.data.glossary -%}
{"term": {{ entry[0] | jsonify }}, "def": {{ entry[1] | markdownify | replace:'href="#','href="/glossary/?term=' | jsonify }}}
{%- unless forloop.last -%},{%- endunless -%}
{%- endfor -%}
]