sanity-with-mdx-deck

Generate mdx-deck from Sanity.io

Stars
3

Sanity with mdx-deck

mdx-deck is a mdx based presentation deck. Sanity is a real-time hosted backend for structured content. This is an example of how to create and store your presentations in the Sanity Studio and export them as mdx-decks.

Get started

Add mdx-deck-schema to your sanity project

  • Copy and put these files in your schema-folder and import them to schema.js

Generate decks

You can remix this online Glitch app and do the following:

  • Add your project id, dataset name, and deck document id to sanityConfig.json
  • Run sanity cors add https://<your-glitch-app-name>.glitch.com in your command line interface, or in your project settings on manage.sanity.io
  • Wait for the build to finish and open https://.glitch.com