sdoc 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -17,7 +17,15 @@
17
17
  <%= h file.name %>
18
18
  </h1>
19
19
  <ul class="files">
20
- <li><%= h file.relative_name %></li>
20
+ <%
21
+ github = github_url(file.relative_name) if options.github
22
+ %>
23
+ <li>
24
+ <%= h file.relative_name %>
25
+ <% if github %>
26
+ <a href="<%= github %>" target="_blank" class="github_url">on GitHub</a>
27
+ <% end %>
28
+ </li>
21
29
  <li>Last modified: <%= file.file_stat.mtime %></li>
22
30
  </ul>
23
31
  </div>
@@ -12,16 +12,16 @@ a:link, a:active, a:visited, a:hover {
12
12
  text-decoration: none;
13
13
  }
14
14
 
15
- a:hover {
15
+ a:hover, .banner a:hover {
16
16
  color: #333;
17
17
  background: #FE8;
18
18
  }
19
19
 
20
- h1 a, h2 a, .sectiontitle a, .banner a {
20
+ h1 a, h2 a, .banner a {
21
21
  color: #fff;
22
22
  }
23
23
 
24
- h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
24
+ h1 a:hover, h2 a:hover {
25
25
  color: #fff;
26
26
  }
27
27
 
@@ -147,6 +147,10 @@ ol li
147
147
  margin-bottom: 0;
148
148
  }
149
149
 
150
+ .banner .github_url {
151
+ color: #CCC;
152
+ }
153
+
150
154
  pre
151
155
  {
152
156
  margin-bottom: 1em;
data/sdoc.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "sdoc"
5
- s.version = "0.3.6"
5
+ s.version = "0.3.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Vladimir Kolesnikov"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sdoc
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 6
10
- version: 0.3.6
9
+ - 7
10
+ version: 0.3.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Vladimir Kolesnikov