gitdoc 3.6.1 → 3.6.2
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/TODO +2 -1
- data/VERSION +1 -1
- data/favicon.ico +0 -0
- data/gitdoc.rb +9 -3
- metadata +5 -4
data/TODO
CHANGED
@@ -1,4 +1,5 @@
|
|
1
|
-
*
|
1
|
+
* Add nice horizontal scrollbars to code elements
|
2
|
+
* Support inline coffee compilation in html
|
2
3
|
* Open web browser after server launches
|
3
4
|
* Less http logging
|
4
5
|
* A :scriptable option that supports script embedding and an /index.json call
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.6.
|
1
|
+
3.6.2
|
data/favicon.ico
ADDED
Binary file
|
data/gitdoc.rb
CHANGED
@@ -123,8 +123,8 @@ end
|
|
123
123
|
|
124
124
|
# If the path doesn't have a file extension and a matching GitDoc document
|
125
125
|
# exists then it is compiled and rendered
|
126
|
-
get '
|
127
|
-
name
|
126
|
+
get '*' do |name|
|
127
|
+
name += 'index' if name =~ /\/$/
|
128
128
|
file = File.join(settings.dir + '/' + name + '.md')
|
129
129
|
pass unless File.exist? file
|
130
130
|
@doc = gd File.read(file)
|
@@ -146,6 +146,7 @@ end
|
|
146
146
|
get '*.coffee.js' do |name|
|
147
147
|
file = settings.dir + '/' + name + '.coffee'
|
148
148
|
pass unless File.exist? file
|
149
|
+
content_type :js
|
149
150
|
coffee File.read(file)
|
150
151
|
end
|
151
152
|
|
@@ -157,12 +158,17 @@ get '*.html' do |name|
|
|
157
158
|
end
|
158
159
|
|
159
160
|
# If the path matches any file in the directory then send that down
|
160
|
-
get '
|
161
|
+
get '*.*' do |name,ext|
|
161
162
|
file = File.join(settings.dir + '/' + name + '.' + ext)
|
162
163
|
pass unless File.exist? file
|
163
164
|
send_file file
|
164
165
|
end
|
165
166
|
|
167
|
+
get '/favicon.ico' do
|
168
|
+
pass if File.exists? settings.dir + '/favicon.ico'
|
169
|
+
send_file settings.root + '/favicon.ico'
|
170
|
+
end
|
171
|
+
|
166
172
|
not_found do
|
167
173
|
version = File.read(File.dirname(__FILE__)+'/VERSION')
|
168
174
|
@doc = gd(
|
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: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 3.6.
|
9
|
+
- 2
|
10
|
+
version: 3.6.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Myles Byrne
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-02-11 00:00:00 +11:00
|
19
19
|
default_executable: gitdoc
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -131,6 +131,7 @@ files:
|
|
131
131
|
- bin/gitdoc
|
132
132
|
- default.sass
|
133
133
|
- doc.haml
|
134
|
+
- favicon.ico
|
134
135
|
- gitdoc.rb
|
135
136
|
- gitdoc/tasks.rb
|
136
137
|
- highlight.css
|