atech_docs 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,6 +21,10 @@ module AtechDocs
21
21
  "<p class='#{$1.downcase}'>#{$2.strip}</p>"
22
22
  end
23
23
 
24
+ content.gsub!(/\]\(~\//) do
25
+ "](/#{@path}/"
26
+ end
27
+
24
28
  markdown = RDiscount.new(content)
25
29
  html = markdown.to_html
26
30
  html.gsub!(/<pre><code>\[([\w\s\|]+)\]\n(.*?)<\/code><\/pre>/m) do
@@ -46,6 +46,8 @@ module AtechDocs
46
46
  def find(application, path)
47
47
  request_path = [application, path].join('/')
48
48
  path_to_file = File.join(ARGV.last, application, path)
49
+
50
+
49
51
  if File.file?(path_to_file + '.doc')
50
52
  Page.new(request_path, File.read(path_to_file + '.doc'))
51
53
  elsif File.directory?(path_to_file) && File.join(path_to_file, 'index.doc')
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atech_docs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 2
10
- version: 1.0.2
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Cooke