Spectacle download5/19/2023 This approach is where you use the library's tags to compose your presentation. ![]() Note: If you want to manually create the build infrastructure for MDX support in a Spectacle deck, you can add the spectacle-mdx-loader plugin to your webpack configuration. To see a more complete examples of a presentation generated with MDX or Markdown, please check out our three samples available for use with the CLI as well as manual builds:įor a more thorough understanding of the features and flags provided by the CLI, please see its complete documentation. It can be installed globally, locally, or used via npx. With this package, you can either generate a new presentation (with the spectacle-boilerplate tool) or you can serve up an existing MDX/Markdown file as a presentation (with spectacle -s). md file, which is accomplished with spectacle-cli. ![]() This approach involves statically generating your slides from a. Writing your Presentation Īfter installing Spectacle, all of your presentation and style logic will live in a main file, while your content exists either inline (with JSX) or in a separate markdown file (using MDX). To start the development server at port 3100 against a Markdown-based deck (found in examples/md) use yarn start:md or npm run start:md. To start the development server at port 3000 against a JavaScript-based deck (found in examples/js) use yarn start:js or npm run start:js. ![]() All components designed to be part of the Spectacle API must be exported in src/index.tsx. The src directory contains all the source for the Spectacle library.
0 Comments
Leave a Reply. |