MCPcopy
hub / github.com/Snailclimb/JavaGuide / readSitemap

Function readSitemap

scripts/docsearch-index.mjs:67–73  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65}
66
67async function readSitemap() {
68 if (!sourceDir) {
69 return fetchText(sitemapUrl);
70 }
71
72 return readFile(path.join(sourceDir, "sitemap.xml"), "utf8");
73}
74
75async function readPageHtml(url) {
76 if (!sourceDir) {

Callers 1

mainFunction · 0.85

Calls 1

fetchTextFunction · 0.85

Tested by

no test coverage detected