bookingit 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/bin/bookingit +2 -1
- data/lib/bookingit/book.rb +2 -2
- data/lib/bookingit/version.rb +1 -1
- data/templates/footer.html.mustache +5 -0
- data/templates/header.html.mustache +6 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3af8e59f2d98821d3338993975668485d4119c37
|
4
|
+
data.tar.gz: 046906f4e89bc7af5a5ac64f40163bd529afaeba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf03ee1fb1940df0ccc824f65195f63eadc800c00232e6fa377a3b131fee5f858932e898b898033e19d2970d6df66433b9495f29d943857588d9b0ff3752e930
|
7
|
+
data.tar.gz: e91a2f8c5eaf67ca0af7529c3f16fa9941c6fc850743d434f07631ef8a3e2f37ea619defe942a98d4f2631fee21d5c5fb2d6863ac2bbee1141d4729dde52dbe4
|
data/Gemfile.lock
CHANGED
data/bin/bookingit
CHANGED
@@ -38,6 +38,7 @@ command :init do |c|
|
|
38
38
|
end
|
39
39
|
|
40
40
|
desc 'build your book from markdown files'
|
41
|
+
arg_name '[output_dir]'
|
41
42
|
command :build do |c|
|
42
43
|
c.desc "Use cache for code samples and console sessions"
|
43
44
|
c.default_value true
|
@@ -45,7 +46,7 @@ command :build do |c|
|
|
45
46
|
c.action do |global_options,options,args|
|
46
47
|
config = Bookingit::Config.new(File.read('config.json'),File.expand_path('.'))
|
47
48
|
config.cache = options[:cache]
|
48
|
-
book = Bookingit::Book.new(config)
|
49
|
+
book = Bookingit::Book.new(config,args.shift)
|
49
50
|
book.render_html!
|
50
51
|
end
|
51
52
|
end
|
data/lib/bookingit/book.rb
CHANGED
data/lib/bookingit/version.rb
CHANGED
@@ -31,6 +31,11 @@
|
|
31
31
|
</a>.
|
32
32
|
</p>
|
33
33
|
{{/license}}
|
34
|
+
{{#clicky}}
|
35
|
+
<script src="//static.getclicky.com/js" type="text/javascript"></script>
|
36
|
+
<script type="text/javascript">try{ clicky.init({{id}}); }catch(e){}</script>
|
37
|
+
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/{{id}}ns.gif" /></p></noscript>
|
38
|
+
{{/clicky}}
|
34
39
|
{{/config}}
|
35
40
|
</footer>
|
36
41
|
</body>
|
@@ -5,6 +5,12 @@
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
|
6
6
|
<meta charset="utf-8">
|
7
7
|
<title>{{config.title}}: {{config.subtitle}}</title>
|
8
|
+
{{#config}}
|
9
|
+
{{#typekit}}
|
10
|
+
<script type="text/javascript" src="//use.typekit.net/{{id}}.js"></script>
|
11
|
+
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
|
12
|
+
{{/typekit}}
|
13
|
+
{{/config}}
|
8
14
|
{{> syntax_highlighting.html }}
|
9
15
|
</head>
|
10
16
|
<body>
|