documentation 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/documentation/page.rb +1 -1
- data/lib/documentation/engine.rb +1 -1
- data/lib/documentation/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d7e39ff3bcc5366866daf61e794d0518228e30ce
|
4
|
+
data.tar.gz: abb69304cb427450f290c8a6bdf6c2b0847bd36d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50e61fcd321e0a0448b1474a1afae58a2baf323f9a82c84d823449d7e5f8da5e7371db22df417f553c3d6feb8156dac76b98af19eb0e3e42e859007e3343a328
|
7
|
+
data.tar.gz: 920ddcc979efc4fbcaa757e42f63d9389383a31b773744e845743e8c47b0ae5f245a63d7c9b191caeb70ec0d19c5bc73659a3bf836a911b5ce001cb902576af1
|
@@ -141,7 +141,7 @@ module Documentation
|
|
141
141
|
# Create the compiled content
|
142
142
|
#
|
143
143
|
def compile_content
|
144
|
-
mr = Documentation::MarkdownRenderer.new
|
144
|
+
mr = Documentation::MarkdownRenderer.new(:with_toc_data => true)
|
145
145
|
mr.page = self
|
146
146
|
rc = Redcarpet::Markdown.new(mr, :space_after_headers => true, :fenced_code_blocks => true, :no_intra_emphasis => true, :highlight => true)
|
147
147
|
self.compiled_content = rc.render(self.content.to_s).html_safe
|
data/lib/documentation/engine.rb
CHANGED
@@ -20,7 +20,7 @@ module Documentation
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def self.mounted_path
|
23
|
-
if route = Rails.application.routes.routes.select { |r| r.app == self }.first
|
23
|
+
if route = Rails.application.routes.routes.select { |r| r.app == self or r.app.try(:app) == self }.first
|
24
24
|
route.path.spec.to_s
|
25
25
|
end
|
26
26
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: documentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -321,4 +321,3 @@ signing_key:
|
|
321
321
|
specification_version: 4
|
322
322
|
summary: A Rails engine to provider the ability to add documentation to a Rails application
|
323
323
|
test_files: []
|
324
|
-
has_rdoc:
|