@forsakringskassan/docs-generator 2.5.0 → 2.6.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/README.md +21 -3
- package/dist/compile-example.js +5 -11
- package/dist/{create-markdown-renderer-iznOQQKw.js → create-markdown-renderer-Bun8U6bd.js} +143 -51
- package/dist/index.d.ts +30 -0
- package/dist/index.js +18 -20
- package/dist/markdown.d.ts +8 -0
- package/dist/markdown.js +5 -11
- package/dist/runtime.js +131 -0
- package/dist/style/core.css +66 -12
- package/dist/style/index.css +82 -13
- package/dist/style/site.css +16 -1
- package/dist/{vendor-BFdBzDIw.js → vendor-CYT__b1C.js} +499 -8970
- package/dist/{vue3-Cv0MDe04.js → vue3-CNEpTgeX.js} +1 -1
- package/package.json +1 -1
- package/templates/article.template.html +11 -0
- package/templates/base.template.html +2 -2
- package/templates/component.template.html +1 -1
- package/templates/partials/topnav.html +24 -1
- package/templates/pattern.template.html +2 -1
package/package.json
CHANGED
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
<main>
|
|
84
84
|
<!-- [html-validate-disable-next heading-level, no-unused-disable -- allowed sectioning root] -->
|
|
85
85
|
<h1 id="title">{{ doc.attributes.title }}</h1>
|
|
86
|
-
|
|
86
|
+
|
|
87
|
+
{% if showAside %}
|
|
87
88
|
<div id="aside">
|
|
88
89
|
<!-- prettier-ignore -->
|
|
89
90
|
{%- block aside %}
|
|
90
91
|
{%- endblock %}
|
|
91
92
|
|
|
92
|
-
|
|
93
93
|
{% if doc.outline | length %}
|
|
94
94
|
<details id="outline">
|
|
95
95
|
<summary class="outline__heading">Innehåll</summary>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<nav class="imenu imenu--horizontal" aria-label="Primär">
|
|
1
|
+
<nav id="topnav" class="imenu imenu--horizontal" aria-label="Primär">
|
|
2
2
|
<ul class="imenu__list">
|
|
3
3
|
<!-- prettier-ignore -->
|
|
4
4
|
{%- for nav in topnav.children -%}
|
|
@@ -18,5 +18,28 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
</li>
|
|
20
20
|
{%- endfor -%}
|
|
21
|
+
<li class="imenu__list__item imenu__list__item--more">
|
|
22
|
+
<div class="imenu__list__anchor-container">
|
|
23
|
+
<button type="button" class="imenu__list__anchor" aria-expanded="false">
|
|
24
|
+
Mer<span class="imenu__list__anchor-span"></span>
|
|
25
|
+
<svg class="imenu__list__anchor-icon-right icon" focusable="false" aria-hidden>
|
|
26
|
+
<use xlink:href="#docs-icon-arrow-down"></use>
|
|
27
|
+
</svg>
|
|
28
|
+
</button>
|
|
29
|
+
</div>
|
|
30
|
+
<div class="ipopupmenu ipopupmenu--vertical">
|
|
31
|
+
<ul class="ipopupmenu__list ipopupmenu__list--more">
|
|
32
|
+
<!-- prettier-ignore -->
|
|
33
|
+
{%- for nav in topnav.children -%}
|
|
34
|
+
{% set navPath = nav.path | replace("html", "") %}
|
|
35
|
+
{% set navPath = navPath | replace(".", "") %}
|
|
36
|
+
{% set activePage = navPath in doc.fileInfo.fullPath %}
|
|
37
|
+
<li class="ipopupmenu__list__item {% if activePage %}ipopupmenu__list__item--highlight{% endif %}">
|
|
38
|
+
<a href="{{ nav.path | relative(doc) }}"> {{ nav.title }} </a>
|
|
39
|
+
</li>
|
|
40
|
+
{%- endfor -%}
|
|
41
|
+
</ul>
|
|
42
|
+
</div>
|
|
43
|
+
</li>
|
|
21
44
|
</ul>
|
|
22
45
|
</nav>
|