Skip to content

BendJS/presentation_boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

______                          _     ______       _ _                 _       _
| ___ \                        | |    | ___ \     (_) |               | |     | |
| |_/ /___ _ __ ___   __ _ _ __| | __ | |_/ / ___  _| | ___ _ __ _ __ | | __ _| |_ ___
|    // _ \ '_ ` _ \ / _` | '__| |/ / | ___ \/ _ \| | |/ _ \ '__| '_ \| |/ _` | __/ _ \
| |\ \  __/ | | | | | (_| | |  |   <  | |_/ / (_) | | |  __/ |  | |_) | | (_| | ||  __/
\_| \_\___|_| |_| |_|\__,_|_|  |_|\_\ \____/ \___/|_|_|\___|_|  | .__/|_|\__,_|\__\___|
                                                                | |
                                                                |_|

This is a boilerplate to use remark easily with Gulp, Jade and scss.

To know more about remark and how to use, read the docs here.

Check our demo or this remark slideshow for a brief introduction.

Getting Started

Installation

First of all, install the dependencies to run this boilerplate.

# Clone this repository
$ git clone [email protected]:BendJS/presentation_boilerplate.git my-presentation
$ cd my-presentation

# install dependencies
$ yarn (or npm i)
# run tasks and serve
$ gulp

With the commands above, you have everything to start.

.
├── build
│   ├── css
│   │   └── main.css
│   ├── index.html
│   └── js
│       ├── main.js
│       └── vendor
│           ├── remark-fallback.js
│           ├── remark-language.js
│           └── remark.min.js
├── gulp
│   ├── index.js
│   ├── paths.js
│   └── tasks
│       ├── browser-sync.js
│       ├── build.js
│       ├── default.js
│       ├── deploy-pages.js
│       ├── imagemin.js
│       ├── jade.js
│       ├── js.js
│       ├── scss.js
│       └── watch.js
├── gulpfile.js
├── package.json
├── README.md
└── src
    ├── js
    │   ├── main.js
    │   └── vendor
    │       ├── remark-fallback.js
    │       ├── remark-language.js
    │       └── remark.min.js
    ├── presentation.md
    ├── sass
    │   ├── main.scss
    │   ├── vendor
    │   |   ├── bulma.css
    │   ├── base
    │   |   ├── default.scss
    │   |   ├── _variables.scss
    │   └── themes
    │       └── bendjs.scss
    └── templates
        ├── inc
        │   ├── head.jade
        │   └── scripts.jade
        └── index.jade

How to Use

  • Write your slides in presentation.md in separated files using the Markdown syntax. If you want to use an individual slide per file, create a /src/slides directory, add slides there, and include them in templates/index.jade.

  • If you want to add another script and css use the templates/inc/ folder and call them in the templates/index.jade.

  • For highlight themes you can see in remark Wiki.

How to use with git and deploy to Github Pages

When you clone this repo, every git information will be downloaded to. So, you have to remove all my git stuff to create yours.

# Inside of your project runs to remove git folder.
rm -Rf .git

Next, initialize your git repository:

# init the repo
git init

Commit all files:

# add all files to commit
git add .
# create a commit
git commit -m "Initial commit"

The first deploy needs to be manual:

# creates a gh-pages branch
git checkout -b gh-pages

# push and track the gh-pages branch
git push --set-upstream origin gh-pages

To do next deploys, you just have to run with gulp (or npm run deploy):

# will create a .publish folder with build content
# and push to gh-pages branch.
gulp deploy-pages

Tasks

  • gulp: Initialize watch for changes and a server (localhost:3000);
  • gulp build: Build files;
  • gulp js: Execute js files;
  • gulp sass: Compile scss files;
  • gulp imagemin: Compress image files;
  • gulp watch: Call for watch files;
  • gulp jade: Compile jade files;
  • gulp deploy-pages: Deploy compiled files at build to github on branch gh-pages.

History

For detailed changelog, see Releases.

License

MIT License © Breno Polanski

About

Boilerplate for creating slideshows/presentations in remark.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published