webapidoc 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,8 @@ module Webapidoc
22
22
  end
23
23
 
24
24
  # read partials contents and inject it
25
- File.open(inFile, 'r').read
25
+ ERB.new(File.open(inFile, 'r').read).result(binding)
26
+
26
27
  end
27
28
 
28
29
  def self.libDir
@@ -18,17 +18,17 @@
18
18
  </svg>
19
19
 
20
20
  <!-- Le styles -->
21
- <link href="/documentation/css/webapidoc.css" rel="stylesheet">
21
+ <link href="./css/webapidoc.css" rel="stylesheet">
22
22
 
23
23
  <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
24
24
  <!--[if lt IE 9]>
25
- <script src="/documentation/js/html5.js"></script>
25
+ <script src="./js/html5.js"></script>
26
26
  <![endif]-->
27
27
 
28
28
  <!-- Les javascripts -->
29
- <script src="/documentation/js/jquery.js"></script>
30
- <script src="/documentation/js/highlight.js"></script>
31
- <script src="/documentation/js/lodash.min.js"></script>
29
+ <script src="./js/jquery.js"></script>
30
+ <script src="./js/highlight.js"></script>
31
+ <script src="./js/lodash.min.js"></script>
32
32
 
33
33
  <!-- Ace Code Editor -->
34
34
  <% if @data["url"].present? %>
@@ -51,7 +51,7 @@
51
51
 
52
52
  <% @sections.each do |section| %>
53
53
  <li class="nav-item level<%= section[:level] %>" >
54
- <a href="/documentation/<%= section[:file]%>.html/#<%= section[:anchor]%>"><%= section[:title] %></a>
54
+ <a href="./<%= section[:file]%>.html#<%= section[:anchor]%>"><%= section[:title] %></a>
55
55
  </li>
56
56
  <% end %>
57
57
 
@@ -1,4 +1,4 @@
1
1
  module Webapidoc
2
2
  NAME = "webapidoc"
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webapidoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: