0.9.0
- Adds support for standalone docs pages, picked up by defining a
docsRoot
in the plugin options - Adds support for an index page, pass
index
toswingsetOptions
- Each component now has its own route, instead of rendering being driven by a query parameter
Here's what the implementation looks like now:
// in /pages/[[...swingset]].jsx
import createPage from 'swingset/page'
import { createStaticProps, createStaticPath } from 'swingset/server'
export default createPage()
export const getStaticPaths = createStaticPaths()
export const getStaticProps = createStaticProps({
/* mdxOptions = {} */
})