Skip to content

Commit

Permalink
Update govuk-eleventy-plugin dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrobertlloyd committed Jan 16, 2024
1 parent a9f8d6d commit e7efa4f
Show file tree
Hide file tree
Showing 5 changed files with 774 additions and 442 deletions.
16 changes: 3 additions & 13 deletions docs/eleventy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ const govukEleventyPlugin = require('@x-govuk/govuk-eleventy-plugin')
module.exports = function(eleventyConfig) {
// Register the plugin
eleventyConfig.addPlugin(govukEleventyPlugin, {
brandColour: '#28a',
fontFamily: 'system-ui, sans-serif',
icons: {
mask: 'https://raw.githubusercontent.com/x-govuk/logo/main/images/x-govuk-mask-icon.svg?raw=true',
shortcut: 'https://raw.githubusercontent.com/x-govuk/logo/main/images/x-govuk-favicon.ico',
Expand All @@ -16,12 +14,9 @@ module.exports = function(eleventyConfig) {
url: 'https://x-govuk.github.io/#projects',
name: 'X-GOVUK projects'
},
url: process.env.GITHUB_ACTIONS
? 'https://x-govuk.github.io/govuk-rspec-helpers/'
: '/',
url: process.env.GITHUB_ACTIONS && 'https://x-govuk.github.io/govuk-rspec-helpers/',
header: {
organisationLogo: 'x-govuk',
organisationName: 'X-GOVUK',
logotype: 'x-govuk',
productName: 'RSpec Helpers',
search: {
indexPath: '/search.json',
Expand All @@ -34,9 +29,6 @@ module.exports = function(eleventyConfig) {
},
copyright: {
text: '© X-GOVUK'
},
meta: {
items: []
}
}
})
Expand All @@ -52,8 +44,6 @@ module.exports = function(eleventyConfig) {
// Use layouts from the plugin
layouts: 'node_modules/@x-govuk/govuk-eleventy-plugin/layouts'
},
pathPrefix: process.env.GITHUB_ACTIONS
? '/govuk-rspec-helpers/'
: '/'
pathPrefix: process.env.GITHUB_ACTIONS && '/govuk-rspec-helpers/'
}
};
8 changes: 4 additions & 4 deletions docs/index.njk
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ startButton:
---
<div class="govuk-grid-row">
<section class="govuk-grid-column-two-thirds-from-desktop">
<h2 class="govuk-heading-m govuk-!-font-size-27">Navigating and filling in forms</h2>
<h2 class="govuk-heading-m">Navigating and filling in forms</h2>
<ul class="govuk-list govuk-list--bullet">
<li><a class="govuk-link" href="click-govuk-button">Buttons</a></li>
<li><a class="govuk-link" href="checkboxes">Checkboxes</a></li>
Expand All @@ -21,16 +21,16 @@ startButton:
<li><a class="govuk-link" href="choosing-radio-options">Radio options</a></li>
<li><a class="govuk-link" href="fill_in_govuk_text_field">Text fields</a></li>
</ul>
<h2 class="govuk-heading-m govuk-!-font-size-27">Expecting content</h2>
<h2 class="govuk-heading-m">Expecting content</h2>
<ul class="govuk-list govuk-list--bullet">
<li><a class="govuk-link" href="summarise-errors">Error summaries</a></li>
<li><a class="govuk-link" href="summarise">Summary lists</a></li>
</ul>
</section>
<section class="govuk-grid-column-full">
<hr class="govuk-section-break govuk-section-break--visible govuk-section-break--xl govuk-!-margin-top-0">
<h2 class="govuk-heading-m govuk-!-font-size-27">Contribute</h2>
<h2 class="govuk-heading-m">Contribute</h2>
<p class="govuk-body">The project repository is public and we welcome contributions from anyone.</p>
<p class="govuk-body"><a class="govuk-link govuk-!-font-weight-bold" href="{{ pkg.repository.url | replace(".git", "") }}">View this project on GitHub</a></p>
<p class="govuk-body"><a class="govuk-link govuk-link--no-visited-state" href="{{ pkg.repository.url | replace(".git", "") }}">View this project on GitHub</a></p>
</section>
</div>
Loading

0 comments on commit e7efa4f

Please sign in to comment.