Sha256: 6f08436b6588fa48f87df71e0200ea3c3fedc92d35797a6261b24d11c919c250

Contents?: true

Size: 840 Bytes

Versions: 9

Compression:

Stored size: 840 Bytes

Contents

<section class="main">

  <article class="article autolink">

    <header>
      <h1 class="doc"><%= @article.metadata.title %></h1>
      <p class="meta">
        Local Preview.
      </p>
    </header>

    <div class="padder">

      <% if !@article.html.to_s.empty? %>

        <section id="table-of-contents">
          <h3 id="toc">Table of Contents</h3>
          <ul>
            <% @article.toc.each do |section| %>
            <li><a href="#<%= section.attr('id') %>"><%= section.inner_text %></a></li>
            <% end %>
          </ul>
        </section>

        <%= @article.html %>
      <% elsif @article.parsing_error %>
      <div class="cli-preview-error">
        <h4>Parsing error:</h4>
        <p>
          <%= @article.parsing_error %>
        </p>
      </div>
      <% end %>
    </div>

  </article>
</section>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
devcenter-1.1.6 lib/devcenter/previewer/views/article.erb
devcenter-1.1.5 lib/devcenter/previewer/views/article.erb
devcenter-1.1.4 lib/devcenter/previewer/views/article.erb
devcenter-1.1.3 lib/devcenter/previewer/views/article.erb
devcenter-1.1.2 lib/devcenter/previewer/views/article.erb
devcenter-1.1.1 lib/devcenter/previewer/views/article.erb
devcenter-1.1.0 lib/devcenter/previewer/views/article.erb
devcenter-1.1.0rc2 lib/devcenter/previewer/views/article.erb
devcenter-1.1.0rc1 lib/devcenter/previewer/views/article.erb