@forsakringskassan/docs-generator 3.15.2 → 3.16.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.
@@ -2108,7 +2108,7 @@ async function fetchVersions() {
2108
2108
  var getVersions = memoize(fetchVersions);
2109
2109
  async function initVersionProcessor() {
2110
2110
  const dialog = document.querySelector("#version-dialog");
2111
- const form = document.querySelector("#version");
2111
+ const form = document.querySelector(".docs-selectable-version__form");
2112
2112
  const dialogCloseButton = dialog?.querySelector("button");
2113
2113
  const { latest } = await getVersions();
2114
2114
  if (motdProxy.enabled && latest !== current) {
@@ -1208,6 +1208,8 @@ pre.mermaid:not([data-processed])::after {
1208
1208
  --docs-focus-box-shadow: 0 0 0 2px #1b1e23, 0 0 0 4px #ffffff,0 0 0 6px #1b1e23;
1209
1209
  --docs-footer-text-color-default: #1b1e23;
1210
1210
  --docs-footer-text-color-discrete: #5f6165;
1211
+ --docs-footer-text-color-link: #4a52b6;
1212
+ --docs-footer-text-color-link-hover: #1b1e23;
1211
1213
  --docs-footer-background-color: transparent;
1212
1214
  --docs-footer-border-color: #ddddde;
1213
1215
  --docs-menu-background-color: transparent;
@@ -1382,8 +1384,54 @@ textarea {
1382
1384
  .docs-footer {
1383
1385
  --docs-text-color-default: var(--docs-footer-text-color-default);
1384
1386
  --docs-text-color-discrete: var(--docs-footer-text-color-discrete);
1387
+ --docs-text-color-link: var(--docs-footer-text-color-link);
1388
+ --docs-text-color-link-hover: var(--docs-footer-text-color-link-hover);
1385
1389
  background-color: var(--docs-footer-background-color);
1386
1390
  border-top: 1px solid var(--docs-footer-border-color);
1391
+ color: var(--docs-text-color-default);
1392
+ padding: 3rem;
1393
+ }
1394
+ @media (width >= 1024px) {
1395
+ .docs-footer {
1396
+ display: flex;
1397
+ gap: 5rem;
1398
+ }
1399
+ }
1400
+ .docs-footer__left {
1401
+ flex: 0 0 auto;
1402
+ }
1403
+ .docs-footer__center {
1404
+ flex: 1 1 auto;
1405
+ }
1406
+ .docs-footer__right {
1407
+ flex: 0 0 auto;
1408
+ }
1409
+ .docs-footer__anchor {
1410
+ color: var(--docs-text-color-link);
1411
+ font-weight: normal;
1412
+ line-height: 1.5;
1413
+ text-decoration-line: underline;
1414
+ text-decoration-skip-ink: none;
1415
+ text-decoration-thickness: 2px;
1416
+ text-underline-offset: 0.25em;
1417
+ margin-bottom: 0.5rem;
1418
+ }
1419
+ .docs-footer__anchor:hover, .docs-footer__anchor:active {
1420
+ color: var(--docs-text-color-link-hover);
1421
+ text-decoration-color: var(--docs-text-link-hover);
1422
+ }
1423
+ .docs-footer__link-list {
1424
+ list-style: none;
1425
+ margin: 0;
1426
+ padding: 0;
1427
+ }
1428
+ .docs-footer__link-list > li {
1429
+ margin-bottom: 0.5rem;
1430
+ }
1431
+ .docs-footer h1,
1432
+ .docs-footer .heading--h1 {
1433
+ font-size: 1.5rem;
1434
+ font-weight: 600;
1387
1435
  }
1388
1436
 
1389
1437
  .cookie-warning {
@@ -1725,11 +1773,14 @@ header .docs-page-header__logo > a {
1725
1773
  padding: 1rem;
1726
1774
  }
1727
1775
  header .docs-page-header__right {
1728
- width: 100%;
1776
+ width: auto;
1777
+ flex-grow: 1;
1778
+ flex-basis: 100%;
1729
1779
  }
1730
1780
  }
1731
1781
  .docs-mobile-nav {
1732
- width: 100%;
1782
+ width: auto;
1783
+ flex-grow: 0;
1733
1784
  display: inline;
1734
1785
  }
1735
1786
  .is-mobile .docs-mobile-nav {
@@ -1887,19 +1938,6 @@ header .docs-page-header__logo > a {
1887
1938
  display: none;
1888
1939
  }
1889
1940
  }
1890
- #version button {
1891
- padding: 0;
1892
- background: transparent;
1893
- border: 0;
1894
- box-shadow: none;
1895
- margin: 0;
1896
- color: #5f6165;
1897
- text-decoration-color: #5f6165;
1898
- }
1899
- #version button:hover {
1900
- background-color: #f4f4f4;
1901
- }
1902
-
1903
1941
  #version-dialog {
1904
1942
  width: 30rem;
1905
1943
  max-height: 80vh;
@@ -1912,6 +1950,19 @@ header .docs-page-header__logo > a {
1912
1950
  margin: 0 0 1.5rem;
1913
1951
  padding-left: 0;
1914
1952
  }
1953
+ .docs-selectable-version__button {
1954
+ appearance: none;
1955
+ padding: 0;
1956
+ background: transparent;
1957
+ border: 0;
1958
+ box-shadow: none;
1959
+ margin: 0;
1960
+ color: var(--docs-text-color-default);
1961
+ text-decoration-color: var(--docs-text-color-default);
1962
+ }
1963
+ .docs-selectable-version__button:hover {
1964
+ cursor: pointer;
1965
+ }
1915
1966
  .docs-selectable-version__item {
1916
1967
  display: flex;
1917
1968
  border: 2px solid #8d8e91;
@@ -50,6 +50,8 @@
50
50
  --docs-focus-box-shadow: 0 0 0 2px #1b1e23, 0 0 0 4px #ffffff,0 0 0 6px #1b1e23;
51
51
  --docs-footer-text-color-default: #1b1e23;
52
52
  --docs-footer-text-color-discrete: #5f6165;
53
+ --docs-footer-text-color-link: #4a52b6;
54
+ --docs-footer-text-color-link-hover: #1b1e23;
53
55
  --docs-footer-background-color: transparent;
54
56
  --docs-footer-border-color: #ddddde;
55
57
  --docs-menu-background-color: transparent;
@@ -221,11 +223,63 @@ textarea {
221
223
  src: url(./inter-latin-wght-normal.woff2) format("woff2-variations");
222
224
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
223
225
  }
226
+ :root {
227
+ --docs-breakpoint-sm: 640px;
228
+ --docs-breakpoint-md: 1024px;
229
+ --docs-breakpoint-lg: 1280px;
230
+ }
231
+
224
232
  .docs-footer {
225
233
  --docs-text-color-default: var(--docs-footer-text-color-default);
226
234
  --docs-text-color-discrete: var(--docs-footer-text-color-discrete);
235
+ --docs-text-color-link: var(--docs-footer-text-color-link);
236
+ --docs-text-color-link-hover: var(--docs-footer-text-color-link-hover);
227
237
  background-color: var(--docs-footer-background-color);
228
238
  border-top: 1px solid var(--docs-footer-border-color);
239
+ color: var(--docs-text-color-default);
240
+ padding: 3rem;
241
+ }
242
+ @media (width >= 1024px) {
243
+ .docs-footer {
244
+ display: flex;
245
+ gap: 5rem;
246
+ }
247
+ }
248
+ .docs-footer__left {
249
+ flex: 0 0 auto;
250
+ }
251
+ .docs-footer__center {
252
+ flex: 1 1 auto;
253
+ }
254
+ .docs-footer__right {
255
+ flex: 0 0 auto;
256
+ }
257
+ .docs-footer__anchor {
258
+ color: var(--docs-text-color-link);
259
+ font-weight: normal;
260
+ line-height: 1.5;
261
+ text-decoration-line: underline;
262
+ text-decoration-skip-ink: none;
263
+ text-decoration-thickness: 2px;
264
+ text-underline-offset: 0.25em;
265
+ margin-bottom: 0.5rem;
266
+ }
267
+ .docs-footer__anchor:hover, .docs-footer__anchor:active {
268
+ color: var(--docs-text-color-link-hover);
269
+ text-decoration-color: var(--docs-text-link-hover);
270
+ }
271
+ .docs-footer__link-list {
272
+ list-style: none;
273
+ margin: 0;
274
+ padding: 0;
275
+ }
276
+ .docs-footer__link-list > li {
277
+ margin-bottom: 0.5rem;
278
+ }
279
+ .docs-footer h1,
280
+ .docs-footer .heading--h1 {
281
+ font-size: 1.5rem;
282
+ font-weight: 600;
229
283
  }
230
284
 
231
285
  .cookie-warning {
@@ -322,12 +376,6 @@ textarea {
322
376
  width: 1.5rem;
323
377
  }
324
378
 
325
- :root {
326
- --docs-breakpoint-sm: 640px;
327
- --docs-breakpoint-md: 1024px;
328
- --docs-breakpoint-lg: 1280px;
329
- }
330
-
331
379
  .docs-modal__header {
332
380
  display: flex;
333
381
  justify-content: space-between;
@@ -573,11 +621,14 @@ header .docs-page-header__logo > a {
573
621
  padding: 1rem;
574
622
  }
575
623
  header .docs-page-header__right {
576
- width: 100%;
624
+ width: auto;
625
+ flex-grow: 1;
626
+ flex-basis: 100%;
577
627
  }
578
628
  }
579
629
  .docs-mobile-nav {
580
- width: 100%;
630
+ width: auto;
631
+ flex-grow: 0;
581
632
  display: inline;
582
633
  }
583
634
  .is-mobile .docs-mobile-nav {
@@ -823,19 +874,6 @@ header .docs-page-header__logo > a {
823
874
  display: none;
824
875
  }
825
876
 
826
- #version button {
827
- padding: 0;
828
- background: transparent;
829
- border: 0;
830
- box-shadow: none;
831
- margin: 0;
832
- color: #5f6165;
833
- text-decoration-color: #5f6165;
834
- }
835
- #version button:hover {
836
- background-color: #f4f4f4;
837
- }
838
-
839
877
  #version-dialog {
840
878
  width: 30rem;
841
879
  max-height: 80vh;
@@ -848,6 +886,19 @@ header .docs-page-header__logo > a {
848
886
  margin: 0 0 1.5rem;
849
887
  padding-left: 0;
850
888
  }
889
+ .docs-selectable-version__button {
890
+ appearance: none;
891
+ padding: 0;
892
+ background: transparent;
893
+ border: 0;
894
+ box-shadow: none;
895
+ margin: 0;
896
+ color: var(--docs-text-color-default);
897
+ text-decoration-color: var(--docs-text-color-default);
898
+ }
899
+ .docs-selectable-version__button:hover {
900
+ cursor: pointer;
901
+ }
851
902
  .docs-selectable-version__item {
852
903
  display: flex;
853
904
  border: 2px solid #8d8e91;
@@ -40,6 +40,12 @@
40
40
  --docs-header-text-color-discrete: var(--fkds-color-text-secondary);
41
41
  --docs-header-background-color: var(--fkds-color-background-primary);
42
42
  --docs-header-border-color: var(--fkds-color-border-weak);
43
+ --docs-footer-text-color-default: var(--fkds-color-text-inverted);
44
+ --docs-footer-text-color-discrete: var(--fkds-color-text-inverted);
45
+ --docs-footer-text-color-link: var(--fkds-color-text-inverted);
46
+ --docs-footer-text-color-link-hover: #1b1e23;
47
+ --docs-footer-background-color: #35805b;
48
+ --docs-footer-border-color: #35805b;
43
49
  --docs-topnav-background-color: var(--fkds-color-background-primary);
44
50
  --docs-topnav-link-color-default: var(--fkds-color-text-primary);
45
51
  --docs-topnav-link-color-hover: var(--fkds-color-text-primary);
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.59.2"
8
+ "packageVersion": "7.59.3"
9
9
  }
10
10
  ]
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forsakringskassan/docs-generator",
3
- "version": "3.15.2",
3
+ "version": "3.16.0",
4
4
  "description": "Documentation generator",
5
5
  "keywords": [
6
6
  "documentation"
@@ -52,7 +52,7 @@
52
52
  "@babel/traverse": "^8.0.0",
53
53
  "@fontsource-variable/inter": "5.3.0",
54
54
  "@microsoft/api-extractor-model": "7.33.14",
55
- "@microsoft/tsdoc": "0.17.0",
55
+ "@microsoft/tsdoc": "0.17.1",
56
56
  "livereload-js": "4.0.2",
57
57
  "nunjucks": "3.2.4",
58
58
  "vue-docgen-api": "4.79.2"
File without changes
@@ -0,0 +1,5 @@
1
+ <ul class="docs-footer__link-list">
2
+ <li>
3
+ <a class="docs-footer__anchor" href="{{ 'changelog.html' | relative(doc) }}"> Changelog </a>
4
+ </li>
5
+ </ul>
File without changes
@@ -1,9 +1,18 @@
1
1
  <div class="docs-footer">
2
- <ul class="docs-footer__link-list">
3
- <li><a class="anchor" href="{{ 'changelog.html' | relative(doc) }}">Changelog</a></li>
4
- </ul>
2
+ <div class="docs-footer__left">
3
+ <!-- prettier-ignore -->
4
+ {% container "footer:left" %}
5
+ </div>
6
+
7
+ <div class="docs-footer__center">
8
+ <!-- prettier-ignore -->
9
+ {% container "footer:center" %}
10
+ </div>
11
+
12
+ <div class="docs-footer__right">
13
+ <!-- prettier-ignore -->
14
+ {% container "footer:right" %}
5
15
 
6
- <div class="docs-footer__content">
7
16
  <!-- prettier-ignore -->
8
17
  {% container "footer" %}
9
18
  </div>
@@ -1,7 +1,5 @@
1
- <div class="toolbar__item">
2
- <form id="version">
3
- <button type="submit" class="anchor">
4
- <span id="version-info" class="version">{{ $t("selectable-version.button") }} </span>
5
- </button>
6
- </form>
7
- </div>
1
+ <form class="docs-selectable-version__form">
2
+ <button type="submit" class="docs-selectable-version__button">
3
+ <span class="docs-footer__anchor"> {{ $t("selectable-version.button") }} </span>
4
+ </button>
5
+ </form>