A preprocessor for mdbook to add GraphQL playgrounds.
Add to book.toml
:
```toml
[preprocessor.graphql-playground]
command = "mdbook-graphql-playground"
renderer = ["html"]
[output]
[output.html] additional-js = ["graphql-playground-react-middleware.js", "graphql-playground.js"] additional-css = ["graphql-playground.css"] ```
shell
cp assets/graphql-playground.css <book_dir>
cp assets/graphql-playground.js <book_dir>
cp assets/graphql-playground-react-middleware.js <book_dir>
cp assets/images/* <book_dir>/images/