Sha256: 7f61de1b7375c6ef23f297fb10999cb51515313e9742990143d894f23b7fe4cc

Contents?: true

Size: 1.81 KB

Versions: 4

Compression:

Stored size: 1.81 KB

Contents

<%= render 'govuk_publishing_components/components/title', title: GovukPublishingComponents::Config.component_guide_title, margin_top: 0 %>

<div class="component-markdown">
  <p>Components are packages of template, style, behaviour and documentation that live in your application.</p>
  <p>A component must:</p>
  <ul>
    <li><a href="https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_principles.md">meet the component principles</a></li>
    <li><a href="https://github.com/alphagov/govuk_publishing_components/blob/master/docs/component_conventions.md">follow component conventions</a></li>
  </ul>
  <p>See the <a href="https://github.com/alphagov/govuk_publishing_components">govuk_publishing_components gem</a> for further details, or <a href="https://docs.publishing.service.gov.uk/manual/components.html#component-guides">a list of all component guides</a>.</p>
</div>

<form role="search" data-module="filter-components" class="component-search">
  <%= render "govuk_publishing_components/components/search", {
    label_text: "Search components"
  } %>
</form>

<% unless ENV["MAIN_COMPONENT_GUIDE"] %>
  <h2 class="component-doc-h2">Components in this application</h2>

  <ul class="component-list">
    <% @component_docs.each do |component_doc| %>
      <li>
        <%= link_to component_doc.name, component_doc_path(component_doc.id), class: "govuk-link" %>
        <p>
          <%= component_doc.description %>
        </p>
      </li>
    <% end %>
  </ul>

  <h2 class="component-doc-h2">Components in the gem</h2>
<% end %>

<ul class="component-list">
  <% @gem_component_docs.each do |component_doc| %>
    <li>
      <%= link_to component_doc.name, component_doc_path(component_doc.id), class: "govuk-link" %>
      <p>
        <%= component_doc.description %>
      </p>
    </li>
  <% end %>
</ul>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
govuk_publishing_components-21.25.0 app/views/govuk_publishing_components/component_guide/index.html.erb
govuk_publishing_components-21.24.0 app/views/govuk_publishing_components/component_guide/index.html.erb
govuk_publishing_components-21.23.1 app/views/govuk_publishing_components/component_guide/index.html.erb
govuk_publishing_components-21.23.0 app/views/govuk_publishing_components/component_guide/index.html.erb