Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kmelve/sanity-with-mdx-deck
Generate mdx-deck from Sanity.io
https://github.com/kmelve/sanity-with-mdx-deck
Last synced: 5 days ago
JSON representation
Generate mdx-deck from Sanity.io
- Host: GitHub
- URL: https://github.com/kmelve/sanity-with-mdx-deck
- Owner: kmelve
- Created: 2018-08-28T17:30:35.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-07-30T04:15:57.000Z (over 3 years ago)
- Last Synced: 2024-10-11T16:06:59.521Z (27 days ago)
- Language: JavaScript
- Size: 1010 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-sanity - MDX-deck with Sanity - Generate an [mdx-deck](https://github.com/jxnblk/mdx-deck) from Sanity.io (Integrations / Dashboard plugins)
README
# Sanity with mdx-deck
[![Remix on Glitch](https://cdn.glitch.com/2703baf2-b643-4da7-ab91-7ee2a2d00b5b%2Fremix-button.svg)](https://glitch.com/edit/#!/remix/sanity-with-mdx-deck)
[mdx-deck](https://jxnblk.com/mdx-deck/#0) is a [mdx](https://mdxjs.com/) 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](https://github.com/kmelve/sanity-with-mdx-deck/tree/master/deck-schemas) in your schema-folder and import them to schema.js
### Generate decks
You can remix this [online Glitch app](https://glitch.com/edit/#!/remix/sanity-with-mdx-deck) and do the following:
* Add your `project id`, `dataset name`, and `deck document id` to sanityConfig.json
* Run `sanity cors add https://.glitch.com` in your command line interface, or in your project settings on [manage.sanity.io](https://manage.sanity.io)
* Wait for the build to finish and open [https://.glitch.com](https://.glitch.com)