/
krepost
/
deckhouse
Обзор
Документация
Войти
/
krepost
/
deckhouse
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
docs/documentation/_includes/module-oss.liquid
21 строка
784 B
Alexandr Dyakonov
[docs] Display lists of third-party (OSS) components in the modules documentation (#17530)
08 фев 2026, 11:14
Не верифицирован
08 фев 2026, 11:14
b518860
Код
Авторство
О чём код?
{% assign moduleKebabName = page['module-kebab-name'] | default: '' %} {% if moduleKebabName.size > 0 %}{% capture moduleKebabNamePlaceholder %} `{{ moduleKebabName }}`{% endcapture %}{% endif %} {% assign ossItems = site.data.modules.metadata.modules[moduleKebabName]['oss'] %} {%- if ossItems and ossItems.size > 0 %} {{ site.data.i18n.common['ossPageBlock1'][page.lang] | replace: ' <MODULE>', moduleKebabNamePlaceholder -}} {% for item in ossItems %} - {% if item.link.size >0 %}[{{ item.name }}]({{ item.link }}){% else %}{{ item.name }}{% endif %} {%- if item.version %} {{ item.version }}{%- endif %} {%- if item.license %} License: {{ item.license }} {%- endif %} {%- if item.description %} {{ item.description -}} {%- endif %} {%- endfor %} {%- endif %}