Skip to content
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
yard-apptweak-template (2.1.0)
yard-apptweak-template (2.1.0.beta.1)
rouge (~> 3.26)
yard (~> 0.9.37)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def javascripts
# upgrade we vendor jQuery of a newer version (1.x branch) along with their
# migration plugin to allow YARD to continue to work.
# https://github.com/lsegal/yard/pull/1351
%w[js/jquery.js js/jquery-migrate.js js/app.js]
%w[js/jquery.js js/jquery-migrate.js js/app.js js/full_list.js]
end

# Returns an array of stylesheet paths to include in the layout.erb file.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# frozen_string_literal: true

# We don't want to expose our source code in the API docs.

# https://groups.google.com/forum/#!topic/yardoc/-HH48h-aifs
def source
nil
end

# Uncomment this to hide the source code in the method details.
# http://stackoverflow.com/a/10345917/486990
# def init
# super
# sections.first.delete(:source)
# end

# Uncomment this to hide the source code in the method details.
# def source
# nil
# end
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@

<dl class="constants">
<% list.each do |cnst| %>
<dt id="<%= anchor_for(cnst) %>" class="<%= cnst.has_tag?(:deprecated) ? 'deprecated' : '' %>"><%= cnst.namespace.to_s.empty? ? '' : "#{cnst.namespace}::" %><%= cnst.name %>
<dt id="<%= anchor_for(cnst) %>" class="<%= cnst.has_tag?(:deprecated) ? 'deprecated' : '' %>"><%= cnst.namespace.to_s.empty? ? '' : "#{cnst.namespace}::" %><%= cnst.name %> =
<%= yieldall :object => cnst %>
</dt>
<dd><pre class="code"><%= format_constant cnst.value %></pre></dd>
<% end %>
</dl>
<% end %>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<% found_const = false %>
<% inherited_constant_list do |superclass, consts| %>
<% if constant_listing.size == 0 && !found_const %><h2>Constant Summary</h2><% end %>
<% found_const = true %>
<h3 class="inherited">Constants <%= superclass.type == :class ? 'inherited' : 'included' %>
from <%= linkify superclass %></h3>
<p class="inherited"><%= consts.map {|c| linkify c }.join(", ") %></p>
<% end %>
2 changes: 1 addition & 1 deletion lib/yard-apptweak-template/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module ApptweakTemplateYARD
VERSION = "2.1.0"
VERSION = "2.1.0.beta.1"
end