gitdoc 4.1.0 → 4.2.0
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.
- data/VERSION +1 -1
- data/gitdoc.rb +12 -9
- data/pkg/gitdoc-4.1.0.gem +0 -0
- metadata +4 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.
|
1
|
+
4.2.0
|
data/gitdoc.rb
CHANGED
@@ -3,7 +3,7 @@ require 'rdiscount'
|
|
3
3
|
require 'haml'
|
4
4
|
require 'sass'
|
5
5
|
|
6
|
-
##
|
6
|
+
## Public Interface
|
7
7
|
#
|
8
8
|
# A rackup file with just these two lines:
|
9
9
|
#
|
@@ -15,26 +15,29 @@ require 'sass'
|
|
15
15
|
# GitDoc is a Sinatra app so you can customize it like one:
|
16
16
|
#
|
17
17
|
# require 'gitdoc'
|
18
|
-
# GitDoc.
|
18
|
+
# GitDoc.enable :compiler
|
19
19
|
# GitDoc.disable :default_styles
|
20
|
+
# GitDoc.set :title, "My Documents"
|
20
21
|
# GitDoc!
|
21
22
|
|
23
|
+
GitDoc = Sinatra::Application
|
24
|
+
|
22
25
|
def GitDoc!
|
23
26
|
dir = File.dirname(File.expand_path(caller.first.split(':').first))
|
24
27
|
set :dir, dir
|
25
|
-
|
28
|
+
if settings.compiler
|
29
|
+
require 'gitdoc/response_cache'
|
30
|
+
use GitDoc::ResponseCache, 'build'
|
31
|
+
end
|
32
|
+
run GitDoc
|
26
33
|
end
|
27
34
|
|
28
|
-
##
|
29
|
-
|
30
|
-
GitDoc = Sinatra::Application
|
31
|
-
|
32
|
-
require 'gitdoc/response_cache'
|
33
|
-
use GitDoc::ResponseCache, 'build'
|
35
|
+
## Implementation
|
34
36
|
|
35
37
|
set :haml, :format => :html5
|
36
38
|
set :views, lambda { root }
|
37
39
|
disable :logging # the server always writes its own log anyway
|
40
|
+
disable :compiler
|
38
41
|
|
39
42
|
helpers do
|
40
43
|
|
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 4
|
8
|
-
-
|
8
|
+
- 2
|
9
9
|
- 0
|
10
|
-
version: 4.
|
10
|
+
version: 4.2.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Myles Byrne
|
@@ -114,6 +114,7 @@ files:
|
|
114
114
|
- gitdoc.gemspec
|
115
115
|
- gitdoc.rb
|
116
116
|
- highlight.css
|
117
|
+
- pkg/gitdoc-4.1.0.gem
|
117
118
|
- Rakefile
|
118
119
|
- README.md
|
119
120
|
- reset.sass
|