webapidoc 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/webapidoc/base.rb +2 -2
- data/lib/webapidoc/css/webapidoc.scss +5 -1
- data/lib/webapidoc/template.html.erb +2 -2
- data/lib/webapidoc/version.rb +1 -1
- metadata +3 -3
data/lib/webapidoc/base.rb
CHANGED
@@ -73,8 +73,8 @@ module Webapidoc
|
|
73
73
|
# get content info for subsections ( side pane navigation )
|
74
74
|
sections = []
|
75
75
|
maruku.each_element(:header) do | el |
|
76
|
-
next unless el.meta_priv[:level] == 2
|
77
|
-
sections << el.children[0]
|
76
|
+
next unless el.meta_priv[:level] == 2 or el.meta_priv[:level] == 3
|
77
|
+
sections << {:title => el.children[0], :level => el.meta_priv[:level]}
|
78
78
|
end
|
79
79
|
|
80
80
|
chapter[:html] = maruku.to_html
|
@@ -431,7 +431,7 @@ ul.nav-list {
|
|
431
431
|
|
432
432
|
> li {
|
433
433
|
|
434
|
-
padding:
|
434
|
+
padding: 4px 0px;
|
435
435
|
|
436
436
|
> a {
|
437
437
|
text-decoration: none;
|
@@ -464,6 +464,10 @@ ul.nav-list {
|
|
464
464
|
|
465
465
|
font-size: 13px;
|
466
466
|
|
467
|
+
&.level2 {
|
468
|
+
font-weight: 700;
|
469
|
+
padding-top:8px;
|
470
|
+
}
|
467
471
|
&:hover {
|
468
472
|
|
469
473
|
}
|
@@ -52,8 +52,8 @@
|
|
52
52
|
<a href="/documentation/<%= chapter[:out] %>"><%= chapter[:name] %></a></li>
|
53
53
|
|
54
54
|
<% chapter[:sections].each do |section| %>
|
55
|
-
<li class="nav-item" >
|
56
|
-
<a href="<%= chapter[:out] %>#<%= section.downcase.gsub(/[^\d\w\s]/, "").tr(" ", "_") %>"><%= section %></a>
|
55
|
+
<li class="nav-item level<%= section[:level] %>" >
|
56
|
+
<a href="<%= chapter[:out] %>#<%= section[:title].downcase.gsub(/[^\d\w\s]/, "").tr(" ", "_") %>"><%= section[:title] %></a>
|
57
57
|
</li>
|
58
58
|
|
59
59
|
<% end %>
|
data/lib/webapidoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webapidoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
+
- 1
|
8
9
|
- 0
|
9
|
-
|
10
|
-
version: 0.0.9
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Adrian Fuhrmann
|