@forsakringskassan/docs-generator 3.18.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/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,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>
|