@forsakringskassan/docs-generator 1.27.0 → 1.29.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/markdown.js CHANGED
@@ -1,17 +1,17 @@
1
1
  'use strict';
2
2
 
3
- var createMarkdownRenderer = require('./create-markdown-renderer--V6N9Daq.js');
4
- require('./vendor-Dmnzl4fQ.js');
5
- require('fs');
6
- require('constants');
7
- require('stream');
8
- require('util');
9
- require('assert');
3
+ var createMarkdownRenderer = require('./create-markdown-renderer-D1cATjO1.js');
4
+ require('./vendor-uab7h6x-.js');
10
5
  require('path');
11
6
  require('url');
7
+ require('fs');
12
8
  require('fs/promises');
13
9
  require('events');
10
+ require('stream');
14
11
  require('string_decoder');
12
+ require('constants');
13
+ require('util');
14
+ require('assert');
15
15
  require('readline');
16
16
  require('child_process');
17
17
  require('node:buffer');
@@ -406,31 +406,25 @@ dialog[open] {
406
406
  display: block;
407
407
  }
408
408
 
409
- .version {
410
- color: var(--f-text-color-discrete);
411
- text-wrap: nowrap;
412
- margin-left: 1rem;
413
- }
414
-
415
409
  p:not(.code-preview p) {
416
410
  max-width: 680px;
417
411
  }
418
412
 
