rorvswild_theme_rdoc 0.2 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cbe4495838431b2389d090bd182ed512aff8da1d681c64fb15ea494847a2d3f3
4
- data.tar.gz: c768ff5590280f474c5529ac14d042e1c460d9acb06a171edab691f9bdfcb09c
3
+ metadata.gz: a85143e9f438f5dd7bd333dbe53fcde2cc560e7436eb3b316255ffaf37a22d28
4
+ data.tar.gz: 448575df025e5b14f3b346383106d4e2b84deae015c1d9d9ff8cc927f10c59bd
5
5
  SHA512:
6
- metadata.gz: 78c1f474c02639db692cbf6154656f58d82898979ed025306e68407c460e77977a931f9a1759411df2e45a24095074699af5c3d22250f30115b15793736ef55f
7
- data.tar.gz: 19f9ded82292b43e760e253504b52e2ef102170378b3accfe7df4613d699eb35a2b93e7a85f0160775c5c03a75aba4a7bf259bb5df8d0d05da4e3d9d74eee679
6
+ metadata.gz: eb458897afe53c38740177ea535cf795a4a3b164163efd920932a4d44f09d36050dc5f6f625069dce6ade54817446110d5068247fa24b35946a4055738e61079
7
+ data.tar.gz: bdad2622cdbf75bb81ebba5e17c96102535ad62a098838e159fc437a89b967677d4b04004307360444b0fdf2a148639d4c6964f1e864420312418a3396e3100c
@@ -3,7 +3,7 @@
3
3
  <h3>Extended With Modules</h3>
4
4
 
5
5
  <ul class="link-list">
6
- <%- klass.each_extend do |ext| -%>
6
+ <%- klass.extends.each do |ext| -%>
7
7
  <%- unless String === ext.module then -%>
8
8
  <li><a class="extend" href="<%= klass.aref_to ext.module.path %>"><%= ext.module.full_name %></a>
9
9
  <%- else -%>
@@ -3,7 +3,7 @@
3
3
  <h3>Included Modules</h3>
4
4
 
5
5
  <ul class="link-list">
6
- <%- klass.each_include do |inc| -%>
6
+ <%- klass.includes.each do |inc| -%>
7
7
  <%- unless String === inc.module then -%>
8
8
  <li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a>
9
9
  <%- else -%>
@@ -30,7 +30,16 @@
30
30
  <%- constants.each do |const| -%>
31
31
  <dt id="<%= const.name %>"><%= const.name %></dt>
32
32
  <%- if const.comment then -%>
33
- <dd><%= const.description.strip %></dd>
33
+ <dd>
34
+ <!-- commented future feature
35
+ <%#- if const.mixin_from then -%>
36
+ <div class="mixin-from">
37
+ Included from <a href="<%#= klass.aref_to(const.mixin_from.path)%>"><%#= const.mixin_from.full_name %></a>
38
+ </div>
39
+ <%#- end -%>
40
+ -->
41
+ <%= const.description.strip %>
42
+ </dd>
34
43
  <%- else -%>
35
44
  <dd class="missing-docs">(Not documented)</dd>
36
45
  <%- end -%>
@@ -54,6 +63,13 @@
54
63
  </div>
55
64
 
56
65
  <div class="method-description">
66
+ <!-- commented future feature
67
+ <%#- if attrib.mixin_from then -%>
68
+ <div class="mixin-from">
69
+ <%#= attrib.singleton ? "Extended" : "Included" %> from <a href="<%#= klass.aref_to(attrib.mixin_from.path)%>"><%#= attrib.mixin_from.full_name %></a>
70
+ </div>
71
+ <%#- end -%>
72
+ -->
57
73
  <%- if attrib.comment then -%>
58
74
  <%= attrib.description.strip %>
59
75
  <%- else -%>
@@ -107,6 +123,13 @@
107
123
 
108
124
  <%- unless method.skip_description? then -%>
109
125
  <div class="method-description">
126
+ <!-- commented future feature
127
+ <%#- if method.mixin_from then -%>
128
+ <div class="mixin-from">
129
+ <%#= method.singleton ? "Extended" : "Included" %> from <a href="<%#= klass.aref_to(method.mixin_from.path)%>"><%#= method.mixin_from.full_name %></a>
130
+ </div>
131
+ <%#- end -%>
132
+ -->
110
133
  <%- if method.comment then -%>
111
134
  <%= method.description.strip %>
112
135
  <%- else -%>
@@ -11,7 +11,7 @@
11
11
 
12
12
  --color-primary: oklch(0.5 0.18 29);
13
13
  --color-primary-hover: oklch(0.4 0.18 29);
14
- --color-strong-background: oklch(0.97 0.03 89);
14
+ --color-highlight-background: oklch(0.97 0.03 89);
15
15
  --color-topbar: var(--color-primary);
16
16
  --color-topbar-text: var(--color-background);
17
17
  --color-text: oklch(0.35 0.03 269);
