Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nakajima/slidedown
Browse files Browse the repository at this point in the history
Conflicts:
	Rakefile
	templates/javascripts/slides.js
  • Loading branch information
nakajima committed Mar 4, 2010
2 parents a96ef10 + 99596b7 commit 75bb47c
Show file tree
Hide file tree
Showing 6 changed files with 4,326 additions and 4,354 deletions.
38 changes: 25 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ Generate slides with Markdown

## Usage

Write your talk. Currently, the syntax highlight lexer defaults to Ruby.
Adding support for specifying languages is in the TODOs.
Write your talk.

!SLIDE

Expand Down Expand Up @@ -35,36 +34,49 @@ Generate the output:

### Custom Styles

To add custom styles to your slides, just create stylesheets in the same directory as your presentation's markdown file:
To add custom styles to your slides, just create stylesheets in the same directory as your presentation markdown file:

| - presentation-directory
| - slides.md
| - styles.css

The additional styles will be added to your generated slides.

## Navigation

Give your presentation!

* left, right arrows to navigate through slides
* esc to go home

## Syntax Highlighting

slidedown syntax highlighting works just like Lighthouse's:
For Ruby:

@@@ ruby
def foo
:bar
end
def foo
:bar
end
@@@

Or for JavaScript
For Javascript

@@@ js
function foo() {
return 'bar';
}
function foo() {
return 'bar';
}
@@@

For ERb:

@@@ rhtml
<%= @post.created_at.to_s(:fancy) %>
@@@

### Requirements

* RDiscount
* Nokogiri
* makers-mark
* pygments (for syntax highlighting)

## Todo
Expand Down Expand Up @@ -100,4 +112,4 @@ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
OTHER DEALINGS IN THE SOFTWARE.
2 changes: 0 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,3 @@ task :gemspec do
f.write gem_spec.to_yaml
end
end


1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1.2
Loading

0 comments on commit 75bb47c

Please sign in to comment.