Skip to content

Commit

Permalink
Merge pull request #114 from alphagov/small-jobs
Browse files Browse the repository at this point in the history
Various small jobs
  • Loading branch information
querkmachine authored Sep 17, 2024
2 parents b9163bd + c5afa04 commit 1f8250b
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 1 deletion.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
The MIT License (MIT)

Copyright (C) 2024 Crown Copyright (Government Digital Service)

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

GovukTechDocs.configure(self)

# use custom layout file
set :layout, 'custom'

# use relative paths for links and sources
activate :relative_assets
set :relative_links, true
6 changes: 5 additions & 1 deletion config/tech-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
host:

# Header-related options
show_govuk_logo: true
show_govuk_logo: false
service_name: WCAG 2.1 Primer
service_link: /index.html
phase: alpha
Expand Down Expand Up @@ -38,3 +38,7 @@ max_toc_heading_level: 4

# Prevent robots from indexing (e.g. whilst in development)
prevent_indexing: true

# Show GitHub source/issue/repo links at the bottom of each page
show_contribution_banner: true
github_repo: alphagov/wcag-primer
5 changes: 5 additions & 0 deletions source/layouts/custom.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<% wrap_layout :layout do %>
<%= partial 'partials/internal-banner' %>
<%= yield %>
<% end %>
3 changes: 3 additions & 0 deletions source/partials/_internal-banner.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="app-internal-banner">
<p><strong>The WCAG Primer is intended for use by the UK cross government accessibility community.</strong></p>
</div>
13 changes: 13 additions & 0 deletions source/stylesheets/screen.css.scss
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
$govuk-font-family: "HelveticaNeue", "Helvetica Neue", "Arial", "Helvetica",
sans-serif;

@import "govuk_tech_docs";

.app-internal-banner {
margin: govuk-spacing(5) 0;
padding-bottom: govuk-spacing(2);
border-bottom: 1px solid govuk-colour("mid-grey");

p {
margin: 0;
}
}

0 comments on commit 1f8250b

Please sign in to comment.