@@ -405,7 +405,7 @@ nav footer a:any-link {
405
405
  .nav-section li.active > details > summary > a,
406
406
  .nav-section li:has(li.active) > details > summary > a {
407
407
  text-decoration: none;
408
- background-color: var(--color-strong-background);
408
+ background-color: var(--color-highlight-background);
409
409
  border-radius: 3px;
410
410
  font-weight: 700;
411
411
  cursor: initial;
@@ -581,7 +581,7 @@ nav.contextual { display: none }
581
581
  #search-results .search-namespace { font-weight: bold; }
582
582
 
583
583
  #search-results li em {
584
- background: var(--color-strong-background);
584
+ background: var(--color-highlight-background);
585
585
  font-style: normal;
586
586
  }
587
587
 
@@ -633,11 +633,6 @@ em {
633
633
  text-decoration-style: dotted;
634
634
  }
635
635
 
636
- strong,
637
- em {
638
- background-color: var(--color-strong-background);
639
- }
640
-
641
636
  .note-list {
642
637
  padding: 1em 1em 2em;
643
638
  box-shadow: 0 0 0 1px var(--color-border) inset;
@@ -736,6 +731,12 @@ pre + .toggle-source { margin-top: 0.5rem; }
736
731
  .method-description p { margin: 0; }
737
732
 
738
733
  .method-description ul { margin-left: 1.5em; }
734
+
735
+ main .mixin-from {
736
+ font-size: 0.823em;
737
+ font-style: italic;
738
+ margin-bottom: 0.75em;
739
+ }
739
740
 
740
741
  #attribute-method-details .method-detail:hover {
741
742
  background-color: transparent;
@@ -825,7 +826,7 @@ pre + .toggle-source { margin-top: 0.5rem; }
825
826
  --color-primary: oklch(0.85 0.09 29);
826
827
  --color-primary-hover: oklch(87.78296875% 0.07 29);
827
828
 
828
- --color-strong-background: oklch(0.27 0.04 89);
829
+ --color-highlight-background: oklch(0.27 0.04 89);
829
830
 
830
831
  --color-topbar: oklch(0.5 0.18 29);
831
832
  --color-topbar-text: oklch(0.99 0.001 269);
@@ -0,0 +1,10 @@
1
+ if Gem::Version.new(RDoc::VERSION) < Gem::Version.new("6.13.0")
2
+ # https://github.com/ruby/rdoc/pull/1315
3
+ module RDoc
4
+ class NormalClass
5
+ attr_reader :includes
6
+ attr_reader :extends
7
+ attr_reader :constants
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,16 @@
1
+ if Gem::Version.new(RDoc::VERSION) < Gem::Version.new("6.8.0")
2
+ class RDoc::ClassModule
3
+ ##
4
+ # Get all super classes of this class in an array. The last element might be
5
+ # a string if the name is unknown.
6
+ def super_classes
7
+ result = []
8
+ parent = self
9
+ while parent = parent.superclass
10
+ result << parent
11
+ return result if parent.is_a?(String)
12
+ end
13
+ result
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,3 @@
1
+ module RorVsWildThemeRdoc
2
+ VERSION = "0.3.0"
3
+ end
@@ -1,4 +1,5 @@
1
- require "rorvswild_theme_rdoc/patches/rdoc"
1
+ require "rorvswild_theme_rdoc/patches/rdoc_before_6.8.0"
2
+ require "rorvswild_theme_rdoc/patches/rdoc_before_6.13.0"
2
3
 
3
4
  module RorVsWildThemeRdoc
4
5
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rorvswild_theme_rdoc
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.2'
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Marguerie
8
8
  - Alexis Bernard
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-11-02 00:00:00.000000000 Z
12
+ date: 2025-04-25 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: " RDoc theme for developers with sensitive eyes."
15
15
  email: ''
@@ -54,12 +54,14 @@ files:
54
54
  - lib/rdoc/generator/template/rorvswild/servlet_root.rhtml
55
55
  - lib/rdoc/generator/template/rorvswild/table_of_contents.rhtml
56
56
  - lib/rorvswild_theme_rdoc.rb
57
- - lib/rorvswild_theme_rdoc/patches/rdoc.rb
57
+ - lib/rorvswild_theme_rdoc/patches/rdoc_before_6.13.0.rb
58
+ - lib/rorvswild_theme_rdoc/patches/rdoc_before_6.8.0.rb
59
+ - lib/rorvswild_theme_rdoc/version.rb
58
60
  homepage: https://github.com/BaseSecrete/rorvswild-theme-rdoc
59
61
  licenses:
60
62
  - BSD-3-Clause
61
63
  metadata: {}
62
- post_install_message:
64
+ post_install_message:
63
65
  rdoc_options: []
64
66
  require_paths:
65
67
  - lib
@@ -74,8 +76,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
76
  - !ruby/object:Gem::Version
75
77
  version: '0'
76
78
  requirements: []
77
- rubygems_version: 3.5.9
78
- signing_key:
79
+ rubygems_version: 3.2.33
80
+ signing_key:
79
81
  specification_version: 4
80
82
  summary: RDoc theme for developers with sensitive eyes.
81
83
  test_files: []
@@ -1,14 +0,0 @@
1
- class RDoc::ClassModule
2
- ##
3
- # Get all super classes of this class in an array. The last element might be
4
- # a string if the name is unknown.
5
- def super_classes
6
- result = []
7
- parent = self
8
- while parent = parent.superclass
9
- result << parent
10
- return result if parent.is_a?(String)
11
- end
12
- result
13
- end
14
- end