Skip to content
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

Update govuk-eleventy-plugin dependency #36

Merged
merged 1 commit into from
Dec 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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