@forsakringskassan/docs-generator 2.23.0 → 2.25.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/dist/compile-example.js +2 -2
- package/dist/{create-markdown-renderer-BSbHc8U0.js → create-markdown-renderer-CoJjMIzN.js} +3 -3
- package/dist/{create-markdown-renderer-BSbHc8U0.js.map → create-markdown-renderer-CoJjMIzN.js.map} +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +386 -58
- package/dist/index.js.map +1 -1
- package/dist/markdown.d.ts +5 -0
- package/dist/markdown.js +3 -3
- package/dist/runtime.js +57 -16
- package/dist/style/core.css +89 -0
- package/dist/style/index.css +91 -0
- package/dist/style/site.css +2 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/{vendor-BxO3IPg6.js → vendor-y4sQkzVC.js} +2777 -63
- package/dist/vendor-y4sQkzVC.js.map +1 -0
- package/dist/{vue3-CZnjnYGV.js → vue3-DXIVBodU.js} +2 -2
- package/dist/{vue3-CZnjnYGV.js.map → vue3-DXIVBodU.js.map} +1 -1
- package/package.json +3 -1
- package/templates/api.class.template.html +1 -0
- package/templates/api.composable.template.html +1 -0
- package/templates/api.constant.template.html +1 -0
- package/templates/api.enum.template.html +1 -0
- package/templates/api.function.template.html +1 -0
- package/templates/api.interface.template.html +1 -0
- package/templates/api.method.template.html +1 -0
- package/templates/api.template.html +1 -0
- package/templates/api.type.template.html +1 -0
- package/templates/base.template.html +2 -2
- package/templates/component.template.html +16 -13
- package/templates/partials/search-dialog.html +3 -3
- package/templates/partials/search-toolbar.html +1 -1
- package/dist/vendor-BxO3IPg6.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forsakringskassan/docs-generator",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.0",
|
|
4
4
|
"description": "Documentation generator",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"documentation"
|
|
@@ -56,6 +56,8 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@babel/code-frame": "^7.0.0",
|
|
59
|
+
"@babel/parser": "^7.0.0",
|
|
60
|
+
"@babel/traverse": "^7.0.0",
|
|
59
61
|
"livereload-js": "4.0.2",
|
|
60
62
|
"nunjucks": "3.2.4",
|
|
61
63
|
"piscina": "4.9.2",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{% extends "api.template.html" %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{% extends "api.template.html" %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{% extends "api.template.html" %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{% extends "api.template.html" %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{% extends "api.template.html" %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{% extends "api.template.html" %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{% extends "api.template.html" %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{% extends "article.template.html" %}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{% extends "api.template.html" %}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
|
-
<html lang="{{ site.lang }}" class="
|
|
2
|
+
<html lang="{{ site.lang }}" class="{{ layoutClass }}" data-root-url="{{ rootUrl(doc) }}">
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
|
|
90
90
|
{% if doc.outline | length %}
|
|
91
91
|
<details id="outline">
|
|
92
|
-
<summary class="outline__heading">
|
|
92
|
+
<summary class="outline__heading">{{ $t('outline.in-this-article') }}</summary>
|
|
93
93
|
<ul>
|
|
94
94
|
{% for heading in doc.outline %}
|
|
95
95
|
<li><a href="#{{ heading.anchor }}">{{ heading.title | escape }}</a></li>
|
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
{% set showAside = true %}
|
|
1
|
+
{% set showAside = true %}
|
|
2
|
+
{% extends "content-with-menu.template.html" %}
|
|
2
3
|
|
|
3
|
-
<!-- prettier-ignore -->
|
|
4
4
|
{% block aside %}
|
|
5
5
|
<dl>
|
|
6
|
-
<!-- prettier-ignore -->
|
|
7
6
|
{% if doc.attributes.component %}
|
|
8
|
-
<dt>
|
|
7
|
+
<dt>{{ $t('component.component') }}</dt>
|
|
9
8
|
<dd>
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
<div class="docs-badge-list">
|
|
10
|
+
{% for component in doc.attributes.component %}
|
|
12
11
|
{% if componentSourceUrl and componentSourceUrl(component) %}
|
|
13
|
-
<a href="{{ componentSourceUrl(component) }}">
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
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>
|
|
17
22
|
</dd>
|
|
18
23
|
{% endif %}
|
|
19
24
|
|
|
20
|
-
<!-- prettier-ignore -->
|
|
21
25
|
{% if doc.attributes.status %}
|
|
22
|
-
<dt>
|
|
26
|
+
<dt>{{ $t('component.status') }}</dt>
|
|
23
27
|
<dd>
|
|
24
28
|
<div class="badge badge--{{ doc.attributes.badge }}">{{ doc.attributes.status }}</div>
|
|
25
29
|
</dd>
|
|
@@ -27,7 +31,6 @@
|
|
|
27
31
|
</dl>
|
|
28
32
|
{% endblock %}
|
|
29
33
|
|
|
30
|
-
<!-- prettier-ignore -->
|
|
31
34
|
{% block content %}
|
|
32
35
|
{{ doc.body | marked }}
|
|
33
36
|
{% endblock %}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<!-- [html-validate-disable-next wcag/h32 -- handled via script] -->
|
|
3
3
|
<form id="search-form">
|
|
4
4
|
<div class="text-field">
|
|
5
|
-
<label for="search-field" class="label">
|
|
5
|
+
<label for="search-field" class="label">{{ $t('search.title') }}</label>
|
|
6
6
|
<div class="text-field__input-wrapper">
|
|
7
7
|
<div class="text-field__icon-wrapper">
|
|
8
8
|
<input
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
type="text"
|
|
15
15
|
class="text-field__input"
|
|
16
16
|
maxlength="50"
|
|
17
|
-
placeholder="
|
|
17
|
+
placeholder="{{ $t('search.placeholder') }}"
|
|
18
18
|
/>
|
|
19
19
|
</div>
|
|
20
20
|
</div>
|
|
21
21
|
</div>
|
|
22
22
|
<div id="search-results"></div>
|
|
23
|
-
<p
|
|
23
|
+
<p>{{ $t('search.instructions') }}</p>
|
|
24
24
|
</form>
|
|
25
25
|
</dialog>
|