Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/henrixounez/termslides

Add terminals into you reveal.js presentations
https://github.com/henrixounez/termslides

Last synced: 29 days ago
JSON representation

Add terminals into you reveal.js presentations

Awesome Lists containing this project

README

        

# TermSlides
Add terminals into you reveal.js presentations

## Pre-Installation :
- You will need those package to run the install :
- npm
- node

## Installation Reveal.js and Xterm.js dependencies :
```
git clone https://github.com/Henrixounez/TermSlides.git
cd TermSlides
npm install
cd node_modules/xterm/
npm install
```
## How to use :
- Create a slide on Slides.com
- Add in your slide HTML :
```


```
- Export your file in HTML
- Use termslides.js to convert your terminal divs into real terminals
```
node termslides.js
```
- Then you can start reveal.js in root folder using
```
npm run start
```
- Enjoy !
- You can access your slide using http://127.0.0.1:8000/\



- You can try right now, an HTML Slide is available to test (demo.html)


## Customization :
- You can change default shell by modifying this line in app.js :

```
var entrypoint = process.platform === 'win32' ? 'cmd.exe' : 'bash'; //You can change to your favorite shell here
```

### Optional div attributes :
* data-cwd="\"
- Spawns terminal in designated folder
* data-cmd="\"
- Terminal execute a command on spawn
* data-cmd-nowrite="\"
- Write a command on spawn without executing it
* data-display="none"
- Terminal will spawn collapsed
* data-cols="\"
- Terminal columns number
* data-rows="\"
- Terminal rows number
* data-fontsize="\"
- Terminal font size

----
## Based of the work made by :
- Reveal.js: https://github.com/hakimel/reveal.js/
- Xterm.js : https://github.com/xtermjs/xterm.js/
- Terminal implementation : https://github.com/jkinkead/reveal.js/tree/xterm_base
- Terminal styles : https://github.com/krasimir/evala