github-actions
released this
26 Mar 20:49
·
803 commits
to main
since this release
Minor Changes
-
a7bae02: Reformat
createSource.all
method to return an array instead of an object.const allDocs = createSource('docs/*.mdx') ---Object.values(allDocs.all()).map((doc) => ...) +++allDocs.all().map((doc) => ...)
-
7942259: Move source item
gitMetadata
to top-level fields.import { MetadataRoute } from 'next' import { allData } from 'data' export default function sitemap(): MetadataRoute.Sitemap { return Object.values(allData.all()).map((data) => ({ url: `https://mdxts.dev/${data.pathname}`, --- lastModified: data.gitMetadata.updatedAt, +++ lastModified: data.updatedAt, })) }
-
305d1a4: Throw error if attempting to use git metadata and repo is shallowly cloned.
-
ba37a05: Adds
url
field to source item that concatenatessiteUrl
withpathname
. -
e487e1f: Adds a remark plugin to transform relative ordered links:
--- [./02.rendering.mdx] +++ [./rendering]