Skip to content

Releases: souporserious/mdxts

mdxts@0.13.0

03 Apr 08:22
9f692de
Compare
Choose a tag to compare

Minor Changes

  • 88b9e10: Simplify MDXContent to not include plugins by default and instead expose new remarkPlugins, rehypePlugins, and baseUrl props.
  • ad09ddb: Moves frontMatter from Webpack loader to static getAllData utility so front matter metadata is available when using the createSource.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

03 Apr 08:22
9f692de
Compare
Choose a tag to compare

Patch Changes

  • 332af8f: Only install mdxts dependency when onboarding.

mdxts@0.12.1

02 Apr 17:40
7b02fe1
Compare
Choose a tag to compare

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

26 Mar 20:49
681c067
Compare
Choose a tag to compare

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 concatenates siteUrl with pathname.

  • e487e1f: Adds a remark plugin to transform relative ordered links:

    --- [./02.rendering.mdx]
    +++ [./rendering]

Patch Changes

  • fc74fb9: Fixes CodeBlock allowCopy prop still showing copy button when set to false.
  • b7da458: Fixes code blocks being transformed when wrapping headings in ShouldRenderTitle.

mdxts@0.11.0

24 Mar 22:16
Compare
Choose a tag to compare

Minor Changes

  • 90863ba: Adds RSS feed helper for createSource and mergeSources:

    // 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 popular remark-smartypants package.

  • 7367b1d: Adds ISO 8601 duration to readingTime metadata for easier use with time HTML element.

  • e04f4f6: Adds createdAt, updatedAt, and authors fields to createSource item. This implementation is inspired by unified-infer-git-meta.

  • 9c6d65a: Adds readingTime field to createSource 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 an index file.

mdxts@0.10.1

11 Mar 18:08
a2a2c16
Compare
Choose a tag to compare

Patch Changes

  • d16f84d: Reverts 06e5c20 which merged default MDXComponents into MDXContent components as it causes an infinite loop.

mdxts@0.10.0

11 Mar 07:51
7074a41
Compare
Choose a tag to compare

Minor Changes

  • 2b60fa0: Add same remark and rehype plugins used in mdxts/next to MDXContent component.
  • 06e5c20: Merge default MDXComponents into MDXContent components.
  • 2bf8b02: Allow passing a language to inline code in MDX like js const a = '1'.

Patch Changes

  • ae3d6a3: Fix metadata analysis to account for MDX syntax.
  • 1b2b057: Fix example names not being parsed as a title.
  • 4b9314c: Fix missing theme for MDXContent in examples.

mdxts@0.9.1

10 Mar 10:06
b0d7f68
Compare
Choose a tag to compare

Patch Changes

  • 29a923d: Fixes heading level one not being rendered as markdown.
  • 16eabd2: Fix remark plugins not being initialized correctly.
  • 05106f3: Merge data title into metadata if not explicitly defined.

mdxts@0.9.0

07 Mar 22:21
ed1c5ad
Compare
Choose a tag to compare

Minor Changes

  • 16031d0: Adds a renderTitle prop to the Content component returned from createSource to allow overriding the default title for an MDX file.
  • 5707439: Add className and style to CopyButton.
  • c673a16: Add fontSize and lineHeight props to CodeBlock.
  • 849dd1c: Replace isServerOnly field with executionEnvironment that can be either server, client, or isomorphic.
  • 87026e9: Only use inferred description from MDX for metadata.
  • 78fbfbb: Add separate PackageStylesAndScript component for PackageInstallClient 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 theme hoverHighlightBackground.
  • 71f5545: Fix isMainExport field for exportedTypes 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 to allowJs.

mdxts@0.8.2

28 Feb 09:28
b900de2
Compare
Choose a tag to compare

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 if CodeBlock, CodeInline, or ExportedTypes are imported.
  • 8efe0e0: Clean up ExportedTypes declaration type default value.
  • 4a5aa29: Add theme container styles to CodeInline.