clean-jsdoc-theme 5.0.4 → 5.0.5

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/publish.mjs CHANGED
@@ -12,7 +12,7 @@ var getFilename = () => fileURLToPath(import.meta.url);
12
12
  var __filename = /* @__PURE__ */ getFilename();
13
13
 
14
14
  // src/publish.ts
15
- import { mkdir as mkdir2, readFile, readdir, rm, writeFile as writeFile2 } from "fs/promises";
15
+ import { mkdir as mkdir2, readFile, readdir, rm, stat, writeFile as writeFile2 } from "fs/promises";
16
16
  import { readFileSync } from "fs";
17
17
  import { createHash } from "crypto";
18
18
  import { basename, dirname as dirname2, extname, join as joinPath, resolve as resolvePath } from "path";
@@ -657,62 +657,295 @@ async function collectDocs(dir) {
657
657
  return docs;
658
658
  }
659
659
  var DOC_IMAGE_RE = /(!\[[^\]]*\]\()([^)\s]+)((?:\s+"[^"]*")?\))/g;
660
- async function resolveDocImages(docs, docsDir) {
661
- if (docs.length === 0) return { docs, files: [], inlineSvgs: {} };
662
- const root = resolvePath(docsDir);
660
+ var HTML_IMAGE_RE = /(<img\b[^>]*?\bsrc\s*=\s*(["']))([^"']*)(\2)/gi;
661
+ function createImageCollector(staticDirs = []) {
663
662
  const files = [];
664
- const seenServed = /* @__PURE__ */ new Set();
665
663
  const inlineSvgs = {};
664
+ const consumed = /* @__PURE__ */ new Set();
665
+ const seenServed = /* @__PURE__ */ new Set();
666
666
  const cache = /* @__PURE__ */ new Map();
667
- const resolveOne = async (rawSrc, docDir) => {
667
+ const warnedMisses = /* @__PURE__ */ new Set();
668
+ const resolve = async (rawSrc, baseDir) => {
668
669
  const src = rawSrc.trim();
669
670
  if (!src || isServableUrl(src) || src.startsWith("#") || src.startsWith("data:")) return null;
670
- const abs = src.startsWith("/") ? resolvePath(src.slice(1)) : resolvePath(docDir, src);
671
- if (cache.has(abs)) return cache.get(abs) ?? null;
672
- let bytes;
673
- try {
674
- bytes = await readFile(abs);
675
- } catch {
671
+ const primary = src.startsWith("/") ? resolvePath(src.slice(1)) : resolvePath(baseDir, src);
672
+ const candidates = [primary];
673
+ if (staticDirs.length > 0) {
674
+ const outName = src.replace(/^\/+/, "");
675
+ if (outName) for (const dir of staticDirs) candidates.push(resolvePath(dir, outName));
676
+ }
677
+ for (const abs of candidates) {
678
+ const cached = cache.get(abs);
679
+ if (cached !== void 0) {
680
+ if (cached) return cached;
681
+ continue;
682
+ }
683
+ let bytes;
684
+ try {
685
+ bytes = await readFile(abs);
686
+ } catch {
687
+ cache.set(abs, null);
688
+ continue;
689
+ }
690
+ const ext = extname(abs);
691
+ const served = `_assets/${basename(abs, ext) || "asset"}.${contentHash(bytes)}${ext}`;
692
+ if (!seenServed.has(served)) {
693
+ seenServed.add(served);
694
+ files.push({ path: served, contents: bytes });
695
+ }
696
+ const href = "/" + served;
697
+ if (ext.toLowerCase() === ".svg") {
698
+ inlineSvgs[href] = bytes.toString("utf8").replace(/<svg\b/, '<svg style="max-width:100%;height:auto;display:block"');
699
+ }
700
+ cache.set(abs, href);
701
+ consumed.add(abs);
702
+ return href;
703
+ }
704
+ if (!warnedMisses.has(src)) {
705
+ warnedMisses.add(src);
676
706
  console.warn(
677
- `clean-jsdoc-theme: could not read doc image '${src}' (resolved '${abs}'); leaving it as-is.`
707
+ `clean-jsdoc-theme: could not read image '${src}' (looked in: ${candidates.join(", ")}); leaving it as-is.`
678
708
  );
679
- cache.set(abs, null);
680
- return null;
681
- }
682
- const ext = extname(abs);
683
- const served = `_assets/${basename(abs, ext) || "asset"}.${contentHash(bytes)}${ext}`;
684
- if (!seenServed.has(served)) {
685
- seenServed.add(served);
686
- files.push({ path: served, contents: bytes });
687
709
  }
688
- const href = "/" + served;
689
- if (ext.toLowerCase() === ".svg") {
690
- inlineSvgs[href] = bytes.toString("utf8").replace(/<svg\b/, '<svg style="max-width:100%;height:auto;display:block"');
710
+ return null;
711
+ };
712
+ return { resolve, files, inlineSvgs, consumed };
713
+ }
714
+ var CODE_REGION_RE = /```[\s\S]*?```|~~~[\s\S]*?~~~|<pre[\s\S]*?<\/pre>|<code[^>]*>[\s\S]*?<\/code>|`[^`\n]+`/gi;
715
+ function codeRanges(content) {
716
+ const ranges = [];
717
+ for (const m of content.matchAll(CODE_REGION_RE)) {
718
+ if (m.index !== void 0) ranges.push([m.index, m.index + m[0].length]);
719
+ }
720
+ return ranges;
721
+ }
722
+ function indexInCode(idx, ranges) {
723
+ for (const [s, e] of ranges) if (idx >= s && idx < e) return true;
724
+ return false;
725
+ }
726
+ async function rewriteImageRefs(content, baseDir, collector) {
727
+ if (!content) return content;
728
+ const ranges = codeRanges(content);
729
+ const map = /* @__PURE__ */ new Map();
730
+ const collect = async (re, srcGroup) => {
731
+ for (const m of content.matchAll(re)) {
732
+ if (m.index !== void 0 && indexInCode(m.index, ranges)) continue;
733
+ const src = m[srcGroup];
734
+ if (map.has(src)) continue;
735
+ const href = await collector.resolve(src, baseDir);
736
+ if (href) map.set(src, href);
691
737
  }
692
- cache.set(abs, href);
693
- return href;
694
738
  };
739
+ await collect(DOC_IMAGE_RE, 2);
740
+ await collect(HTML_IMAGE_RE, 3);
741
+ if (map.size === 0) return content;
742
+ return content.replace(
743
+ DOC_IMAGE_RE,
744
+ (full, pre, src, post, offset) => !indexInCode(offset, ranges) && map.has(src) ? `${pre}${map.get(src)}${post}` : full
745
+ ).replace(
746
+ HTML_IMAGE_RE,
747
+ (full, pre, _quote, src, close, offset) => !indexInCode(offset, ranges) && map.has(src) ? `${pre}${map.get(src)}${close}` : full
748
+ );
749
+ }
750
+ async function resolveDocImages(docs, docsDir, collector = createImageCollector()) {
751
+ if (docs.length === 0) return { docs, files: collector.files, inlineSvgs: collector.inlineSvgs };
752
+ const root = resolvePath(docsDir);
695
753
  const out = [];
696
754
  for (const doc of docs) {
697
755
  const docDir = dirname2(resolvePath(root, doc.path));
698
- const map = /* @__PURE__ */ new Map();
699
- for (const m of doc.content.matchAll(DOC_IMAGE_RE)) {
700
- const src = m[2];
701
- if (map.has(src)) continue;
702
- const href = await resolveOne(src, docDir);
703
- if (href) map.set(src, href);
756
+ const content = await rewriteImageRefs(doc.content, docDir, collector);
757
+ out.push(content === doc.content ? doc : { ...doc, content });
758
+ }
759
+ return { docs: out, files: collector.files, inlineSvgs: collector.inlineSvgs };
760
+ }
761
+ async function resolveTutorialImages(tree, tutorialsDir, collector) {
762
+ const base = resolvePath(tutorialsDir);
763
+ const walk = async (node) => {
764
+ const content = await rewriteImageRefs(node.content, base, collector);
765
+ const children = [];
766
+ for (const child of node.children ?? []) children.push(await walk(child));
767
+ return { ...node, content, children };
768
+ };
769
+ const out = [];
770
+ for (const node of tree) out.push(await walk(node));
771
+ return out;
772
+ }
773
+ var DOCLET_IMAGE_SKIP_KEYS = /* @__PURE__ */ new Set([
774
+ "meta",
775
+ "comment",
776
+ "examples",
777
+ "tags",
778
+ "___id",
779
+ "___s"
780
+ ]);
781
+ async function rewriteDocletStrings(node, baseDir, collector) {
782
+ for (const [key, value] of Object.entries(node)) {
783
+ if (DOCLET_IMAGE_SKIP_KEYS.has(key)) continue;
784
+ if (typeof value === "string") {
785
+ if (value.includes("<img") || value.includes("![")) {
786
+ const rewritten = await rewriteImageRefs(value, baseDir, collector);
787
+ if (rewritten !== value) node[key] = rewritten;
788
+ }
789
+ } else if (Array.isArray(value)) {
790
+ for (let i = 0; i < value.length; i++) {
791
+ const item = value[i];
792
+ if (typeof item === "string") {
793
+ if (item.includes("<img") || item.includes("![")) {
794
+ const rewritten = await rewriteImageRefs(item, baseDir, collector);
795
+ if (rewritten !== item) value[i] = rewritten;
796
+ }
797
+ } else if (item && typeof item === "object") {
798
+ await rewriteDocletStrings(item, baseDir, collector);
799
+ }
800
+ }
801
+ } else if (value && typeof value === "object") {
802
+ await rewriteDocletStrings(value, baseDir, collector);
803
+ }
804
+ }
805
+ }
806
+ async function resolveDocletImages(data, collector) {
807
+ if (typeof data !== "function") return;
808
+ let doclets = [];
809
+ try {
810
+ doclets = data({}).get();
811
+ } catch {
812
+ try {
813
+ doclets = data().get();
814
+ } catch {
815
+ return;
704
816
  }
705
- if (map.size === 0) {
706
- out.push(doc);
817
+ }
818
+ if (!Array.isArray(doclets)) return;
819
+ for (const d of doclets) {
820
+ if (!d || typeof d !== "object") continue;
821
+ const meta = d.meta;
822
+ if (!meta || typeof meta.path !== "string" || meta.path.length === 0) continue;
823
+ await rewriteDocletStrings(d, meta.path, collector);
824
+ }
825
+ }
826
+ function normalizeStaticFilesConfig(raw) {
827
+ if (!raw || typeof raw !== "object" || Array.isArray(raw)) return void 0;
828
+ const o = raw;
829
+ const toStrArr = (v) => (Array.isArray(v) ? v : typeof v === "string" ? [v] : []).filter((s) => typeof s === "string" && s.trim().length > 0).map((s) => s.trim());
830
+ const include = toStrArr(o.include);
831
+ if (include.length === 0) return void 0;
832
+ const includePattern = typeof o.includePattern === "string" && o.includePattern.trim().length > 0 ? o.includePattern : void 0;
833
+ const excludePattern = typeof o.excludePattern === "string" && o.excludePattern.trim().length > 0 ? o.excludePattern : void 0;
834
+ return {
835
+ include,
836
+ exclude: toStrArr(o.exclude),
837
+ ...includePattern ? { includePattern } : {},
838
+ ...excludePattern ? { excludePattern } : {}
839
+ };
840
+ }
841
+ function readStaticFilesConfig(opts) {
842
+ try {
843
+ const env = __require("jsdoc/env");
844
+ const fromEnv = normalizeStaticFilesConfig(env?.conf?.templates?.default?.staticFiles);
845
+ if (fromEnv) return fromEnv;
846
+ } catch {
847
+ }
848
+ return normalizeStaticFilesConfig(opts?.templates?.default?.staticFiles);
849
+ }
850
+ function staticFileOutputName(absFile, includeRootAbs) {
851
+ const norm = (p) => p.replace(/\\/g, "/").replace(/\/+$/, "");
852
+ const f = norm(absFile);
853
+ const root = norm(includeRootAbs);
854
+ const baseOf = (p) => p.slice(p.lastIndexOf("/") + 1);
855
+ if (f === root) return baseOf(f);
856
+ const prefix = root + "/";
857
+ return f.toLowerCase().startsWith(prefix.toLowerCase()) ? f.slice(prefix.length) : baseOf(f);
858
+ }
859
+ function staticFileIncluded(absFile, config) {
860
+ const norm = (p) => resolvePath(p).replace(/\\/g, "/");
861
+ const fn = norm(absFile);
862
+ if (config.includePattern) {
863
+ try {
864
+ if (!new RegExp(config.includePattern).test(fn)) return false;
865
+ } catch {
866
+ }
867
+ }
868
+ if (config.excludePattern) {
869
+ try {
870
+ if (new RegExp(config.excludePattern).test(fn)) return false;
871
+ } catch {
872
+ }
873
+ }
874
+ for (const ex of config.exclude) {
875
+ const exAbs = norm(ex);
876
+ if (fn === exAbs || fn.toLowerCase().startsWith(exAbs.toLowerCase() + "/")) return false;
877
+ }
878
+ return true;
879
+ }
880
+ var STATIC_DIR_SKIP = /* @__PURE__ */ new Set(["node_modules", ".git", ".svn", ".hg"]);
881
+ async function collectStaticFiles(config, warn = (m) => console.warn(m)) {
882
+ const files = [];
883
+ const searchDirs = /* @__PURE__ */ new Set();
884
+ const seenOutput = /* @__PURE__ */ new Set();
885
+ for (const inc of config.include) {
886
+ const root = resolvePath(inc);
887
+ let st;
888
+ try {
889
+ st = await stat(root);
890
+ } catch {
891
+ warn(
892
+ `clean-jsdoc-theme: staticFiles include '${inc}' (resolved '${root}') was not found; skipping it.`
893
+ );
707
894
  continue;
708
895
  }
709
- const content = doc.content.replace(
710
- DOC_IMAGE_RE,
711
- (full, pre, src, post) => map.has(src) ? `${pre}${map.get(src)}${post}` : full
712
- );
713
- out.push({ ...doc, content });
896
+ if (st.isDirectory()) {
897
+ searchDirs.add(root);
898
+ const walk = async (absDir) => {
899
+ let entries;
900
+ try {
901
+ entries = await readdir(absDir, { withFileTypes: true });
902
+ } catch {
903
+ return;
904
+ }
905
+ for (const entry of entries) {
906
+ if (entry.name.startsWith(".")) continue;
907
+ const abs = joinPath(absDir, entry.name);
908
+ if (entry.isDirectory()) {
909
+ if (!STATIC_DIR_SKIP.has(entry.name)) await walk(abs);
910
+ continue;
911
+ }
912
+ if (!entry.isFile()) continue;
913
+ if (!staticFileIncluded(abs, config)) continue;
914
+ const outputPath = staticFileOutputName(abs, root);
915
+ if (seenOutput.has(outputPath)) continue;
916
+ let contents;
917
+ try {
918
+ contents = await readFile(abs);
919
+ } catch (err) {
920
+ warn(
921
+ `clean-jsdoc-theme: could not read static file '${abs}' \u2014 ${err.message}; skipping.`
922
+ );
923
+ continue;
924
+ }
925
+ seenOutput.add(outputPath);
926
+ files.push({ outputPath, absSource: resolvePath(abs), contents });
927
+ }
928
+ };
929
+ await walk(root);
930
+ } else if (st.isFile()) {
931
+ searchDirs.add(dirname2(root));
932
+ if (!staticFileIncluded(root, config)) continue;
933
+ const outputPath = staticFileOutputName(root, root);
934
+ if (!seenOutput.has(outputPath)) {
935
+ try {
936
+ const contents = await readFile(root);
937
+ seenOutput.add(outputPath);
938
+ files.push({ outputPath, absSource: resolvePath(root), contents });
939
+ } catch (err) {
940
+ warn(
941
+ `clean-jsdoc-theme: could not read static file '${root}' \u2014 ${err.message}; skipping.`
942
+ );
943
+ }
944
+ }
945
+ }
714
946
  }
715
- return { docs: out, files, inlineSvgs };
947
+ files.sort((a, b) => a.outputPath.localeCompare(b.outputPath));
948
+ return { files, searchDirs: [...searchDirs] };
716
949
  }
717
950
  function overlayDocs(base, locale) {
718
951
  const byPath = new Map(base.docs.map((d) => [d.path, d]));
@@ -799,6 +1032,8 @@ async function publish(data, opts, tutorials) {
799
1032
  assertMarkdownPlugin();
800
1033
  const color = Boolean(process.stdout.isTTY) && opts.nocolor !== true;
801
1034
  const docsDir = typeof opts.docs === "string" && opts.docs.trim().length > 0 ? opts.docs.trim() : void 0;
1035
+ const tutorialsDir = typeof opts.tutorials === "string" && opts.tutorials.trim().length > 0 ? opts.tutorials.trim() : void 0;
1036
+ const staticCfg = readStaticFilesConfig(opts);
802
1037
  const pkgPromise = resolvePkg(data, opts);
803
1038
  const sourcesPromise = outputSourceFilesEnabled(opts) ? collectSourceFiles(data) : Promise.resolve([]);
804
1039
  const docsPromise = docsDir ? collectDocs(docsDir) : Promise.resolve([]);
@@ -857,30 +1092,34 @@ async function publish(data, opts, tutorials) {
857
1092
  const readme = typeof opts.readme === "string" && opts.readme.length > 0 ? opts.readme : void 0;
858
1093
  const tutorialTree = normalizeTutorials(tutorials);
859
1094
  const sourceLinkToComment = sourceLinkToCommentEnabled(opts);
860
- const { sources, docs, docImageFiles, inlineSvgs } = await progress.stage(
861
- "Reading sources & docs",
1095
+ const staticFiles = staticCfg ? await progress.stage(
1096
+ "Reading static files",
1097
+ () => collectStaticFiles(staticCfg, (m) => console.warn(m))
1098
+ ) : void 0;
1099
+ const images = createImageCollector(staticFiles?.searchDirs ?? []);
1100
+ const { sources, docs } = await progress.stage("Reading sources & docs", async () => {
1101
+ const [srcs, rawDocs] = await Promise.all([sourcesPromise, docsPromise]);
1102
+ const base = docsDir ? await resolveDocImages(rawDocs, docsDir, images) : { docs: rawDocs };
1103
+ if (!buildSpec?.docsDir) return { sources: srcs, docs: base.docs };
1104
+ const localeRaw = await collectDocs(buildSpec.docsDir);
1105
+ const locale = await resolveDocImages(localeRaw, buildSpec.docsDir, images);
1106
+ const merged = overlayDocs(
1107
+ { docs: base.docs, files: [], inlineSvgs: {} },
1108
+ { docs: locale.docs, files: [], inlineSvgs: {} }
1109
+ );
1110
+ return { sources: srcs, docs: merged.docs };
1111
+ });
1112
+ const { tutorialTree: resolvedTutorials, readme: resolvedReadme } = await progress.stage(
1113
+ "Resolving prose images",
862
1114
  async () => {
863
- const [srcs, rawDocs] = await Promise.all([sourcesPromise, docsPromise]);
864
- const base = docsDir ? await resolveDocImages(rawDocs, docsDir) : { docs: rawDocs, files: [], inlineSvgs: {} };
865
- if (!buildSpec?.docsDir) {
866
- return {
867
- sources: srcs,
868
- docs: base.docs,
869
- docImageFiles: base.files,
870
- inlineSvgs: base.inlineSvgs
871
- };
872
- }
873
- const localeRaw = await collectDocs(buildSpec.docsDir);
874
- const locale = await resolveDocImages(localeRaw, buildSpec.docsDir);
875
- const merged = overlayDocs(base, locale);
876
- return {
877
- sources: srcs,
878
- docs: merged.docs,
879
- docImageFiles: merged.files,
880
- inlineSvgs: merged.inlineSvgs
881
- };
1115
+ const tree = tutorialsDir && tutorialTree.length > 0 ? await resolveTutorialImages(tutorialTree, tutorialsDir, images) : tutorialTree;
1116
+ const md = readme ? await rewriteImageRefs(readme, process.cwd(), images) : readme;
1117
+ await resolveDocletImages(data, images);
1118
+ return { tutorialTree: tree, readme: md };
882
1119
  }
883
1120
  );
1121
+ const imageFiles = images.files;
1122
+ const allInlineSvgs = images.inlineSvgs;
884
1123
  const docGroups = normalizeDocGroups(opts.docGroups);
885
1124
  const defaultDocGroup = typeof opts.defaultDocGroup === "string" && opts.defaultDocGroup.trim().length > 0 ? opts.defaultDocGroup.trim() : void 0;
886
1125
  const sectionOrder = normalizeSectionOrder(opts.sectionOrder);
@@ -889,8 +1128,8 @@ async function publish(data, opts, tutorials) {
889
1128
  const playground = normalizePlayground(opts.playground);
890
1129
  const siteOptions = {
891
1130
  ...pkg ? { pkg } : {},
892
- ...readme ? { readme } : {},
893
- ...tutorialTree.length > 0 ? { tutorials: tutorialTree } : {},
1131
+ ...resolvedReadme ? { readme: resolvedReadme } : {},
1132
+ ...resolvedTutorials.length > 0 ? { tutorials: resolvedTutorials } : {},
894
1133
  ...sources.length > 0 ? { sources } : {},
895
1134
  ...sources.length > 0 && sourceLinkToComment ? { sourceLinkToComment } : {},
896
1135
  ...docs.length > 0 ? { docs } : {},
@@ -952,7 +1191,11 @@ async function publish(data, opts, tutorials) {
952
1191
  },
953
1192
  destination: absoluteDestination,
954
1193
  islandCacheDir,
955
- inlineSvgs,
1194
+ inlineSvgs: allInlineSvgs,
1195
+ // Emit sitemap.xml when a public site URL is configured (the protocol needs
1196
+ // absolute URLs). In a localized build each locale's basePath yields that
1197
+ // locale's URLs, so each locale dir gets its own sitemap.
1198
+ ...nonEmptyString(opts.siteUrl) ? { siteUrl: opts.siteUrl.trim() } : {},
956
1199
  // Build mode: render chrome in the locale (SSR provider + island seeding)
957
1200
  // and, with >1 locale, mount the language switcher.
958
1201
  ...buildSpec ? {
@@ -966,13 +1209,38 @@ async function publish(data, opts, tutorials) {
966
1209
  } : {}
967
1210
  })
968
1211
  );
969
- const outputFiles = [
1212
+ const generatedFiles = [
970
1213
  ...result.files,
971
1214
  ...logoFiles,
972
1215
  ...customAssets.files,
973
- ...docImageFiles,
1216
+ ...imageFiles,
974
1217
  ...favicon?.files ?? []
975
1218
  ];
1219
+ const staticOutputFiles = [];
1220
+ if (staticFiles) {
1221
+ const generatedPaths = new Set(generatedFiles.map((f) => f.path));
1222
+ const RESERVED_PREFIXES = ["_assets/", "_islands/", "pagefind/"];
1223
+ let skippedConsumed = 0;
1224
+ for (const f of staticFiles.files) {
1225
+ if (images.consumed.has(f.absSource)) {
1226
+ skippedConsumed++;
1227
+ continue;
1228
+ }
1229
+ if (generatedPaths.has(f.outputPath) || RESERVED_PREFIXES.some((p) => f.outputPath.startsWith(p))) {
1230
+ console.warn(
1231
+ `clean-jsdoc-theme: static file '${f.outputPath}' would clobber generated output; skipping it.`
1232
+ );
1233
+ continue;
1234
+ }
1235
+ staticOutputFiles.push({ path: f.outputPath, contents: f.contents });
1236
+ }
1237
+ if (staticFiles.files.length > 0) {
1238
+ console.log(
1239
+ `clean-jsdoc-theme: staticFiles \u2014 copied ${staticOutputFiles.length} file(s) verbatim` + (skippedConsumed > 0 ? ` (${skippedConsumed} served hashed via _assets/)` : "") + "."
1240
+ );
1241
+ }
1242
+ }
1243
+ const outputFiles = [...generatedFiles, ...staticOutputFiles];
976
1244
  if (!buildSpec && cleanOutputDirEnabled(opts)) {
977
1245
  await progress.stage(
978
1246
  "Cleaning output",
@@ -1019,7 +1287,9 @@ async function publish(data, opts, tutorials) {
1019
1287
  export {
1020
1288
  cleanOutputDirEnabled,
1021
1289
  collectDocs,
1290
+ collectStaticFiles,
1022
1291
  computeRelPaths,
1292
+ createImageCollector,
1023
1293
  hasMarkdownPlugin,
1024
1294
  normalizeColors,
1025
1295
  normalizeCopyPage,
@@ -1029,12 +1299,18 @@ export {
1029
1299
  normalizePageNav,
1030
1300
  normalizePlayground,
1031
1301
  normalizeSectionOrder,
1302
+ normalizeStaticFilesConfig,
1032
1303
  outputSourceFilesEnabled,
1033
1304
  overlayDocs,
1034
1305
  publish,
1306
+ readStaticFilesConfig,
1035
1307
  resolveDocImages,
1308
+ resolveDocletImages,
1036
1309
  resolveFavicon,
1037
1310
  resolveFooter,
1038
- sourceLinkToCommentEnabled
1311
+ resolveTutorialImages,
1312
+ sourceLinkToCommentEnabled,
1313
+ staticFileIncluded,
1314
+ staticFileOutputName
1039
1315
  };
1040
1316
  //# sourceMappingURL=publish.mjs.map