+ {{^hide_name}}

{{name}}

{{/hide_name}} {{{overview}}}
{{> jazzy/partials/tasks}} diff --git a/lib/jazzy/doc_builder.rb b/lib/jazzy/doc_builder.rb index 3572ee2f8..f557921f1 100644 --- a/lib/jazzy/doc_builder.rb +++ b/lib/jazzy/doc_builder.rb @@ -30,16 +30,14 @@ def self.prepare_output_dir(output_dir, clean) # @return [Array] doc structure comprised of # section names & child names & URLs def self.doc_structure_for_docs(docs) - structure = [] - docs.each do |doc| - structure << { + docs.map do |doc| + { section: doc.name, children: doc.children.sort_by(&:name).map do |child| { name: child.name, url: child.url } end, } end - structure end # Build documentation from the given options @@ -192,6 +190,7 @@ def self.document_index(source_module, path_to_root) doc[:github_url] = source_module.github_url.to_s doc[:dash_url] = source_module.dash_url doc[:path_to_root] = path_to_root + doc[:hide_name] = true doc.render end diff --git a/lib/jazzy/jazzy_markdown.rb b/lib/jazzy/jazzy_markdown.rb index d1b761b90..2a1b3d914 100755 --- a/lib/jazzy/jazzy_markdown.rb +++ b/lib/jazzy/jazzy_markdown.rb @@ -7,10 +7,6 @@ class JazzyHTML < Redcarpet::Render::HTML include Redcarpet::Render::SmartyPants include Rouge::Plugins::Redcarpet - def paragraph(text) - "

#{text}

" - end - def header(text, header_level) text_slug = text.gsub(/[^a-zA-Z0-9]+/, '_') .downcase diff --git a/lib/jazzy/partials/footer.mustache b/lib/jazzy/partials/footer.mustache index d5da67f40..4f4d32702 100755 --- a/lib/jazzy/partials/footer.mustache +++ b/lib/jazzy/partials/footer.mustache @@ -1,4 +1,4 @@ diff --git a/lib/jazzy/partials/header.mustache b/lib/jazzy/partials/header.mustache new file mode 100644 index 000000000..9d750a7f3 --- /dev/null +++ b/lib/jazzy/partials/header.mustache @@ -0,0 +1,11 @@ +
+
+

{{module_name}} Docs ({{doc_coverage}}% documented)

+ {{#github_url}} +

View on GitHub

+ {{/github_url}} + {{#dash_url}} +

Install in Dash

+ {{/dash_url}} +
+
diff --git a/lib/jazzy/partials/nav.mustache b/lib/jazzy/partials/nav.mustache index e030dd514..5254df39e 100755 --- a/lib/jazzy/partials/nav.mustache +++ b/lib/jazzy/partials/nav.mustache @@ -1,11 +1,11 @@ -