slidox 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 91c071cfc463c0558d47e6d41102157699e9b50e
4
+ data.tar.gz: 609e48e0b57709a797b01851bcf263f79a5c3836
5
+ SHA512:
6
+ metadata.gz: bd7c7aa5cc449abf7078a672a3eb09d1f356963bc3ff8690e397f3a8b7309e0319643d8108f53004d23af9537b9944541cabc02a5c16c85f911907cb06ef6c97
7
+ data.tar.gz: 96b05a1e943f3d67c65943a6f4840186ac6b3d4e6ca4880ae11256d16074277252dc70abb9917452376fc02490d1a7d6acf15d1beb480f8bdd6bac998d897b08
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,16 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - "2.1.2"
5
+
6
+ branches:
7
+ only:
8
+ - master
9
+
10
+ before_install:
11
+ - sudo apt-get -qq update
12
+ - sudo apt-get install -y libicu-dev
13
+ - sudo apt-get install -y cmake
14
+ - gem install bundler
15
+
16
+ script: bundle exec rspec spec
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in slidox.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2016 Dalibor Nasevic
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,58 @@
1
+ ![Travis status](https://travis-ci.org/dalibor/slidox.png)
2
+
3
+ # Slidox
4
+
5
+ Markdown to PDF and HTML conversion tool, useful for building presentations and other documents.
6
+
7
+ ## Dependencies
8
+
9
+ ```
10
+ sudo apt-get install libicu-dev
11
+ sudo apt-get install cmake
12
+ ```
13
+
14
+ ## Installation
15
+
16
+ Add this line to your application's Gemfile:
17
+
18
+ ```ruby
19
+ gem 'slidox'
20
+ ```
21
+
22
+ And then execute:
23
+
24
+ ```bash
25
+ $ bundle
26
+ ```
27
+
28
+ Or install it yourself as:
29
+
30
+ ```bash
31
+ $ gem install slidox
32
+ ```
33
+
34
+ ## Usage
35
+
36
+ Generate new project
37
+
38
+ ```bash
39
+ slidox new example
40
+ ```
41
+
42
+ To build HTML and PDF from the project:
43
+
44
+ ```bash
45
+ cd example
46
+ slidox build
47
+ ```
48
+
49
+ You can tweak `config.yml` for export options and change styles with custom assets.
50
+
51
+
52
+ ## Contributing
53
+
54
+ 1. Fork it ( https://github.com/dalibor/slidox/fork )
55
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
56
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
57
+ 4. Push to the branch (`git push origin my-new-feature`)
58
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/bin/slidox ADDED
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ path = File.expand_path(File.dirname(__FILE__))
4
+ $:<< "#{path}/../lib"
5
+
6
+ require 'slidox'
7
+ require 'slidox/cli'
8
+
9
+ Slidox::CLI.start(ARGV, debug: true)
data/lib/slidox.rb ADDED
@@ -0,0 +1,6 @@
1
+ require "slidox/version"
2
+
3
+ module Slidox
4
+ autoload :Builder, 'slidox/builder'
5
+ autoload :CLI, 'slidox/cli'
6
+ end
@@ -0,0 +1,106 @@
1
+ require 'fileutils'
2
+ require 'pathname'
3
+ require 'yaml'
4
+ require 'github/markdown'
5
+ require 'nokogiri'
6
+ require 'pdfkit'
7
+ require 'pygments'
8
+
9
+ module Slidox
10
+ class Builder
11
+
12
+ def build
13
+ prepare_target_dirs
14
+
15
+ html = styles + slides.join(page_break)
16
+
17
+ save_html(html)
18
+ save_pdf(html)
19
+ end
20
+
21
+ private
22
+
23
+ def slides
24
+ Dir.glob("#{slides_path}/*.md").to_a.sort.map do |file|
25
+ text = File.read(file)
26
+
27
+ html = GitHub::Markdown.to_html(text, :markdown)
28
+
29
+ doc = Nokogiri::HTML::DocumentFragment.parse(html)
30
+
31
+ doc.search('pre').each do |node|
32
+ next unless lang = node['lang']
33
+
34
+ html = Pygments.highlight(node.inner_text, lexer: lang.to_sym, options: {linespans: 'line'})
35
+ node = node.replace(html).first
36
+ node["class"] = [node["class"], "highlight-#{lang}"].compact.join(" ")
37
+ end
38
+
39
+ doc.search('img').each do |node|
40
+ node['src'] = "#{assets_path}/#{node['src']}"
41
+ end
42
+
43
+ doc.to_s
44
+ end
45
+
46
+ end
47
+
48
+ def styles
49
+ styles = Dir.glob("#{assets_path}/*.css").map { |file| File.read(file) }
50
+ styles = styles.map { |style| "<style>#{style}</style>" }.join
51
+
52
+ styles.gsub(/url\(['"](?<file>.*)['"]\)/) do |match|
53
+ if $~[:file][0] == "/"
54
+ match
55
+ else
56
+ match.gsub($~[:file], "#{assets_path}/#{$~[:file]}")
57
+ end
58
+ end
59
+ end
60
+
61
+ def prepare_target_dirs
62
+ FileUtils::mkdir_p(html_target.dirname)
63
+ FileUtils::mkdir_p(pdf_target.dirname)
64
+ end
65
+
66
+ def save_html(html)
67
+ File.write(html_target, html)
68
+ end
69
+
70
+ def save_pdf(html)
71
+ PDFKit.new(html, pdf_options).to_file(pdf_target)
72
+ end
73
+
74
+ def slides_path
75
+ File.join(root_path, 'slides')
76
+ end
77
+
78
+ def assets_path
79
+ File.join(root_path, 'assets')
80
+ end
81
+
82
+ def pdf_options
83
+ config['pdf']
84
+ end
85
+
86
+ def html_target
87
+ Pathname.new(config['target']['html'])
88
+ end
89
+
90
+ def pdf_target
91
+ Pathname.new(config['target']['pdf'])
92
+ end
93
+
94
+ def page_break
95
+ "<div style='page-break-before:always'></div>"
96
+ end
97
+
98
+ def root_path
99
+ Dir.pwd
100
+ end
101
+
102
+ def config
103
+ @config ||= YAML.load_file(File.join(root_path, 'config.yml'))
104
+ end
105
+ end
106
+ end
data/lib/slidox/cli.rb ADDED
@@ -0,0 +1,32 @@
1
+ require 'thor'
2
+
3
+ module Slidox
4
+ class CLI < Thor
5
+ include Thor::Actions
6
+
7
+ def self.source_root
8
+ File.expand_path(File.join(File.dirname(__FILE__), 'templates'))
9
+ end
10
+
11
+ desc "new name", "create new slidox"
12
+ def new(name)
13
+ source = self.class.source_root.to_s
14
+ target = File.join(Dir.pwd, name)
15
+
16
+ ['assets', 'slides'].each do |dir|
17
+ Dir.glob("#{source}/#{dir}/*").
18
+ map { |f| f.gsub("#{source}/", '') }.each do |file|
19
+ copy_file(file, File.join(target, file))
20
+ end
21
+ end
22
+
23
+ @name = name
24
+ template('config.yml', File.join(target, 'config.yml'))
25
+ end
26
+
27
+ desc "build", "build slidox"
28
+ def build
29
+ Slidox::Builder.new.build
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,70 @@
1
+ .highlight .hll { background-color: #ffffcc }
2
+ .highlight { background: #151515; color: #e8e8d3; background-color: #151515 }
3
+ .highlight .c { color: #888888; font-style: italic; background-color: #151515 } /* Comment */
4
+ .highlight .err { color: #e8e8d3; background-color: #151515 } /* Error */
5
+ .highlight .g { color: #e8e8d3; background-color: #151515 } /* Generic */
6
+ .highlight .k { color: #8197bf; background-color: #151515 } /* Keyword */
7
+ .highlight .l { color: #e8e8d3; background-color: #151515 } /* Literal */
8
+ .highlight .n { color: #e8e8d3; background-color: #151515 } /* Name */
9
+ .highlight .o { color: #e8e8d3; background-color: #151515 } /* Operator */
10
+ .highlight .x { color: #e8e8d3; background-color: #151515 } /* Other */
11
+ .highlight .p { color: #e8e8d3; background-color: #151515 } /* Punctuation */
12
+ .highlight .cm { color: #888888; font-style: italic; background-color: #151515 } /* Comment.Multiline */
13
+ .highlight .cp { color: #8fbfdc; font-style: italic; background-color: #151515 } /* Comment.Preproc */
14
+ .highlight .c1 { color: #888888; font-style: italic; background-color: #151515 } /* Comment.Single */
15
+ .highlight .cs { color: #888888; font-style: italic; background-color: #151515 } /* Comment.Special */
16
+ .highlight .gd { color: #40000A; font-weight: bold; background-color: #700009 } /* Generic.Deleted */
17
+ .highlight .ge { color: #e8e8d3; background-color: #151515 } /* Generic.Emph */
18
+ .highlight .gr { color: #e8e8d3; background-color: #151515 } /* Generic.Error */
19
+ .highlight .gh { color: #70b950; font-weight: bold; background-color: #151515 } /* Generic.Heading */
20
+ .highlight .gi { color: #D2EBBE; font-weight: bold; background-color: #437019 } /* Generic.Inserted */
21
+ .highlight .go { color: #606060; font-weight: bold; background-color: #151515 } /* Generic.Output */
22
+ .highlight .gp { color: #e8e8d3; background-color: #151515 } /* Generic.Prompt */
23
+ .highlight .gs { color: #e8e8d3; background-color: #151515 } /* Generic.Strong */
24
+ .highlight .gu { color: #70b950; font-weight: bold; background-color: #151515 } /* Generic.Subheading */
25
+ .highlight .gt { color: #e8e8d3; background-color: #902020 } /* Generic.Traceback */
26
+ .highlight .kc { color: #8197bf; background-color: #151515 } /* Keyword.Constant */
27
+ .highlight .kd { color: #8197bf; background-color: #151515 } /* Keyword.Declaration */
28
+ .highlight .kn { color: #8197bf; background-color: #151515 } /* Keyword.Namespace */
29
+ .highlight .kp { color: #8197bf; background-color: #151515 } /* Keyword.Pseudo */
30
+ .highlight .kr { color: #8197bf; background-color: #151515 } /* Keyword.Reserved */
31
+ .highlight .kt { color: #ffb964; background-color: #151515 } /* Keyword.Type */
32
+ .highlight .ld { color: #e8e8d3; background-color: #151515 } /* Literal.Date */
33
+ .highlight .m { color: #e8e8d3; background-color: #151515 } /* Literal.Number */
34
+ .highlight .s { color: #99ad6a; background-color: #151515 } /* Literal.String */
35
+ .highlight .na { color: #fad07a; background-color: #151515 } /* Name.Attribute */
36
+ .highlight .nb { color: #e8e8d3; background-color: #151515 } /* Name.Builtin */
37
+ .highlight .nc { color: #e8e8d3; background-color: #151515 } /* Name.Class */
38
+ .highlight .no { color: #cf6a4c; background-color: #151515 } /* Name.Constant */
39
+ .highlight .nd { color: #e8e8d3; background-color: #151515 } /* Name.Decorator */
40
+ .highlight .ni { color: #799d6a; background-color: #151515 } /* Name.Entity */
41
+ .highlight .ne { color: #e8e8d3; background-color: #151515 } /* Name.Exception */
42
+ .highlight .nf { color: #fad07a; background-color: #151515 } /* Name.Function */
43
+ .highlight .nl { color: #e8e8d3; background-color: #151515 } /* Name.Label */
44
+ .highlight .nn { color: #e8e8d3; background-color: #151515 } /* Name.Namespace */
45
+ .highlight .nx { color: #e8e8d3; background-color: #151515 } /* Name.Other */
46
+ .highlight .py { color: #e8e8d3; background-color: #151515 } /* Name.Property */
47
+ .highlight .nt { color: #8197bf; background-color: #151515 } /* Name.Tag */
48
+ .highlight .nv { color: #c6b6ee; background-color: #151515 } /* Name.Variable */
49
+ .highlight .ow { color: #e8e8d3; background-color: #151515 } /* Operator.Word */
50
+ .highlight .w { color: #e8e8d3; background-color: #151515 } /* Text.Whitespace */
51
+ .highlight .mf { color: #e8e8d3; background-color: #151515 } /* Literal.Number.Float */
52
+ .highlight .mh { color: #e8e8d3; background-color: #151515 } /* Literal.Number.Hex */
53
+ .highlight .mi { color: #e8e8d3; background-color: #151515 } /* Literal.Number.Integer */
54
+ .highlight .mo { color: #e8e8d3; background-color: #151515 } /* Literal.Number.Oct */
55
+ .highlight .sb { color: #99ad6a; background-color: #151515 } /* Literal.String.Backtick */
56
+ .highlight .sc { color: #99ad6a; background-color: #151515 } /* Literal.String.Char */
57
+ .highlight .sd { color: #99ad6a; background-color: #151515 } /* Literal.String.Doc */
58
+ .highlight .s2 { color: #99ad6a; background-color: #151515 } /* Literal.String.Double */
59
+ .highlight .se { color: #99ad6a; background-color: #151515 } /* Literal.String.Escape */
60
+ .highlight .sh { color: #99ad6a; background-color: #151515 } /* Literal.String.Heredoc */
61
+ .highlight .si { color: #99ad6a; background-color: #151515 } /* Literal.String.Interpol */
62
+ .highlight .sx { color: #99ad6a; background-color: #151515 } /* Literal.String.Other */
63
+ .highlight .sr { color: #99ad6a; background-color: #151515 } /* Literal.String.Regex */
64
+ .highlight .s1 { color: #99ad6a; background-color: #151515 } /* Literal.String.Single */
65
+ .highlight .ss { color: #99ad6a; background-color: #151515 } /* Literal.String.Symbol */
66
+ .highlight .bp { color: #e8e8d3; background-color: #151515 } /* Name.Builtin.Pseudo */
67
+ .highlight .vc { color: #c6b6ee; background-color: #151515 } /* Name.Variable.Class */
68
+ .highlight .vg { color: #c6b6ee; background-color: #151515 } /* Name.Variable.Global */
69
+ .highlight .vi { color: #c6b6ee; background-color: #151515 } /* Name.Variable.Instance */
70
+ .highlight .il { color: #e8e8d3; background-color: #151515 } /* Literal.Number.Integer.Long */
@@ -0,0 +1,33 @@
1
+ .highlight {
2
+ font-family: "Inconsolata", Monaco, Courier, monospace;
3
+ border: 1px solid #efefef;
4
+ border-left: 2em solid #efefef;
5
+ position: relative;
6
+ margin: 1em 0;
7
+ }
8
+ .highlight pre {
9
+ counter-reset: linenumbers;
10
+ margin: 0;
11
+ overflow: auto;
12
+ padding: 0 0.5em;
13
+ }
14
+ .highlight pre > span {
15
+ display: block;
16
+ padding: 0.25em;
17
+ }
18
+ .highlight pre > span:before {
19
+ font-size: .9em;
20
+ color: #aaa;
21
+ content: counter(linenumbers);
22
+ counter-increment: linenumbers;
23
+ left: -3.2em;
24
+ position: absolute;
25
+ text-align: right;
26
+ width: 2.5em;
27
+ -webkit-touch-callout: none;
28
+ -webkit-user-select: none;
29
+ -khtml-user-select: none;
30
+ -moz-user-select: none;
31
+ -ms-user-select: none;
32
+ user-select: none;
33
+ }
@@ -0,0 +1,28 @@
1
+ @font-face {
2
+ font-family: 'OpenSansLight';
3
+ src: url('OpenSans-Light-webfont.ttf');
4
+ font-weight: normal;
5
+ font-style: normal;
6
+ }
7
+
8
+ body {
9
+ font-size: 1.5em;
10
+ }
11
+
12
+ h1 {
13
+ text-align: center;
14
+ font-family: 'OpenSansLight';
15
+ }
16
+
17
+ .highlight {
18
+ margin-bottom: 20px;
19
+ padding: 2px 10px;
20
+ }
21
+
22
+ code {
23
+ background-color: #f8f8f8;
24
+ border-radius: 3px;
25
+ border: 1px solid #ddd;
26
+ margin: 0;
27
+ padding: 1px 2px;
28
+ }
@@ -0,0 +1,14 @@
1
+ pdf:
2
+ disable_smart_shrinking: false
3
+ encoding: 'UTF-8'
4
+ margin_bottom: '10mm'
5
+ margin_left: '10mm'
6
+ margin_right: '10mm'
7
+ margin_top: '10mm'
8
+ orientation: 'Landscape'
9
+ page_size: 'Letter'
10
+ quiet: true
11
+
12
+ target:
13
+ html: 'build/<%= @name %>.html'
14
+ pdf: 'build/<%= @name %>.pdf'
@@ -0,0 +1,11 @@
1
+ # Slide 1
2
+
3
+ <p style="text-align: center">
4
+ <img src="elephants.jpg">
5
+ </p>
6
+
7
+ ## h2
8
+
9
+ ### h3
10
+
11
+ This is a paragraph with a link to [google](https://google.com).
@@ -0,0 +1,24 @@
1
+ # Slide 2
2
+
3
+ Ordered list:
4
+
5
+ 1. item 1
6
+ 2. item 2
7
+ 3. item 3
8
+ 3. item 4
9
+
10
+ Unordered list:
11
+
12
+ * item 1
13
+ * item 2
14
+ * item 3
15
+
16
+ Syntax highlight `example`:
17
+
18
+ ```ruby
19
+ class Test
20
+ def test
21
+ puts 'test'
22
+ end
23
+ end
24
+ ```
@@ -0,0 +1,3 @@
1
+ module Slidox
2
+ VERSION = "0.0.1"
3
+ end
data/slidox.gemspec ADDED
@@ -0,0 +1,31 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'slidox/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "slidox"
8
+ spec.version = Slidox::VERSION
9
+ spec.authors = ["Dalibor Nasevic"]
10
+ spec.email = ["dalibor.nasevic@gmail.com"]
11
+ spec.summary = %q{Markdown to PDF and HTML}
12
+ spec.description = %q{Markdown to PDF and HTML conversion tool. Useful for building presentations and other documents.}
13
+ spec.homepage = "https://github.com/dalibor/slidox"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.5"
22
+ spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "rspec", "~> 3.0"
24
+
25
+ spec.add_dependency "thor", "~> 0.19"
26
+ spec.add_dependency "github-markdown", "~> 0.6"
27
+ spec.add_dependency "pdfkit", "~> 0.6"
28
+ spec.add_dependency "pygments.rb", "~> 0.6"
29
+ spec.add_dependency "nokogiri", "~> 1.6"
30
+ spec.add_dependency "wkhtmltopdf-binary", "~> 0.9"
31
+ end
@@ -0,0 +1,47 @@
1
+ require 'spec_helper'
2
+
3
+ describe Slidox::CLI do
4
+ let(:project_name) { 'slidox1' }
5
+
6
+ before :each do
7
+ FileUtils::mkdir_p(File.join(ROOT, "tmp"))
8
+ end
9
+
10
+ after :each do
11
+ FileUtils.rm_rf(File.join(ROOT, "tmp"))
12
+ end
13
+
14
+ it "generates new slidox project" do
15
+ Dir.chdir('tmp') do
16
+ run_cmd("new #{project_name}")
17
+
18
+ [
19
+ 'assets/main.css',
20
+ 'assets/elephants.jpg',
21
+ 'assets/OpenSans-Light-webfont.ttf',
22
+ 'slides/1.md',
23
+ 'slides/2.md'
24
+ ].each do |path|
25
+ file = File.join(ROOT, "tmp/#{project_name}/#{path}")
26
+ expect(File.exists?(file)).to be_truthy
27
+ end
28
+ end
29
+ end
30
+
31
+ it "builds slidox project" do
32
+ Dir.chdir('tmp') do
33
+ run_cmd("new #{project_name}")
34
+ Dir.chdir(project_name) do
35
+ run_cmd("build")
36
+ end
37
+
38
+ [
39
+ "build/#{project_name}.html",
40
+ "build/#{project_name}.pdf"
41
+ ].each do |path|
42
+ file = File.join(ROOT, "tmp/#{project_name}/#{path}")
43
+ expect(File.exists?(file)).to be_truthy
44
+ end
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,7 @@
1
+ require 'slidox'
2
+
3
+ ROOT = File.expand_path('../', File.dirname(__FILE__))
4
+
5
+ def run_cmd(cmd)
6
+ `bundle exec #{Gem.ruby} #{ROOT}/bin/slidox #{cmd}`
7
+ end
metadata ADDED
@@ -0,0 +1,197 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: slidox
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Dalibor Nasevic
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-02-08 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: thor
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.19'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.19'
69
+ - !ruby/object:Gem::Dependency
70
+ name: github-markdown
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '0.6'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '0.6'
83
+ - !ruby/object:Gem::Dependency
84
+ name: pdfkit
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.6'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.6'
97
+ - !ruby/object:Gem::Dependency
98
+ name: pygments.rb
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.6'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.6'
111
+ - !ruby/object:Gem::Dependency
112
+ name: nokogiri
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '1.6'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '1.6'
125
+ - !ruby/object:Gem::Dependency
126
+ name: wkhtmltopdf-binary
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.9'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.9'
139
+ description: Markdown to PDF and HTML conversion tool. Useful for building presentations
140
+ and other documents.
141
+ email:
142
+ - dalibor.nasevic@gmail.com
143
+ executables:
144
+ - slidox
145
+ extensions: []
146
+ extra_rdoc_files: []
147
+ files:
148
+ - ".gitignore"
149
+ - ".rspec"
150
+ - ".travis.yml"
151
+ - Gemfile
152
+ - LICENSE.txt
153
+ - README.md
154
+ - Rakefile
155
+ - bin/slidox
156
+ - lib/slidox.rb
157
+ - lib/slidox/builder.rb
158
+ - lib/slidox/cli.rb
159
+ - lib/slidox/templates/assets/OpenSans-Light-webfont.ttf
160
+ - lib/slidox/templates/assets/elephants.jpg
161
+ - lib/slidox/templates/assets/jellybeans.css
162
+ - lib/slidox/templates/assets/line_numbers.css
163
+ - lib/slidox/templates/assets/main.css
164
+ - lib/slidox/templates/config.yml
165
+ - lib/slidox/templates/slides/1.md
166
+ - lib/slidox/templates/slides/2.md
167
+ - lib/slidox/version.rb
168
+ - slidox.gemspec
169
+ - spec/slidox/cli_spec.rb
170
+ - spec/spec_helper.rb
171
+ homepage: https://github.com/dalibor/slidox
172
+ licenses:
173
+ - MIT
174
+ metadata: {}
175
+ post_install_message:
176
+ rdoc_options: []
177
+ require_paths:
178
+ - lib
179
+ required_ruby_version: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - ">="
182
+ - !ruby/object:Gem::Version
183
+ version: '0'
184
+ required_rubygems_version: !ruby/object:Gem::Requirement
185
+ requirements:
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: '0'
189
+ requirements: []
190
+ rubyforge_project:
191
+ rubygems_version: 2.2.2
192
+ signing_key:
193
+ specification_version: 4
194
+ summary: Markdown to PDF and HTML
195
+ test_files:
196
+ - spec/slidox/cli_spec.rb
197
+ - spec/spec_helper.rb