@forsakringskassan/docs-generator 2.37.1 → 2.38.1
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/{create-markdown-renderer-BO8ZE3IZ.mjs → create-markdown-renderer-1_yCrnbT.mjs} +50 -42
- package/dist/create-markdown-renderer-1_yCrnbT.mjs.map +1 -0
- package/dist/{format-code.worker-CRcs4_Zl.mjs → format-code.worker-DH_m5cgv.mjs} +3 -3
- package/dist/format-code.worker-DH_m5cgv.mjs.map +1 -0
- package/dist/index.mjs +72 -77
- package/dist/index.mjs.map +1 -1
- package/dist/markdown.mjs +3 -3
- package/dist/processors/selectable-version.mjs +6 -6
- package/dist/runtime-bootstrap.mjs +3 -3
- package/dist/runtime.mjs +129 -74
- package/dist/style/core.css +30 -7
- package/dist/style/index.css +36 -7
- package/dist/style/site.css +6 -0
- package/dist/{vendor-Bk5vSW_n.mjs → vendor-BK-uA6Uv.mjs} +55 -22
- package/dist/{vendor-Bk5vSW_n.mjs.map → vendor-BK-uA6Uv.mjs.map} +1 -1
- package/dist/{vue3-DtTC1eal.mjs → vue3-fRI2JWNs.mjs} +25 -15
- package/dist/vue3-fRI2JWNs.mjs.map +1 -0
- package/dist/{worker-DUs54YZx.mjs → worker-DEFReXeu.mjs} +3 -3
- package/dist/worker-DEFReXeu.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/create-markdown-renderer-BO8ZE3IZ.mjs.map +0 -1
- package/dist/format-code.worker-CRcs4_Zl.mjs.map +0 -1
- package/dist/vue3-DtTC1eal.mjs.map +0 -1
- package/dist/worker-DUs54YZx.mjs.map +0 -1
package/dist/style/index.css
CHANGED
|
@@ -86,48 +86,71 @@ h6:not(.code-preview h6) {
|
|
|
86
86
|
font-family: var(--docs-heading-font-family);
|
|
87
87
|
line-height: var(--docs-heading-line-height);
|
|
88
88
|
margin-top: 0;
|
|
89
|
-
margin-bottom: 0.25rem;
|
|
90
89
|
text-wrap: balance;
|
|
91
90
|
text-wrap: pretty;
|
|
92
91
|
}
|
|
93
92
|
|
|
93
|
+
h1:not(.code-preview h1) {
|
|
94
|
+
font-weight: var(--docs-heading-font-weight-h1);
|
|
95
|
+
margin-bottom: var(--docs-heading-margin-bottom-h1);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
h2:not(.code-preview h2) {
|
|
99
|
+
font-weight: var(--docs-heading-font-weight-h2);
|
|
100
|
+
margin-bottom: var(--docs-heading-margin-bottom-h2);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
h3:not(.code-preview h3) {
|
|
104
|
+
font-weight: var(--docs-heading-font-weight-h3);
|
|
105
|
+
margin-bottom: var(--docs-heading-margin-bottom-h3);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
h4:not(.code-preview h4) {
|
|
109
|
+
font-weight: var(--docs-heading-font-weight-h4);
|
|
110
|
+
margin-bottom: var(--docs-heading-margin-bottom-h4);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
h5:not(.code-preview h5) {
|
|
114
|
+
font-weight: var(--docs-heading-font-weight-h5);
|
|
115
|
+
margin-bottom: var(--docs-heading-margin-bottom-h5);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
h6:not(.code-preview h6) {
|
|
119
|
+
font-weight: var(--docs-heading-font-weight-h6);
|
|
120
|
+
margin-bottom: var(--docs-heading-margin-bottom-h6);
|
|
121
|
+
}
|
|
122
|
+
|
|
94
123
|
h1 {
|
|
95
124
|
font-size: var(--f-font-size-h1);
|
|
96
|
-
font-weight: var(--docs-heading-font-weight-h1);
|
|
97
125
|
color: var(--f-text-color-heading-1);
|
|
98
126
|
letter-spacing: var(--docs-heading-letter-spacing-h1);
|
|
99
127
|
}
|
|
100
128
|
|
|
101
129
|
h2 {
|
|
102
130
|
font-size: var(--f-font-size-h2);
|
|
103
|
-
font-weight: var(--docs-heading-font-weight-h2);
|
|
104
131
|
color: var(--f-text-color-heading-2);
|
|
105
132
|
letter-spacing: var(--docs-heading-letter-spacing-h2);
|
|
106
133
|
}
|
|
107
134
|
|
|
108
135
|
h3 {
|
|
109
136
|
font-size: var(--f-font-size-h3);
|
|
110
|
-
font-weight: var(--docs-heading-font-weight-h3);
|
|
111
137
|
color: var(--f-text-color-heading-3);
|
|
112
138
|
letter-spacing: var(--docs-heading-letter-spacing-h3);
|
|
113
139
|
}
|
|
114
140
|
|
|
115
141
|
h4 {
|
|
116
142
|
font-size: var(--f-font-size-h4);
|
|
117
|
-
font-weight: var(--docs-heading-font-weight-h4);
|
|
118
143
|
color: var(--f-text-color-heading-4);
|
|
119
144
|
letter-spacing: var(--docs-heading-letter-spacing-h4);
|
|
120
145
|
}
|
|
121
146
|
|
|
122
147
|
h5 {
|
|
123
148
|
font-size: var(--f-font-size-large);
|
|
124
|
-
font-weight: var(--docs-heading-font-weight-h5);
|
|
125
149
|
color: var(--f-text-color-heading-5);
|
|
126
150
|
}
|
|
127
151
|
|
|
128
152
|
h6 {
|
|
129
153
|
font-size: var(--f-font-size-standard);
|
|
130
|
-
font-weight: var(--docs-heading-font-weight-h6);
|
|
131
154
|
color: var(--f-text-color-heading-6);
|
|
132
155
|
}
|
|
133
156
|
|
|
@@ -1388,6 +1411,12 @@ kbd {
|
|
|
1388
1411
|
--docs-heading-letter-spacing-h3: -0.3px;
|
|
1389
1412
|
--docs-heading-letter-spacing-h4: -0.3px;
|
|
1390
1413
|
--docs-heading-line-height: 1.4;
|
|
1414
|
+
--docs-heading-margin-bottom-h1: 1.5rem;
|
|
1415
|
+
--docs-heading-margin-bottom-h2: 1rem;
|
|
1416
|
+
--docs-heading-margin-bottom-h3: 1rem;
|
|
1417
|
+
--docs-heading-margin-bottom-h4: 0.5rem;
|
|
1418
|
+
--docs-heading-margin-bottom-h5: 0.5rem;
|
|
1419
|
+
--docs-heading-margin-bottom-h6: 0.5rem;
|
|
1391
1420
|
--docs-header-text-color-default: #1b1e23;
|
|
1392
1421
|
--docs-header-text-color-discrete: #5f6165;
|
|
1393
1422
|
--docs-header-background-color: transparent;
|
package/dist/style/site.css
CHANGED
|
@@ -36,6 +36,12 @@
|
|
|
36
36
|
--docs-heading-letter-spacing-h3: -0.3px;
|
|
37
37
|
--docs-heading-letter-spacing-h4: -0.3px;
|
|
38
38
|
--docs-heading-line-height: 1.4;
|
|
39
|
+
--docs-heading-margin-bottom-h1: 1.5rem;
|
|
40
|
+
--docs-heading-margin-bottom-h2: 1rem;
|
|
41
|
+
--docs-heading-margin-bottom-h3: 1rem;
|
|
42
|
+
--docs-heading-margin-bottom-h4: 0.5rem;
|
|
43
|
+
--docs-heading-margin-bottom-h5: 0.5rem;
|
|
44
|
+
--docs-heading-margin-bottom-h6: 0.5rem;
|
|
39
45
|
--docs-header-text-color-default: #1b1e23;
|
|
40
46
|
--docs-header-text-color-discrete: #5f6165;
|
|
41
47
|
--docs-header-background-color: transparent;
|
|
@@ -11456,9 +11456,10 @@ function createDedent(options) {
|
|
|
11456
11456
|
result = result.trim();
|
|
11457
11457
|
}
|
|
11458
11458
|
|
|
11459
|
-
//
|
|
11459
|
+
// Unescape escapes after trimming so sequences like `\n`, `\t`,
|
|
11460
|
+
// `\xHH` and `\u{...}` are preserved (fixes #24)
|
|
11460
11461
|
if (escapeSpecialCharacters) {
|
|
11461
|
-
result = result.replace(/\\n/g, "\n");
|
|
11462
|
+
result = result.replace(/\\n/g, "\n").replace(/\\t/g, "\t").replace(/\\r/g, "\r").replace(/\\v/g, "\v").replace(/\\b/g, "\b").replace(/\\f/g, "\f").replace(/\\0/g, "\0").replace(/\\x([\da-fA-F]{2})/g, (_, h) => String.fromCharCode(parseInt(h, 16))).replace(/\\u\{([\da-fA-F]{1,6})\}/g, (_, h) => String.fromCodePoint(parseInt(h, 16))).replace(/\\u([\da-fA-F]{4})/g, (_, h) => String.fromCharCode(parseInt(h, 16)));
|
|
11462
11463
|
}
|
|
11463
11464
|
|
|
11464
11465
|
// Workaround for Bun issue with Unicode characters
|
|
@@ -15892,6 +15893,11 @@ var require$$0 = [
|
|
|
15892
15893
|
env: "AGOLA_GIT_REF",
|
|
15893
15894
|
pr: "AGOLA_PULL_REQUEST_ID"
|
|
15894
15895
|
},
|
|
15896
|
+
{
|
|
15897
|
+
name: "Alpic",
|
|
15898
|
+
constant: "ALPIC",
|
|
15899
|
+
env: "ALPIC_HOST"
|
|
15900
|
+
},
|
|
15895
15901
|
{
|
|
15896
15902
|
name: "Appcircle",
|
|
15897
15903
|
constant: "APPCIRCLE",
|
|
@@ -16266,22 +16272,24 @@ function requireCiInfo () {
|
|
|
16266
16272
|
exports$1.isPR = null;
|
|
16267
16273
|
exports$1.id = null;
|
|
16268
16274
|
|
|
16269
|
-
|
|
16270
|
-
|
|
16271
|
-
|
|
16272
|
-
|
|
16273
|
-
|
|
16275
|
+
if (env.CI !== 'false') {
|
|
16276
|
+
vendors.forEach(function (vendor) {
|
|
16277
|
+
const envs = Array.isArray(vendor.env) ? vendor.env : [vendor.env];
|
|
16278
|
+
const isCI = envs.every(function (obj) {
|
|
16279
|
+
return checkEnv(obj)
|
|
16280
|
+
});
|
|
16274
16281
|
|
|
16275
|
-
|
|
16282
|
+
exports$1[vendor.constant] = isCI;
|
|
16276
16283
|
|
|
16277
|
-
|
|
16278
|
-
|
|
16279
|
-
|
|
16284
|
+
if (!isCI) {
|
|
16285
|
+
return
|
|
16286
|
+
}
|
|
16280
16287
|
|
|
16281
|
-
|
|
16282
|
-
|
|
16283
|
-
|
|
16284
|
-
|
|
16288
|
+
exports$1.name = vendor.name;
|
|
16289
|
+
exports$1.isPR = checkPR(vendor);
|
|
16290
|
+
exports$1.id = vendor.constant;
|
|
16291
|
+
});
|
|
16292
|
+
}
|
|
16285
16293
|
|
|
16286
16294
|
exports$1.isCI = !!(
|
|
16287
16295
|
env.CI !== 'false' && // Bypass all checks if CI env is explicitly set to 'false'
|
|
@@ -18684,11 +18692,22 @@ function requireSymlink () {
|
|
|
18684
18692
|
} catch { }
|
|
18685
18693
|
|
|
18686
18694
|
if (stats && stats.isSymbolicLink()) {
|
|
18687
|
-
|
|
18688
|
-
|
|
18689
|
-
|
|
18690
|
-
|
|
18695
|
+
// When srcpath is relative, resolve it relative to dstpath's directory
|
|
18696
|
+
// (standard symlink behavior) or fall back to cwd if that doesn't exist
|
|
18697
|
+
let srcStat;
|
|
18698
|
+
if (path.isAbsolute(srcpath)) {
|
|
18699
|
+
srcStat = await fs.stat(srcpath);
|
|
18700
|
+
} else {
|
|
18701
|
+
const dstdir = path.dirname(dstpath);
|
|
18702
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
18703
|
+
try {
|
|
18704
|
+
srcStat = await fs.stat(relativeToDst);
|
|
18705
|
+
} catch {
|
|
18706
|
+
srcStat = await fs.stat(srcpath);
|
|
18707
|
+
}
|
|
18708
|
+
}
|
|
18691
18709
|
|
|
18710
|
+
const dstStat = await fs.stat(dstpath);
|
|
18692
18711
|
if (areIdentical(srcStat, dstStat)) return
|
|
18693
18712
|
}
|
|
18694
18713
|
|
|
@@ -18710,7 +18729,21 @@ function requireSymlink () {
|
|
|
18710
18729
|
stats = fs.lstatSync(dstpath);
|
|
18711
18730
|
} catch { }
|
|
18712
18731
|
if (stats && stats.isSymbolicLink()) {
|
|
18713
|
-
|
|
18732
|
+
// When srcpath is relative, resolve it relative to dstpath's directory
|
|
18733
|
+
// (standard symlink behavior) or fall back to cwd if that doesn't exist
|
|
18734
|
+
let srcStat;
|
|
18735
|
+
if (path.isAbsolute(srcpath)) {
|
|
18736
|
+
srcStat = fs.statSync(srcpath);
|
|
18737
|
+
} else {
|
|
18738
|
+
const dstdir = path.dirname(dstpath);
|
|
18739
|
+
const relativeToDst = path.join(dstdir, srcpath);
|
|
18740
|
+
try {
|
|
18741
|
+
srcStat = fs.statSync(relativeToDst);
|
|
18742
|
+
} catch {
|
|
18743
|
+
srcStat = fs.statSync(srcpath);
|
|
18744
|
+
}
|
|
18745
|
+
}
|
|
18746
|
+
|
|
18714
18747
|
const dstStat = fs.statSync(dstpath);
|
|
18715
18748
|
if (areIdentical(srcStat, dstStat)) return
|
|
18716
18749
|
}
|
|
@@ -19367,7 +19400,7 @@ const deepFind = (obj, path, keySeparator = '.') => {
|
|
|
19367
19400
|
}
|
|
19368
19401
|
return current;
|
|
19369
19402
|
};
|
|
19370
|
-
const getCleanedCode = code => code?.replace(
|
|
19403
|
+
const getCleanedCode = code => code?.replace(/_/g, '-');
|
|
19371
19404
|
|
|
19372
19405
|
const consoleLogger = {
|
|
19373
19406
|
type: 'logger',
|
|
@@ -72182,4 +72215,4 @@ var typescript = /*#__PURE__*/Object.freeze({
|
|
|
72182
72215
|
});
|
|
72183
72216
|
|
|
72184
72217
|
export { HighlightJS as H, MarkdownIt as M, Ze$a as Z, resolveConfig as a, createTwoFilesPatch$1 as b, createSyncFn as c, dedent$1 as d, deflist_plugin as e, format2 as f, closest as g, distance as h, fm$2 as i, isCI as j, moduleImporter as k, cliProgress as l, minimatch as m, tinylr as n, createInstance as o, fse as p, inter as q, runAsWorker as r, ts$7 as t, watch$1 as w };
|
|
72185
|
-
//# sourceMappingURL=vendor-
|
|
72218
|
+
//# sourceMappingURL=vendor-BK-uA6Uv.mjs.map
|