-
Notifications
You must be signed in to change notification settings - Fork 328
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove contributors list from template, fix template markup and update README files #403
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some unnecessary bits of HTML being included when the README is transpiled to markdown?
src/components/back-link/README.md
Outdated
@@ -1,3 +1,7 @@ | |||
<div class="govuk-o-width-container"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔
src/components/back-link/README.md
Outdated
.pipe(sass({ | ||
includePaths: 'node_modules/' | ||
})) | ||
<pre> `.pipe(sass({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did these pre
tags come from?
has there been work on the component template? |
Possibly related to 4c01202#diff-841b0a984418ab47f365fb13d1a0ac89? |
ok will fix that first then and check markdown compiler |
5f8af35
to
656e3b9
Compare
656e3b9
to
5f06261
Compare
f6674a7
to
43b6830
Compare
43b6830
to
b7780af
Compare
b7780af
to
dd1ab20
Compare
updated with template fixes |
dd1ab20
to
9882287
Compare
rebased with #405 |
src/components/breadcrumbs/README.md
Outdated
})` | ||
</pre> | ||
|
||
## Getting updates |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of the READMEs appear to be missing everything from here to the license, despite most of it still being in the template?
9882287
to
629d424
Compare
yeah missing |
src/views/component.njk
Outdated
@@ -57,72 +56,59 @@ | |||
<p class="govuk-body">{% block componentDependencies %}{% endblock %}</p> | |||
|
|||
<h2 class="govuk-heading-l">Installation</h2> | |||
<pre><code>npm install --save @govuk-frontend/{{ componentName }}</code></pre> | |||
|
|||
<code>npm install --save @govuk-frontend/{{ componentName }}</code> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the logic in <pre><code>
vs <code>
? Looking at the rendered readmes in GitHub, these no longer render as code blocks but as inline. Is that the desired outcome?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its a single line so doesnt stringly need pre. but can unify it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if it's a single line but not inline it should still be a code block.
I.e. the difference between this
inline code and
this single line code block
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ql, updated
629d424
to
31b1a84
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good except for one change I don't understand, which removes the main container from the homepage.
@@ -1,7 +1,6 @@ | |||
{% extends "layout-debug.njk" %} | |||
|
|||
{% block content %} | |||
<div class="govuk-o-main-wrapper"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why was this removed? There is now no space between the top of the page and the heading on the index page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
my bad, moved the other one into the logic but forgot to undelete this one.
List of contributors is already out of date. Will need to explore a different way of crediting contributions. To generate correct markdown files the following has also needed to be updated: Remove contributors list from view template Update pre, code blocks and move main-wrapper Move width-container outside of isReadme condition
31b1a84
to
dcf844c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Contributors list is already out of date. We will need to explore a different way of crediting contributions.
This PR:
pre
andcode
blocks in generated markdown files