diff --git a/doc_config/yard/templates/default/fulldoc/html/css/global.css b/doc_config/yard/templates/default/fulldoc/html/css/global.css index a876b3ea..26f58aa0 100644 --- a/doc_config/yard/templates/default/fulldoc/html/css/global.css +++ b/doc_config/yard/templates/default/fulldoc/html/css/global.css @@ -60,3 +60,7 @@ blockquote p { font-weight: inherit; line-height: inherit; } + +ul ul, ol ol, ul ol, ol ul { + margin-bottom: 1.25em; +} diff --git a/doc_config/yard/templates/default/fulldoc/html/full_list.erb b/doc_config/yard/templates/default/fulldoc/html/full_list.erb index c3872d4e..8ef64608 100644 --- a/doc_config/yard/templates/default/fulldoc/html/full_list.erb +++ b/doc_config/yard/templates/default/fulldoc/html/full_list.erb @@ -15,12 +15,6 @@ -

<%= @list_title %>

diff --git a/doc_config/yard/templates/default/fulldoc/html/js/app.js b/doc_config/yard/templates/default/fulldoc/html/js/app.js index cad5c439..a00de8ed 100644 --- a/doc_config/yard/templates/default/fulldoc/html/js/app.js +++ b/doc_config/yard/templates/default/fulldoc/html/js/app.js @@ -119,22 +119,6 @@ function linkSummaries() { }); } -function framesInit() { - if (hasFrames) { - document.body.className = 'frames'; - $('#menu .noframes a').attr('href', document.location); - try { - window.top.document.title = $('html head title').text(); - } catch(error) { - // some browsers will not allow this when serving from file:// - // but we don't want to stop the world. - } - } - else { - $('#menu .noframes a').text('frames').attr('href', framesUrl); - } -} - function keyboardShortcuts() { if (window.top.frames.main) return; @@ -284,7 +268,6 @@ function updateStickyHeaders() { } $(makeHeadersSticky); -$(framesInit); $(createSourceLinks); $(createDefineLinks); $(createFullTreeLinks); diff --git a/doc_config/yard/templates/default/fulldoc/html/setup.rb b/doc_config/yard/templates/default/fulldoc/html/setup.rb index cd8a7831..1696df6d 100644 --- a/doc_config/yard/templates/default/fulldoc/html/setup.rb +++ b/doc_config/yard/templates/default/fulldoc/html/setup.rb @@ -6,3 +6,30 @@ def javascripts javascripts = super javascripts.insert 1, 'js/jquery.stickyheaders.js' end + +def class_list(root = Registry.root, tree = TreeContext.new) + out = String.new("") + children = run_verifier(root.children) + if root == Registry.root + children += @items.select {|o| o.namespace.is_a?(CodeObjects::Proxy) } + end + children.compact.sort_by(&:path).each do |child| + next unless child.is_a?(CodeObjects::NamespaceObject) + name = child.namespace.is_a?(CodeObjects::Proxy) ? child.path : child.name + has_children = run_verifier(child.children).any? {|o| o.is_a?(CodeObjects::NamespaceObject) } + out << "
  • " + out << "
    " + out << " " if has_children + out << linkify(child, name) + out << " < #{child.superclass.name}" if child.is_a?(CodeObjects::ClassObject) && child.superclass + out << "" + out << child.namespace.title + out << "" + out << "
    " + tree.nest do + out << "" if has_children + end + out << "
  • " + end + out +end