@forsakringskassan/docs-generator 2.38.5 → 2.39.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/{create-markdown-renderer-3vzQq-PG.mjs → create-markdown-renderer-DKqdpupc.mjs} +11 -6
- package/dist/create-markdown-renderer-DKqdpupc.mjs.map +1 -0
- package/dist/{format-code.worker-i_fzVsDn.mjs → format-code.worker-BoGFZXFD.mjs} +2 -2
- package/dist/{format-code.worker-i_fzVsDn.mjs.map → format-code.worker-BoGFZXFD.mjs.map} +1 -1
- package/dist/index.d.mts +0 -7
- package/dist/index.mjs +6 -27
- package/dist/index.mjs.map +1 -1
- package/dist/markdown.mjs +2 -2
- package/dist/runtime.mjs +6 -2
- package/dist/style/core.css +63 -155
- package/dist/style/index.css +64 -155
- package/dist/style/site.css +1 -0
- package/dist/style/theme/fkui.css +4 -0
- package/dist/{vendor-BnFYrp5U.mjs → vendor-B-ki54MB.mjs} +125 -2529
- package/dist/{vendor-BnFYrp5U.mjs.map → vendor-B-ki54MB.mjs.map} +1 -1
- package/package.json +1 -1
- package/templates/base.template.html +1 -1
- package/dist/create-markdown-renderer-3vzQq-PG.mjs.map +0 -1
- package/templates/partials/theme-render-blocker.html +0 -11
- package/templates/partials/theme-select.html +0 -49
package/dist/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ const require = $createRequire(import.meta.url);
|
|
|
4
4
|
|
|
5
5
|
import fs from 'node:fs/promises';
|
|
6
6
|
import path from 'node:path/posix';
|
|
7
|
-
import { t as ts,
|
|
8
|
-
import { g as generateId, p as parseInfostring, i as isDocumentPage, n as normalizePath, a as getFingerprint, h as hasTag, f as findTag, b as getOutputFilePath, d as htmlencode, e as filePath, c as createMarkdownRenderer, j as generateExample } from './create-markdown-renderer-
|
|
7
|
+
import { t as ts, M as MarkdownIt, d as dedent, g as closest, h as distance, i as fm, j as isCI, Z as Ze, m as moduleImporter, k as cliProgress, l as tinylr, w as watch, n as createInstance, o as fse, p as inter } from './vendor-B-ki54MB.mjs';
|
|
8
|
+
import { g as generateId, p as parseInfostring, i as isDocumentPage, n as normalizePath, a as getFingerprint, h as hasTag, f as findTag, b as getOutputFilePath, d as htmlencode, e as filePath, c as createMarkdownRenderer, j as generateExample } from './create-markdown-renderer-DKqdpupc.mjs';
|
|
9
9
|
import path__default from 'node:path';
|
|
10
10
|
import crypto from 'node:crypto';
|
|
11
11
|
import { exec, execSync } from 'node:child_process';
|
|
@@ -110,7 +110,9 @@ function fileMatcher(patterns) {
|
|
|
110
110
|
ignore: "**/node_modules/**"
|
|
111
111
|
});
|
|
112
112
|
return memoize((filename, context) => {
|
|
113
|
-
const matches =
|
|
113
|
+
const matches = fileList.filter((file) => {
|
|
114
|
+
return path__default.matchesGlob(file, `**/${filename}`);
|
|
115
|
+
});
|
|
114
116
|
if (matches.length === 0) {
|
|
115
117
|
const additionalInfo = context ? ` (${context})` : "";
|
|
116
118
|
const message = `No files matched pattern "${filename}"${additionalInfo}`;
|
|
@@ -565,28 +567,6 @@ const versionBannerProcessor = util.deprecate(
|
|
|
565
567
|
"versionBannerProcessor() is deprecated, use motdProcessor() instead"
|
|
566
568
|
);
|
|
567
569
|
|
|
568
|
-
function themeSelectProcessor() {
|
|
569
|
-
return {
|
|
570
|
-
name: "theme-select-processor",
|
|
571
|
-
after: "generate-docs",
|
|
572
|
-
handler(context) {
|
|
573
|
-
const sessionKey = "fkds-theme";
|
|
574
|
-
const data = {
|
|
575
|
-
defaultTheme: "exp",
|
|
576
|
-
sessionKey
|
|
577
|
-
};
|
|
578
|
-
context.addTemplateBlock("head", "theme-render-blocker", {
|
|
579
|
-
filename: "partials/theme-render-blocker.html",
|
|
580
|
-
data
|
|
581
|
-
});
|
|
582
|
-
context.addTemplateBlock("toolbar", "theme-select", {
|
|
583
|
-
filename: "partials/theme-select.html",
|
|
584
|
-
data
|
|
585
|
-
});
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
}
|
|
589
|
-
|
|
590
570
|
function dump(value) {
|
|
591
571
|
return `<pre>${JSON.stringify(value, null, 2)}</pre>`;
|
|
592
572
|
}
|
|
@@ -946,7 +926,6 @@ const availableProcessors = [
|
|
|
946
926
|
motdProcessor({ message: "" }),
|
|
947
927
|
selectableVersionProcessor({ name: "", version: "" }, ""),
|
|
948
928
|
sourceUrlProcessor({ urlFormat: "" }),
|
|
949
|
-
themeSelectProcessor(),
|
|
950
929
|
topnavProcessor("", ""),
|
|
951
930
|
versionProcessor({ name: "", version: "", homepage: "" }, "")
|
|
952
931
|
];
|
|
@@ -3615,5 +3594,5 @@ function searchProcessor() {
|
|
|
3615
3594
|
};
|
|
3616
3595
|
}
|
|
3617
3596
|
|
|
3618
|
-
export { Generator, availableProcessors, cookieProcessor, defineSources, extractExamplesProcessor, frontMatterFileReader, htmlRedirectProcessor, isRelease, livereloadProcessor, manifestProcessor, matomoProcessor, motdProcessor, navigationFileReader, processorRuntimeName, redirectFileProcessor, searchProcessor, selectableVersionProcessor, sourceUrlProcessor,
|
|
3597
|
+
export { Generator, availableProcessors, cookieProcessor, defineSources, extractExamplesProcessor, frontMatterFileReader, htmlRedirectProcessor, isRelease, livereloadProcessor, manifestProcessor, matomoProcessor, motdProcessor, navigationFileReader, processorRuntimeName, redirectFileProcessor, searchProcessor, selectableVersionProcessor, sourceUrlProcessor, topnavProcessor, versionBannerProcessor, versionProcessor, vueFileReader };
|
|
3619
3598
|
//# sourceMappingURL=index.mjs.map
|