Create basic component guide #1
Merged
Conversation
* Add wrapper ID to allow slimmer to run insertion correctly * Add sass, toolkit and slimmer dependencies * Create index route, controller and view
Use models, logic and styles from https://github.com/alphagov/govuk-component-guide. Docs structure will be identical. * Render a list of components based on docs in the `app/views/components/docs` directory of the host app * Display a component with a set of test fixtures based on those docs * Include those partials in the view path * Use breadcrumbs component for navigating the guide *
|
||
def self.get(id) | ||
all.find { |component| component.id == id } | ||
end |
andysellick
Jul 12, 2017
Indenting issue here?
Indenting issue here?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
A gem to document design patterns in Rails applications.
Use models, logic and styles from https://github.com/alphagov/govuk-component-guide. Structure of component documentation will be identical.
.yml
) found in theapp/views/components/docs
directory of the host appapp/views/components
directory