@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.
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var require$$0 = require('@vue/compiler-sfc');
4
- require('./vendor-BFdBzDIw.js');
4
+ require('./vendor-CYT__b1C.js');
5
5
 
6
6
  var __create = Object.create;
7
7
  var __defProp = Object.defineProperty;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/docs-generator",
3
- "version": "2.5.0",
3
+ "version": "2.6.0",
4
4
  "description": "Documentation generator",
5
5
  "keywords": [
6
6
  "documentation"
@@ -0,0 +1,11 @@
1
+ {% set showAside = true %} {% extends "content-with-menu.template.html" %}
2
+
3
+ <!-- prettier-ignore -->
4
+ {% block aside %}
5
+ <dl></dl>
6
+ {% endblock %}
7
+
8
+ <!-- prettier-ignore -->
9
+ {% block content %}
10
+ {{ doc.body | marked }}
11
+ {% endblock %}
@@ -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
- {% set arr = ['component', 'pattern'] %} {% if doc.attributes.layout in arr %}
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
- {% extends "content-with-menu.template.html" %}
1
+ {% set showAside = true %} {% extends "content-with-menu.template.html" %}
2
2
 
3
3
  <!-- prettier-ignore -->
4
4
  {% block aside %}
@@ -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>
@@ -1,4 +1,5 @@
1
- {% extends "content-with-menu.template.html" %}
1
+ {% set showAside = true %} {% extends "content-with-menu.template.html" %}
2
+
2
3
  <!-- prettier-ignore -->
3
4
  {% block aside %}
4
5
  <dl>