8000 GitHub - meganetaaan/slide · GitHub
[go: up one dir, main page]

Skip to content
meganetaaanPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

66 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reveal.js Boilerplate

This is a boilerplate to use Reveal.JS easily with Gulp, Jade and Stylus.

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

Getting Started

Installation

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

# Clone this repository
$ git clone git://github.com/willianjusten/reveal-boilerplate.git new_project
$ cd new_project

# install dependencies
$ npm install
# run tasks and serve
$ gulp

With the commands above, you have everything to start.

new_project -
	/build -
		/css
			main.css
		/js
		    /vendor
			main.js
		index.html
	/src -
		/js
		/slides
		/styl
			/highlight-themes
			/reveal-themes
			/vendor
			main.styl
		/templates
			/inc
				head.jade
				scripts.jade
	.gitignore	
	gulpfile.js
	package.json
	Readme.md

How to Use

  • Write your slides in src/slides folder in separated files using the jade syntax and add them on templates/index.jade.

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

  • Look for different themes on src/styl/reveal-themes and call them on src/styl/main.styl.

  • For highlight themes you can see on src/styl/highlight-themes.

How to use with git and deploy to Github Pages

When you clone this repo, every git inform 5DA3 ation 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:

# 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 js: execute js files
  • gulp notes: copy speaker notes
  • gulp stylus: compile stylus 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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages

0