The markdown-to-reveal.js presentation CLI "transpiler"
The main goal is to automate the process of generating an HTML presentation from any Markdown file. It can be accomplished with the help of the open source HTML presentation framework reveal.js that comes with a bunch of cool features for creating amazing browser presentations. This tool allows users to generate their presentations in-place from any of their Markdown files.
The main code was written entirely in TypeScript.
It queries the GitHub API to fetch the reveal.js repo, caching the user configurations when needed.
For the CLI interface, inquirer and chalk were used.
Not tested with Windows or Mac. Some (directory) changes may be needed in order to work on these systems.
To install revdown-cli, follow this:
- Install Node.js
- Clone this repository
git clone https://github.com/edurbrito/revdown-cli.git
- Move to the cloned folder
cd revdown-cli
- Install all the dependencies & Add it to your
bin
folder
npm run bin
Note: You may need to guarantee
sudo
privileges
- Now, on any markdown file, on any folder, in order to generate the reveal.js presentation, run
revdown yourmarkdownfile.md
-
Follow all the instructions until it finishes the presentation generation
-
Open in your favorite browser the
yourmarkdownfile.html
file that was created
Multiple Unit Tests made with QUnit were created for some of the functions and classes. These tests can be found inside the test folder. To run them:
- Install all the dependencies if not done yet
npm install
- Run all the unit tests
npm run test
- To test the tool with an actual markdown test file (see the example file here), run
npm run test-file
The result can be found at test/example/test.html.
There is currently no documentation for the revdown-cli tool. The full reveal.js documentation is available at revealjs.com.
MIT licensed
Copyright (C) 2021 Eduardo Brito, https://github.com/edurbrito, and revdown-cli contributors.