@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.
@@ -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-B3CU63aM.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.7.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,22 +1,34 @@
1
- <nav class="imenu imenu--horizontal" aria-label="Primär">
2
- <ul class="imenu__list">
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="imenu__list__item {% if activePage %}imenu__list__item--highlight{% endif %}">
9
- <div
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>
@@ -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>