sdoc 2.3.2 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yml +2 -1
- data/CHANGELOG.md +12 -0
- data/lib/rdoc/generator/template/rails/class.rhtml +3 -0
- data/lib/rdoc/generator/template/rails/file.rhtml +3 -0
- data/lib/rdoc/generator/template/rails/index.rhtml +3 -0
- data/lib/rdoc/generator/template/rails/resources/css/github.css +2 -1
- data/lib/rdoc/generator/template/rails/resources/css/main.css +21 -1
- data/lib/rdoc/generator/template/rails/resources/css/panel.css +2 -3
- data/lib/sdoc/generator.rb +1 -1
- data/lib/sdoc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa274f575c6bc9da8ebed7340968bdb489ec3e26cf551a298c9f3ca292bb7ccd
|
4
|
+
data.tar.gz: 66fe4cd7f903a91b32e292d7f363db4617a923b529ba385d91b75104bd77dbad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3a5fde263c6c067c91acd335d4b928b3c9d080f6e7f745067f7119b9f89b99963dfdc460507607b9a15b4be890b2818297e59d63c46974a0268012f10759686a
|
7
|
+
data.tar.gz: a7e62e3b13be1f3f43efd7b21aac416770500f57585b919035ed9a7b5945baaa555c51124133b3fd2e439851e16fef8420b03b5b3bbf0b429bbe0a0a14c49777
|
data/.github/workflows/test.yml
CHANGED
@@ -9,7 +9,7 @@ on:
|
|
9
9
|
|
10
10
|
jobs:
|
11
11
|
test:
|
12
|
-
runs-on: ubuntu-
|
12
|
+
runs-on: ubuntu-latest
|
13
13
|
strategy:
|
14
14
|
matrix:
|
15
15
|
ruby:
|
@@ -32,6 +32,7 @@ jobs:
|
|
32
32
|
uses: ruby/setup-ruby@v1
|
33
33
|
with:
|
34
34
|
ruby-version: ${{ matrix.ruby }}
|
35
|
+
bundler: latest
|
35
36
|
bundler-cache: true
|
36
37
|
cache-version: 2
|
37
38
|
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,18 @@
|
|
1
1
|
Master
|
2
2
|
======
|
3
3
|
|
4
|
+
2.5.0
|
5
|
+
=====
|
6
|
+
|
7
|
+
* #192 Add padding and rounded borders to code examples [@p8](https://github.com/p8)
|
8
|
+
* #191 Add css class for constant [@p8](https://github.com/p8)
|
9
|
+
* #189 `index_path` should handle a nil `main_page` [@ghiculescu](https://github.com/ghiculescu)
|
10
|
+
|
11
|
+
2.4.0
|
12
|
+
=====
|
13
|
+
|
14
|
+
* #187 Allow setting CSS based version badge [@p8](https://github.com/p8)
|
15
|
+
|
4
16
|
2.3.2
|
5
17
|
=====
|
6
18
|
|
@@ -45,6 +45,9 @@
|
|
45
45
|
<li><a href="<%= "#{rel_prefix}/#{h file.path}" %>"><%= h file.absolute_name %></a></li>
|
46
46
|
<% end %>
|
47
47
|
</ul>
|
48
|
+
<% if ENV['HORO_BADGE_VERSION'] %>
|
49
|
+
<div id="version-badge"><%= ENV['HORO_BADGE_VERSION'] %></div>
|
50
|
+
<% end %>
|
48
51
|
</div>
|
49
52
|
|
50
53
|
<main id="bodyContent">
|
@@ -24,6 +24,9 @@
|
|
24
24
|
<li><%= h index.relative_name %></li>
|
25
25
|
<li>Last modified: <%= index.last_modified %></li>
|
26
26
|
</ul>
|
27
|
+
<% if ENV['HORO_BADGE_VERSION'] %>
|
28
|
+
<div id="version-badge"><%= ENV['HORO_BADGE_VERSION'] %></div>
|
29
|
+
<% end %>
|
27
30
|
</div>
|
28
31
|
|
29
32
|
<main id="bodyContent">
|
@@ -262,8 +262,9 @@ tt {
|
|
262
262
|
}
|
263
263
|
|
264
264
|
.description pre {
|
265
|
-
padding:
|
265
|
+
padding: 1em 1.2em;
|
266
266
|
background: #EEEEEE;
|
267
|
+
border-radius: 10px;
|
267
268
|
font-size: 15px;
|
268
269
|
overflow-x: scroll;
|
269
270
|
}
|
@@ -403,3 +404,22 @@ p code {
|
|
403
404
|
background: #fff;
|
404
405
|
font-size: 2rem;
|
405
406
|
}
|
407
|
+
|
408
|
+
#version-badge {
|
409
|
+
position: fixed;
|
410
|
+
right: 0;
|
411
|
+
top: 0;
|
412
|
+
z-index: 100;
|
413
|
+
color: white;
|
414
|
+
transform: rotate(45deg) translate(27.5%, -40%);
|
415
|
+
min-width: 200px;
|
416
|
+
font-family: Helvetica, Arial, sans-serif;
|
417
|
+
font-size: 30px;
|
418
|
+
font-weight: bold;
|
419
|
+
font-style: italic;
|
420
|
+
line-height: 1.5;
|
421
|
+
text-shadow: 2px 2px 4px #5400007d;
|
422
|
+
text-align: center;
|
423
|
+
box-shadow: 0px 2px 2px 1px #1209096e;
|
424
|
+
background: radial-gradient(circle, rgb(255, 10, 0) 0%, rgb(200, 0, 0) 90%);
|
425
|
+
}
|
@@ -12,8 +12,7 @@
|
|
12
12
|
top: 0;
|
13
13
|
background: #000;
|
14
14
|
color: #fff;
|
15
|
-
padding
|
16
|
-
text-align: right;
|
15
|
+
padding: 0 10px;
|
17
16
|
line-height: 40px;
|
18
17
|
cursor: pointer;
|
19
18
|
z-index: 2;
|
@@ -84,7 +83,7 @@
|
|
84
83
|
width: 300px;
|
85
84
|
height: 100%;
|
86
85
|
background: #FFF;
|
87
|
-
z-index:
|
86
|
+
z-index: 200;
|
88
87
|
font-family: "Helvetica Neue", "Arial", sans-serif;
|
89
88
|
overflow-x: hidden;
|
90
89
|
border-right: 1px #ccc solid;
|
data/lib/sdoc/generator.rb
CHANGED
@@ -194,7 +194,7 @@ class RDoc::Generator::SDoc
|
|
194
194
|
### Determines index path based on @options.main_page (or lack thereof)
|
195
195
|
def index_path
|
196
196
|
# Transform class name to file path
|
197
|
-
if @options.main_page
|
197
|
+
if @options.main_page&.include?("::")
|
198
198
|
slashed = @options.main_page.sub(/^::/, "").gsub("::", "/")
|
199
199
|
"%s/%s.html" % [ class_dir, slashed ]
|
200
200
|
else
|
data/lib/sdoc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sdoc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Kolesnikov
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2022-
|
14
|
+
date: 2022-12-19 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rdoc
|