419
- main h1:not(.code-preview--default h1) {
413
+ main h1:not(.code-preview h1) {
420
414
  font-size: 2.5rem;
421
415
  color: #1b1e23;
422
416
  }
423
417
 
424
- main h2:not(.code-preview--default h2) {
418
+ main h2:not(.code-preview h2) {
425
419
  font-size: 1.5rem;
426
420
  margin-top: 3rem;
427
421
  }
428
422
 
429
- main h3:not(.code-preview--default h3) {
423
+ main h3:not(.code-preview h3) {
430
424
  font-size: 1.2rem;
431
425
  }
432
426
 
433
- main h4:not(.code-preview--default h4) {
427
+ main h4:not(.code-preview h4) {
434
428
  font-size: 1rem;
435
429
  }
436
430
 
@@ -484,6 +478,23 @@ h1 code {
484
478
  font-weight: 400;
485
479
  }
486
480
 
481
+ #content a:not(.code-preview a) {
482
+ color: var(--docs-text-color-default);
483
+ }
484
+
485
+ #content a:not(.code-preview a, h2 a, h3 a, h4 a, h5 a) {
486
+ text-decoration: underline;
487
+ text-decoration-thickness: 1px;
488
+ color: var(--f-text-color-link);
489
+ text-decoration-color: var(--docs-text-color-link);
490
+ text-underline-offset: 0.15rem;
491
+ }
492
+
493
+ #content a:hover:not(.code-preview a, h2 a, h3 a, h4 a, h5 a) {
494
+ color: var(--f-text-color-default);
495
+ text-decoration-color: var(--docs-text-link-hover);
496
+ }
497
+
487
498
  .layout-wrapper {
488
499
  font-family: var(--docs-font-family);
489
500
  background: #fff;
@@ -772,6 +783,9 @@ main #aside dd {
772
783
  display: flex;
773
784
  align-items: center;
774
785
  }
786
+ .toolbar__item {
787
+ display: flex;
788
+ }
775
789
 
776
790
  kbd {
777
791
  border: 1px solid #bbbbbd;
@@ -406,31 +406,25 @@ dialog[open] {
406
406
  display: block;
407
407
  }
408
408
 
409
- .version {
410
- color: var(--f-text-color-discrete);
411
- text-wrap: nowrap;
412
- margin-left: 1rem;
413
- }
414
-
415
409
  p:not(.code-preview p) {
416
410
  max-width: 680px;
417
411
  }
418
412
 
419
- main h1:not(.code-preview--default h1) {
413
+ main h1:not(.code-preview h1) {
420
414
  font-size: 2.5rem;
421
415
  color: #1b1e23;
422
416
  }
423
417
 
424
- main h2:not(.code-preview--default h2) {
418
+ main h2:not(.code-preview h2) {
425
419
  font-size: 1.5rem;
426
420
  margin-top: 3rem;
427
421
  }
428
422
 
429
- main h3:not(.code-preview--default h3) {
423
+ main h3:not(.code-preview h3) {
430
424
  font-size: 1.2rem;
431
425
  }
432
426
 
433
- main h4:not(.code-preview--default h4) {
427
+ main h4:not(.code-preview h4) {
434
428
  font-size: 1rem;
435
429
  }
436
430
 
@@ -484,6 +478,23 @@ h1 code {
484
478
  font-weight: 400;
485
479
  }
486
480
 
481
+ #content a:not(.code-preview a) {
482
+ color: var(--docs-text-color-default);
483
+ }
484
+
485
+ #content a:not(.code-preview a, h2 a, h3 a, h4 a, h5 a) {
486
+ text-decoration: underline;
487
+ text-decoration-thickness: 1px;
488
+ color: var(--f-text-color-link);
489
+ text-decoration-color: var(--docs-text-color-link);
490
+ text-underline-offset: 0.15rem;
491
+ }
492
+
493
+ #content a:hover:not(.code-preview a, h2 a, h3 a, h4 a, h5 a) {
494
+ color: var(--f-text-color-default);
495
+ text-decoration-color: var(--docs-text-link-hover);
496
+ }
497
+
487
498
  .layout-wrapper {
488
499
  font-family: var(--docs-font-family);
489
500
  background: #fff;
@@ -772,6 +783,9 @@ main #aside dd {
772
783
  display: flex;
773
784
  align-items: center;
774
785
  }
786
+ .toolbar__item {
787
+ display: flex;
788
+ }
775
789
 
776
790
  kbd {
777
791
  border: 1px solid #bbbbbd;
@@ -842,10 +856,19 @@ kbd {
842
856
  :root {
843
857
  --docs-font-family: arial, "Helvetica Neue", sans-serif;
844
858
  --docs-font-weight: normal;
845
- --docs-heading-font-family: arial, "Helvetica Neue", sans-serif;
846
- --docs-heading-font-weight: normal;
859
+ --docs-text-color-default: #1b1e23;
860
+ --docs-text-color-discrete: #5f6165;
861
+ --docs-text-color-link: #4a52b6;
862
+ --docs-text-color-link-hover: #1b1e23;
863
+ --docs-heading-font-family: var(--docs-font-family);
864
+ --docs-heading-font-weight: var(--docs-font-weight);
847
865
  --docs-heading-line-height: 1.4;
866
+ --docs-header-text-color-default: #1b1e23;
867
+ --docs-header-text-color-discrete: #5f6165;
848
868
  --docs-menu-width-expanded: 230px;
869
+ --docs-version-text-color: var(--docs-text-color-discrete);
870
+ --docs-version-link-color: var(--docs-text-color-discrete);
871
+ --docs-version-hover-color: var(--docs-text-color-default);
849
872
  }
850
873
 
851
874
  *,
@@ -908,6 +931,19 @@ textarea {
908
931
  margin: 0;
909
932
  }
910
933
 
934
+ .version {
935
+ color: var(--docs-text-color-discrete);
936
+ text-wrap: nowrap;
937
+ margin-left: 1rem;
938
+ }
939
+ .version a {
940
+ color: var(--docs-link-color-discrete);
941
+ text-decoration: underline;
942
+ }
943
+ .version a:hover, .version a:focus, .version a:active {
944
+ color: var(--docs-text-color-default);
945
+ }
946
+
911
947
  html {
912
948
  scroll-behavior: smooth;
913
949
  }
@@ -931,4 +967,9 @@ body {
931
967
  font-size: var(--f-font-size-standard);
932
968
  font-weight: var(--docs-font-weight);
933
969
  line-height: var(--f-line-height-large);
970
+ }
971
+
972
+ .page-header {
973
+ --docs-text-color-default: var(--docs-header-text-color-default);
974
+ --docs-text-color-discrete: var(--docs-header-text-color-discrete);
934
975
  }
@@ -1,10 +1,19 @@
1
1
  :root {
2
2
  --docs-font-family: arial, "Helvetica Neue", sans-serif;
3
3
  --docs-font-weight: normal;
4
- --docs-heading-font-family: arial, "Helvetica Neue", sans-serif;
5
- --docs-heading-font-weight: normal;
4
+ --docs-text-color-default: #1b1e23;
5
+ --docs-text-color-discrete: #5f6165;
6
+ --docs-text-color-link: #4a52b6;
7
+ --docs-text-color-link-hover: #1b1e23;
8
+ --docs-heading-font-family: var(--docs-font-family);
9
+ --docs-heading-font-weight: var(--docs-font-weight);
6
10
  --docs-heading-line-height: 1.4;
11
+ --docs-header-text-color-default: #1b1e23;
12
+ --docs-header-text-color-discrete: #5f6165;
7
13
  --docs-menu-width-expanded: 230px;
14
+ --docs-version-text-color: var(--docs-text-color-discrete);
15
+ --docs-version-link-color: var(--docs-text-color-discrete);
16
+ --docs-version-hover-color: var(--docs-text-color-default);
8
17
  }
9
18
 
10
19
  *,
@@ -67,6 +76,19 @@ textarea {
67
76
  margin: 0;
68
77
  }
69
78
 
79
+ .version {
80
+ color: var(--docs-text-color-discrete);
81
+ text-wrap: nowrap;
82
+ margin-left: 1rem;
83
+ }
84
+ .version a {
85
+ color: var(--docs-link-color-discrete);
86
+ text-decoration: underline;
87
+ }
88
+ .version a:hover, .version a:focus, .version a:active {
89
+ color: var(--docs-text-color-default);
90
+ }
91
+
70
92
  html {
71
93
  scroll-behavior: smooth;
72
94
  }
@@ -90,4 +112,9 @@ body {
90
112
  font-size: var(--f-font-size-standard);
91
113
  font-weight: var(--docs-font-weight);
92
114
  line-height: var(--f-line-height-large);
115
+ }
116
+
117
+ .page-header {
118
+ --docs-text-color-default: var(--docs-header-text-color-default);
119
+ --docs-text-color-discrete: var(--docs-header-text-color-discrete);
93
120
  }