@slidewright/create
Makes a project for a Markdown deck. To make a project in the my-talk
folder, run this command:
npm create @slidewright my-talkThe command also works with pnpm, Yarn and Bun: pnpm create @slidewright,
yarn create @slidewright and bun create @slidewright.
Without a folder name, the command asks for one in a terminal. When there
is no terminal, it uses my-talk. The folder must be empty, or not exist.
The command puts these files in it:
my-talk/
├── slides.md # a starter deck that shows the main features
├── style.css # theme properties, loaded after the default theme
├── package.json # dev, build and export scripts with @slidewright/cli
├── README.md # the commands, for the package manager that you used
└── .gitignoreTo install the packages and present the deck at http://localhost:3030, run these commands:
cd my-talk
npm install
npm run devTo build the deck into a static site in the dist folder, run this command
in the project:
npm run buildYou need Node.js 20.19 or later in version 20, or Node.js 22.12 or later.
@slidewright/cli tells the commands, and how to export
the deck to PDF. The deck syntax reference tells the
deck format.