Releases: souporserious/mdxts
mdxts@0.13.0
Minor Changes
- 88b9e10: Simplify
MDXContent
to not include plugins by default and instead expose newremarkPlugins
,rehypePlugins
, andbaseUrl
props. - ad09ddb: Moves
frontMatter
from Webpack loader to staticgetAllData
utility so front matter metadata is available when using thecreateSource.all
method. - b42a275: Removes
ShouldRenderTitle
transformation from Webpack loader and now adds it through a remark plugin.
Patch Changes
- e76e18e: Fixes headings getting incremented ids when duplicates do not exist.
create-mdxts@0.3.5
Patch Changes
- 332af8f: Only install
mdxts
dependency when onboarding.
mdxts@0.12.1
Patch Changes
- f35df99: Fixes the
getGitMetadata
utility erroring when running MDXTS in a project that does not have git instantiated. - fa4d329: Fixes the Webpack loader not updating dynamic imports when the
createSource
file pattern directory changes. - d651cd0: Filter empty lines from git log to avoid
getGitMetadata
erroring related to #81. - d3fc5ac: Throw more helpful error if MDX code block is empty.
mdxts@0.12.0
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]
Patch Changes
mdxts@0.11.0
Minor Changes
-
90863ba: Adds RSS feed helper for
createSource
andmergeSources
:// app/rss.xml/route.js import { allData } from "data"; export async function GET() { const feed = allData.rss({ title: "MDXTS - The Content & Documentation SDK for React", description: "Type-safe content and documentation.", copyright: `©${new Date().getFullYear()} @souporserious`, }); return new Response(feed, { headers: { "Content-Type": "application/rss+xml", }, }); }
-
4121eb9: Replaces
remark-typography
with the more popularremark-smartypants
package. -
7367b1d: Adds ISO 8601 duration to
readingTime
metadata for easier use withtime
HTML element. -
e04f4f6: Adds
createdAt
,updatedAt
, andauthors
fields tocreateSource
item. This implementation is inspired by unified-infer-git-meta. -
9c6d65a: Adds
readingTime
field tocreateSource
item using rehype-infer-reading-time-meta. -
fb0299d: Adds support for Codesandbox embeds in MDX.
Patch Changes
- 6e68e11: Fixes an issue where saving content did not trigger a fast refresh locally. This adds a web socket server component to the Content component to ensure a refresh is always triggered.
- fafdcc6: Adds default
feedLinks.rss
option when creating rss feeds. - df41a98: Fixes empty
createSource
when targeting JavaScript/TypeScript without anindex
file.
mdxts@0.10.1
mdxts@0.10.0
mdxts@0.9.1
mdxts@0.9.0
Minor Changes
- 16031d0: Adds a
renderTitle
prop to theContent
component returned fromcreateSource
to allow overriding the default title for an MDX file. - 5707439: Add
className
andstyle
toCopyButton
. - c673a16: Add
fontSize
andlineHeight
props toCodeBlock
. - 849dd1c: Replace
isServerOnly
field withexecutionEnvironment
that can be eitherserver
,client
, orisomorphic
. - 87026e9: Only use inferred description from MDX for metadata.
- 78fbfbb: Add separate
PackageStylesAndScript
component forPackageInstallClient
styles and local storage hydration. - 758ab24: Sync package manager state across other component instances and windows.
Patch Changes
- c753d53: Fix headings below level one getting wrapped with
ShouldRenderTitle
. - ddf8870: Add
name
support for type aliases, interfaces, and enum declarations. - 000acf3: Fix default
Symbol
highlight color to be a transparent version of the themehoverHighlightBackground
. - 71f5545: Fix
isMainExport
field forexportedTypes
to correctly interpret which export declaration is the main export based on a matching name. - 65824b9: Fix JavaScript code blocks erroring with
cannot read undefined reading flags, escapedName
by setting ts-morph project config toallowJs
.
mdxts@0.8.2
Patch Changes
- 5fd018d: Use better theme variables that work across various themes for
CodeBlock
component. - 50e47bc: Fix
@internal
JSDoc tag analysis for variable declarations. - 23e6ab9: Add
workingDirectory
prop through loader ifCodeBlock
,CodeInline
, orExportedTypes
are imported. - 8efe0e0: Clean up
ExportedTypes
declaration type default value. - 4a5aa29: Add theme container styles to
CodeInline
.