Giter VIP home page Giter VIP logo

revdown-cli's Introduction

revdown-cli

The markdown-to-reveal.js presentation CLI "transpiler"

Motivation

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.

Dependencies & Features

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.

Install & Run

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:

  1. Install Node.js
  2. Clone this repository

git clone https://github.com/edurbrito/revdown-cli.git

  1. Move to the cloned folder

cd revdown-cli

  1. Install all the dependencies & Add it to your bin folder

npm run bin

Note: You may need to guarantee sudo privileges

  1. Now, on any markdown file, on any folder, in order to generate the reveal.js presentation, run

revdown yourmarkdownfile.md

  1. Follow all the instructions until it finishes the presentation generation

    1. If it is the first time or no configurations were previously saved, it will ask you to choose the theme, the plugins, the highlight theme, the markdown configs, etc... Initial configurations

    2. If the last configurations were saved a first prompt will ask if you want to use them again Cached configurations

  2. Open in your favorite browser the yourmarkdownfile.html file that was created

Test

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:

  1. Install all the dependencies if not done yet

npm install

  1. Run all the unit tests

npm run test

  1. 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.

Documentation

There is currently no documentation for the revdown-cli tool. The full reveal.js documentation is available at revealjs.com.

License

MIT licensed

Copyright (C) 2021 Eduardo Brito, https://github.com/edurbrito, and revdown-cli contributors.

revdown-cli's People

Contributors

edurbrito avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.