@forsakringskassan/docs-generator 2.5.0 → 2.7.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 +6 -11
- package/dist/{create-markdown-renderer-iznOQQKw.js → create-markdown-renderer-MuI6-bYd.js} +143 -51
- package/dist/index.d.ts +30 -0
- package/dist/index.js +45 -60
- package/dist/markdown.d.ts +8 -0
- package/dist/markdown.js +6 -11
- package/dist/runtime.js +21915 -19384
- package/dist/style/core.css +287 -28
- package/dist/style/index.css +315 -29
- package/dist/style/site.css +28 -1
- package/dist/{vendor-BFdBzDIw.js → vendor-B3CU63aM.js} +17010 -32835
- package/dist/{vue3-Cv0MDe04.js → vue3-D4vqQB-D.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 +25 -13
- 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,22 +1,34 @@
|
|
|
1
|
-
<nav
|
|
2
|
-
<ul class="
|
|
1
|
+
<nav id="topnav" class="docs-topnav" aria-label="Primär">
|
|
2
|
+
<ul class="docs-topnav__list">
|
|
3
3
|
<!-- prettier-ignore -->
|
|
4
4
|
{%- for nav in topnav.children -%}
|
|
5
5
|
{% set navPath = nav.path | replace("html", "") %}
|
|
6
6
|
{% set navPath = navPath | replace(".", "") %}
|
|
7
7
|
{% set activePage = navPath in doc.fileInfo.fullPath %}
|
|
8
|
-
<li class="
|
|
9
|
-
<
|
|
10
|
-
class="imenu__list__anchor-container {% if activePage %}imenu__list__anchor-container--highlight{% endif %}"
|
|
11
|
-
>
|
|
12
|
-
<a
|
|
13
|
-
class="imenu__list__anchor {% if activePage %}imenu__list__anchor--highlight{% endif %}"
|
|
14
|
-
href="{{ nav.path | relative(doc) }}"
|
|
15
|
-
>
|
|
16
|
-
{{ nav.title }}
|
|
17
|
-
</a>
|
|
18
|
-
</div>
|
|
8
|
+
<li class="docs-topnav__item {% if activePage %}highlight{% endif %}">
|
|
9
|
+
<a class="docs-topnav__anchor" href="{{ nav.path | relative(doc) }}"> {{ nav.title }} </a>
|
|
19
10
|
</li>
|
|
20
11
|
{%- endfor -%}
|
|
12
|
+
<li class="docs-topnav__item docs-topnav__item--more" style="visibility: hidden">
|
|
13
|
+
<button type="button" class="docs-topnav__anchor" aria-expanded="false">
|
|
14
|
+
<span>Mer</span>
|
|
15
|
+
<svg class="icon" focusable="false" aria-hidden="true">
|
|
16
|
+
<use xlink:href="#docs-icon-arrow-down"></use>
|
|
17
|
+
</svg>
|
|
18
|
+
</button>
|
|
19
|
+
<div class="docs-contextmenu">
|
|
20
|
+
<ul class="docs-contextmenu__list">
|
|
21
|
+
<!-- prettier-ignore -->
|
|
22
|
+
{%- for nav in topnav.children -%}
|
|
23
|
+
{% set navPath = nav.path | replace("html", "") %}
|
|
24
|
+
{% set navPath = navPath | replace(".", "") %}
|
|
25
|
+
{% set activePage = navPath in doc.fileInfo.fullPath %}
|
|
26
|
+
<li class="docs-contextmenu__item {% if activePage %}highlight{% endif %}" style="display: none">
|
|
27
|
+
<a class="docs-contextmenu__anchor" href="{{ nav.path | relative(doc) }}"> {{ nav.title }} </a>
|
|
28
|
+
</li>
|
|
29
|
+
{%- endfor -%}
|
|
30
|
+
</ul>
|
|
31
|
+
</div>
|
|
32
|
+
</li>
|
|
21
33
|
</ul>
|
|
22
34
|
</nav>
|