@forsakringskassan/docs-generator 3.17.0 → 3.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +22 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/templates/base.template.html +1 -1
- package/templates/component.template.html +4 -28
- package/templates/partials/brand.html +4 -0
- package/templates/partials/component-aside.html +27 -0
- package/templates/partials/header.html +2 -4
package/package.json
CHANGED
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
<!-- [html-validate-disable-next heading-level, no-unused-disable -- allowed sectioning root] -->
|
|
75
75
|
<h1 class="docs-heading docs-heading--h1" id="title">{{ doc.attributes.title }}</h1>
|
|
76
76
|
|
|
77
|
-
{%
|
|
77
|
+
{% ifAsync showAside %}
|
|
78
78
|
<div id="aside">
|
|
79
79
|
<!-- prettier-ignore -->
|
|
80
80
|
{%- block aside %}
|
|
@@ -2,35 +2,11 @@
|
|
|
2
2
|
{% extends "content-with-menu.template.html" %}
|
|
3
3
|
|
|
4
4
|
{% block aside %}
|
|
5
|
-
|
|
6
|
-
{% if doc.attributes.component %}
|
|
7
|
-
<dt>{{ $t('component.component') }}</dt>
|
|
8
|
-
<dd>
|
|
9
|
-
<div class="docs-badge-list">
|
|
10
|
-
{% for component in doc.attributes.component %}
|
|
11
|
-
{% if componentSourceUrl and componentSourceUrl(component) %}
|
|
12
|
-
<a class="docs-badge docs-badge--component docs-badge-link" href="{{ componentSourceUrl(component) }}">
|
|
13
|
-
{{ component.name }}
|
|
14
|
-
</a>
|
|
15
|
-
{% else %}
|
|
16
|
-
<div class="docs-badge docs-badge--component">
|
|
17
|
-
{{ component.name }}
|
|
18
|
-
</div>
|
|
19
|
-
{% endif %}
|
|
20
|
-
{% endfor %}
|
|
21
|
-
</div>
|
|
22
|
-
</dd>
|
|
23
|
-
{% endif %}
|
|
24
|
-
|
|
25
|
-
{% if doc.attributes.status %}
|
|
26
|
-
<dt>{{ $t('component.status') }}</dt>
|
|
27
|
-
<dd>
|
|
28
|
-
<div class="badge badge--{{ doc.attributes.badge }}">{{ doc.attributes.status }}</div>
|
|
29
|
-
</dd>
|
|
30
|
-
{% endif %}
|
|
31
|
-
</dl>
|
|
5
|
+
{% container "component:aside" %}
|
|
32
6
|
{% endblock %}
|
|
33
7
|
|
|
34
8
|
{% block content %}
|
|
35
|
-
{
|
|
9
|
+
{% container "component:top" %}
|
|
10
|
+
{{ doc.body | marked }}
|
|
11
|
+
{% container "component:bottom" %}
|
|
36
12
|
{% endblock %}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<a class="docs-page-header__logo" href="{{ './index.html' | relative(doc) }}">
|
|
2
|
+
<span aria-label="{{ site.name }}" role="img" class="docs-page-header__logo--pipe"> </span>
|
|
3
|
+
</a>
|
|
4
|
+
<a class="docs-page-header__app-name" href="{{ './index.html' | relative(doc) }}"> {{ site.name }} </a>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<dl>
|
|
2
|
+
{% if doc.attributes.component %}
|
|
3
|
+
<dt>{{ $t('component.component') }}</dt>
|
|
4
|
+
<dd>
|
|
5
|
+
<div class="docs-badge-list">
|
|
6
|
+
{% for component in doc.attributes.component %}
|
|
7
|
+
{% if componentSourceUrl and componentSourceUrl(component) %}
|
|
8
|
+
<a class="docs-badge docs-badge--component docs-badge-link" href="{{ componentSourceUrl(component) }}">
|
|
9
|
+
{{ component.name }}
|
|
10
|
+
</a>
|
|
11
|
+
{% else %}
|
|
12
|
+
<div class="docs-badge docs-badge--component">
|
|
13
|
+
{{ component.name }}
|
|
14
|
+
</div>
|
|
15
|
+
{% endif %}
|
|
16
|
+
{% endfor %}
|
|
17
|
+
</div>
|
|
18
|
+
</dd>
|
|
19
|
+
{% endif %}
|
|
20
|
+
|
|
21
|
+
{% if doc.attributes.status %}
|
|
22
|
+
<dt>{{ $t('component.status') }}</dt>
|
|
23
|
+
<dd>
|
|
24
|
+
<div class="badge badge--{{ doc.attributes.badge }}">{{ doc.attributes.status }}</div>
|
|
25
|
+
</dd>
|
|
26
|
+
{% endif %}
|
|
27
|
+
</dl>
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
<div class="docs-page-header__root">
|
|
2
2
|
<div class="docs-page-header">
|
|
3
3
|
<div class="docs-page-header__left">
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
</a>
|
|
7
|
-
<a class="docs-page-header__app-name" href="{{ './index.html' | relative(doc) }}"> {{ site.name }} </a>
|
|
4
|
+
<!-- prettier-ignore -->
|
|
5
|
+
{% container "header:left" %}
|
|
8
6
|
</div>
|
|
9
7
|
<div class="docs-page-header__right">
|
|
10
8
|
{%- include "partials/mobile-nav.html" %} {%- include "partials/topnav.html" %}
|