docstra 1.7.0 → 1.7.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/server/index.js
CHANGED
|
@@ -2024,13 +2024,7 @@ function createSource(docs) {
|
|
|
2024
2024
|
data: safeData
|
|
2025
2025
|
};
|
|
2026
2026
|
}),
|
|
2027
|
-
// Returns
|
|
2028
|
-
// <url>
|
|
2029
|
-
// <loc>https://example.com/page</loc>
|
|
2030
|
-
// <lastmod>2022-01-01</lastmod>
|
|
2031
|
-
// <changefreq>monthly</changefreq>
|
|
2032
|
-
// <priority>0.5</priority>
|
|
2033
|
-
// </url>
|
|
2027
|
+
// Returns sitemap
|
|
2034
2028
|
generateSitemap: ({
|
|
2035
2029
|
baseUrl,
|
|
2036
2030
|
lastmod,
|
|
@@ -2038,7 +2032,7 @@ function createSource(docs) {
|
|
|
2038
2032
|
priority
|
|
2039
2033
|
}) => {
|
|
2040
2034
|
return docs.map((d) => ({
|
|
2041
|
-
url: `${baseUrl}/${d.slug.replace("index", "")}`,
|
|
2035
|
+
url: `${baseUrl}/${d.slug.replace("index", "docs")}`,
|
|
2042
2036
|
lastModified: lastmod,
|
|
2043
2037
|
changeFrequency: changefreq,
|
|
2044
2038
|
priority
|