-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #244 from alphagov/docs_app
Create demo app and move documentation to sub-app
- v13.16.2
- v13.16.1
- v13.16.0
- v13.15.3
- v13.15.2
- v13.15.1
- v13.15.0
- v13.14.1
- v13.14.0
- v13.13.6
- v13.13.5
- v13.13.4
- v13.13.3
- v13.13.2
- v13.13.1
- v13.13.0
- v13.12.2
- v13.12.1
- v13.12.0
- v13.11.0
- v13.10.1
- v13.10.0
- v13.9.1
- v13.9.0
- v13.8.1
- v13.8.0
- v13.7.1
- v13.7.0
- v13.6.2
- v13.6.1
- v13.6.0
- v13.5.0
- v13.4.0
- v13.3.0
- v13.2.4
- v13.2.3
- v13.2.2
- v13.2.1
- v13.2.0
- v13.1.0
- v13.0.1
- v13.0.0
- v12.3.0
- v12.2.0
- v12.1.1
- v12.1.0
- v12.0.4
- v12.0.3
- v12.0.2
- v12.0.1
- v12.0.0
- v11.0.0
- v10.0.0
- v9.15.0
- v9.14.2
- v9.14.1
- v9.14.0
- v9.13.0
- v9.12.1
- v9.12.0
- v9.11.2
- v9.11.1
- v9.11.0
- v9.10.1
- v9.10.0
- v9.9.0
- v9.8.0
- v9.7.0
- v9.6.1
- v9.6.0
- v9.5.0
- v9.4.0
- v9.3.0
- v9.2.0
- v9.1.0
- v9.0.0
- v8.12.1
- v8.12.0
- v8.11.0
- v8.10.0
- v8.9.0
- v8.8.0
- v8.7.0
- v8.6.0
- v8.5.0
- v8.4.0
- v8.3.0
- v8.2.0
- v8.1.0
- v8.0.0
- v7.1.0
- v7.0.0
- v7.0.0-beta.10
- v6.3.0
- v6.2.0
- v6.1.0
- v6.0.0
- v5.1.0
- v5.0.1
- v5.0.0
- npm-v0.0.1-beta.0
- 4.0.0
Showing
62 changed files
with
841 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,11 @@ | ||
var express = require('express') | ||
var router = express.Router() | ||
|
||
// Route index page | ||
router.get('/', function (req, res) { | ||
res.render('index') | ||
}) | ||
|
||
// Example routes - feel free to delete these | ||
|
||
// Passing data into a page | ||
|
||
router.get('/examples/template-data', function (req, res) { | ||
res.render('examples/template-data', { 'name': 'Foo' }) | ||
}) | ||
|
||
// Branching | ||
|
||
router.get('/examples/over-18', function (req, res) { | ||
// get the answer from the query string (eg. ?over18=false) | ||
var over18 = req.query.over18 | ||
|
||
if (over18 === 'false') { | ||
// redirect to the relevant page | ||
res.redirect('/examples/under-18') | ||
} else { | ||
// if over18 is any other value (or is missing) render the page requested | ||
res.render('examples/over-18') | ||
} | ||
}) | ||
|
||
// add your routes here | ||
|
||
module.exports = router |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* global $ */ | ||
/* global GOVUK */ | ||
|
||
// Warn about using the kit in production | ||
if ( | ||
window.sessionStorage && window.sessionStorage.getItem('prototypeWarning') !== 'false' && | ||
window.console && window.console.info | ||
) { | ||
window.console.info('GOV.UK Prototype Kit - do not use for production') | ||
window.sessionStorage.setItem('prototypeWarning', true) | ||
} | ||
|
||
$(document).ready(function () { | ||
// Use GOV.UK selection-buttons.js to set selected | ||
// and focused states for block labels | ||
var $blockLabels = $(".block-label input[type='radio'], .block-label input[type='checkbox']") | ||
new GOVUK.SelectionButtons($blockLabels) // eslint-disable-line | ||
|
||
// Use GOV.UK shim-links-with-button-role.js to trigger a link styled to look like a button, | ||
// with role="button" when the space key is pressed. | ||
GOVUK.shimLinksWithButtonRole.init() | ||
|
||
// Show and hide toggled content | ||
// Where .block-label uses the data-target attribute | ||
// to toggle hidden content | ||
var showHideContent = new GOVUK.ShowHideContent() | ||
showHideContent.init() | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
@import "govuk-elements"; | ||
|
||
.markdown { | ||
h1 { | ||
@extend .heading-xlarge; | ||
} | ||
|
||
h2 { | ||
@extend .heading-large; | ||
} | ||
|
||
h3 { | ||
@extend .heading-medium; | ||
} | ||
|
||
h4 { | ||
@extend .heading-small; | ||
} | ||
|
||
code { | ||
background: $grey-4; | ||
padding: 3px; | ||
font-size: 1em; | ||
} | ||
|
||
pre > code { | ||
@extend .code; | ||
display: block; | ||
@extend .panel; | ||
@extend .panel-border-wide; | ||
margin-bottom: 15px; | ||
} | ||
|
||
img { | ||
max-width: 100%; | ||
} | ||
|
||
ul { | ||
@extend .list; | ||
@extend .list-bullet; | ||
} | ||
|
||
blockquote { | ||
@extend .panel; | ||
@extend .panel-border-wide; | ||
} | ||
|
||
strong { | ||
font-weight: 700; | ||
} | ||
} | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
var express = require('express') | ||
var fs = require('fs') | ||
var marked = require('marked') | ||
var path = require('path') | ||
var router = express.Router() | ||
var utils = require('../lib/utils.js') | ||
|
||
// Page routes | ||
|
||
// Docs index | ||
router.get('/', function (req, res) { | ||
res.render('index') | ||
}) | ||
|
||
router.get('/install', function (req, res) { | ||
var url = utils.getLatestRelease() | ||
res.render('install', { 'releaseURL': url }) | ||
}) | ||
|
||
// Pages in install folder are markdown | ||
router.get('/install/:page', function (req, res) { | ||
redirectMarkdown(req.params.page, res) | ||
var doc = fs.readFileSync(path.join(__dirname, '/documentation/install/', req.params.page + '.md'), 'utf8') | ||
var html = marked(doc) | ||
res.render('install_template', {'document': html}) | ||
}) | ||
|
||
// Examples - exampes post here | ||
router.post('/tutorials-and-examples', function (req, res) { | ||
res.redirect('tutorials-and-examples') | ||
}) | ||
|
||
// Example routes | ||
|
||
// Passing data into a page | ||
|
||
router.get('/examples/template-data', function (req, res) { | ||
res.render('examples/template-data', { 'name': 'Foo' }) | ||
}) | ||
|
||
// Branching | ||
|
||
router.get('/examples/over-18', function (req, res) { | ||
// get the answer from the query string (eg. ?over18=false) | ||
var over18 = req.query.over18 | ||
|
||
if (over18 === 'false') { | ||
// redirect to the relevant page | ||
res.redirect('/docs/examples/under-18') | ||
} else { | ||
// if over18 is any other value (or is missing) render the page requested | ||
res.render('examples/over-18') | ||
} | ||
}) | ||
|
||
module.exports = router | ||
|
||
// Strip off markdown extensions if present and redirect | ||
var redirectMarkdown = function (requestedPage, res) { | ||
if (requestedPage.slice(-3).toLowerCase() === '.md') { | ||
res.redirect(requestedPage.slice(0, -3)) | ||
} | ||
if (requestedPage.slice(-9).toLowerCase() === '.markdown') { | ||
res.redirect(requestedPage.slice(0, -9)) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block page_title %} | ||
About - GOV.UK Prototype kit | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<main id="content" role="main"> | ||
<div class="grid-row"> | ||
<div class="column-two-thirds"> | ||
<div class="breadcrumbs"> | ||
<ol> | ||
<li><a href="/docs">GOV.UK Prototype kit</a></li> | ||
</ol> | ||
</div> | ||
<h1 class="heading-xlarge">About</h1> | ||
|
||
<p class="lede"> | ||
The prototype kit provides a simple way to make interactive prototypes that look like pages on GOV.UK. These prototypes can be used to show ideas to people you work with, and to do user research | ||
</p> | ||
|
||
<h2 class="heading-medium">Community</h2> | ||
|
||
<p>We have two Slack channels for the Prototype kit. You'll need a government email address to join.</p> | ||
<ul class="list list-bullet"> | ||
<li><a href="https://ukgovernmentdigital.slack.com/messages/prototype-kit/">Slack channel for users of the prototype kit</a></li> | ||
<li><a href="https://ukgovernmentdigital.slack.com/messages/prototype-kit-dev/">Slack channel for developers of the prototype kit</a></li> | ||
</ul> | ||
|
||
|
||
<h2 class="heading-medium">Principles</h2> | ||
|
||
<p>The prototype kit:</p> | ||
<ul class="list list-bullet"> | ||
<li>is designed for prototyping, not for production code</li> | ||
<li>requires minimal skills to get started: HTML, CSS</li> | ||
<li>should be fully documented in a way that is accessible to the target audience</li> | ||
<li> | ||
makes use of existing GOV.UK tools and templates; the <a href="https://github.com/alphagov/govuk_template">GOV.UK template</a>, <a href="https://github.com/alphagov/govuk_frontend_toolkit">GOV.UK front end toolkit</a> and <a href="https://github.com/alphagov/govuk_elements">GOV.UK elements</a> | ||
</li> | ||
<li>allows for server-side code</li> | ||
<li>can be extended - for example using NPM to install a module, access datastores, etc</li> | ||
<li>makes it easy to share prototypes with others online</li> | ||
|
||
</ul> | ||
|
||
|
||
<h2 class="heading-medium">Privacy</h2> | ||
|
||
|
||
<p>You must protect user privacy at all times, even when using prototypes. Prototypes made with the kit look like GOV.UK, but do not have the same security provisions. Always make sure you are handling user data appropriately.</p> | ||
|
||
|
||
|
||
<h2 class="heading-medium">The kit is not a production framework</h2> | ||
|
||
<p>Things made with the kit may look like GOV.UK, but do not have production code and likely aren't fully accessible. Don't use the kit as a base for a production service.</p> | ||
|
||
</div> | ||
|
||
|
||
</div> | ||
|
||
|
||
</main> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block pageTitle %} | ||
Documentation - GOV.UK Prototype kit | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<main id="content" role="main" class="docs markdown"> | ||
<div class="breadcrumbs"> | ||
<ol role="breadcrumbs"> | ||
<li><a href="/docs">GOV.UK prototype kit</a></li> | ||
<li><a href="/docs/tutorials-and-examples">Tutorials and examples</a></li> | ||
</ol> | ||
</div> | ||
|
||
<div class="grid-row"> | ||
|
||
<div class="column-two-thirds"> | ||
|
||
{{document | safe}} | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</main> | ||
|
||
{% endblock %} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="breadcrumbs"> | ||
<ol> | ||
<li><a href="/docs">GOV.UK prototype kit</a></li> | ||
<li><a href="/docs/tutorials-and-examples">Tutorials and examples</a></li> | ||
</ol> | ||
</div> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<link href="/public/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" /> | ||
<link href="/public/stylesheets/docs.css" media="screen" rel="stylesheet" type="text/css" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="phase-banner-alpha"> | ||
<p> | ||
<strong class="phase-tag">ALPHA</strong> | ||
<span>This is a new service – your <a href="#">feedback</a> will help us to improve it.</span> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="phase-banner-beta"> | ||
<p> | ||
<strong class="phase-tag">BETA</strong> | ||
<span>This is a new service – your <a href="#">feedback</a> will help us to improve it.</span> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div class="header-proposition"> | ||
<div class="content"> | ||
<a href="#proposition-links" class="js-header-toggle menu">Menu</a> | ||
<nav id="proposition-menu"> | ||
<a href="/" id="proposition-name">{% if serviceName %} {{ serviceName }} {% endif %}</a> | ||
<!-- | ||
<ul id="proposition-links"> | ||
<li><a href="url-to-page-1" class="active">Navigation item #1</a></li> | ||
<li><a href="url-to-page-2">Navigation item #2</a></li> | ||
</ul> | ||
--> | ||
</nav> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="header-proposition"> | ||
<div class="content"> | ||
<a href="#proposition-links" class="js-header-toggle menu">Menu</a> | ||
<nav id="proposition-menu"> | ||
<a href="/" id="proposition-name">Service Name <span class="alpha-tag">Alpha</span></a> | ||
<ul id="proposition-links"> | ||
<li><a href="url-to-page-1" class="active">Navigation item #1</a></li> | ||
<li><a href="url-to-page-2">Navigation item #2</a></li> | ||
</ul> | ||
</nav> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<div class="header-proposition"> | ||
<div class="content"> | ||
<a href="#proposition-links" class="js-header-toggle menu">Menu</a> | ||
<nav id="proposition-menu"> | ||
<a href="/docs" id="proposition-name">Prototype kit</a> | ||
|
||
<ul id="proposition-links"> | ||
<li><a href="/docs/install">Install</a></li> | ||
<li><a href="/docs/tutorials-and-examples">Tutorials and examples</a></li> | ||
<li><a href="/docs/about">About</a></li> | ||
<li><a href="https://github.com/alphagov/govuk_prototype_kit">GitHub</a></li> | ||
</ul> | ||
|
||
</nav> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<!-- Javascript --> | ||
<script src="/public/javascripts/details.polyfill.js"></script> | ||
<script src="/public/javascripts/jquery-1.11.3.js"></script> | ||
<script src="/public/javascripts/govuk/selection-buttons.js"></script> | ||
<script src="/public/javascripts/govuk/shim-links-with-button-role.js"></script> | ||
<script src="/public/javascripts/govuk/show-hide-content.js"></script> | ||
<script src="/public/javascripts/docs.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block page_title %} | ||
GOV.UK prototype kit | ||
{% endblock %} | ||
|
||
{% block proposition_header %} | ||
{% include "includes/prototype_kit_navigation.html" %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<main id="content" role="main"> | ||
<div class="grid-row"> | ||
<div class="column-two-thirds"> | ||
|
||
<h1 class="heading-xlarge">GOV.UK prototype kit</h1> | ||
|
||
<p class="lede"> | ||
Rapidly create HTML prototypes of GOV.UK services. | ||
</p> | ||
{{releaseVersion | log }} | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
<div class="grid-row"> | ||
|
||
<div class="column-third"> | ||
|
||
<h2 class="heading-medium"><a href="/docs/install">Install</a></h2> | ||
<p> | ||
Download and installation instructions. | ||
</p> | ||
|
||
</div> | ||
<div class="column-third"> | ||
|
||
<h2 class="heading-medium"><a href="/docs/tutorials-and-examples">Tutorials and examples</a></h2> | ||
<p> | ||
Tutorials, examples and templates. | ||
</p> | ||
|
||
</div> | ||
<div class="column-third"> | ||
|
||
<h2 class="heading-medium"><a href="/docs/about">About</a></h2> | ||
<p> | ||
About the kit, principles, privacy. | ||
</p> | ||
|
||
</div> | ||
|
||
</div> | ||
<div class="grid-row"> | ||
|
||
<div class="column-third"> | ||
|
||
<h2 class="heading-medium"><a href="https://github.com/alphagov/govuk_prototype_kit">GitHub</a></h2> | ||
<p> | ||
Source code, contributing, bugs. | ||
</p> | ||
|
||
</div> | ||
|
||
|
||
</div> | ||
</main> | ||
|
||
{% endblock %} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block page_title %} | ||
Getting started - GOV.UK Prototype kit | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<main id="content" role="main"> | ||
<div class="grid-row"> | ||
<div class="column-two-thirds"> | ||
|
||
<div class="breadcrumbs"> | ||
<ol> | ||
<li><a href="/docs">GOV.UK prototype kit</a></li> | ||
</ol> | ||
</div> | ||
|
||
<h1 class="heading-xlarge">Installing the kit</h1> | ||
|
||
<p class="lede"> | ||
Get up and running with the kit in 30 minutes. | ||
</p> | ||
|
||
<h2 class="heading-medium">1. Download the kit</h2> | ||
<a href="{{releaseURL}}" class="">Download (zip)</a> | ||
<h2 class="heading-medium">2. Install the kit</h2> | ||
|
||
<p>Choose from:</p> | ||
<ul class="list list-bullet"> | ||
<li><a href="/docs/install/introduction">simple install guide</a><br>for users new to Node.js, Git or the terminal</li> | ||
<li><a href="/docs/install/developer-install-instructions">advanced install guide</a><br>for users familiar with Node.js, Git and the terminal</li> | ||
</ul> | ||
|
||
</div> | ||
|
||
|
||
</div> | ||
|
||
|
||
</main> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block pageTitle %} | ||
Install - GOV.UK Prototype kit | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<main id="content" role="main" class="docs markdown"> | ||
<div class="breadcrumbs"> | ||
<ol> | ||
<li><a href="/docs">GOV.UK prototype kit</a></li> | ||
<li><a href="/docs/install">Install</a></li> | ||
</ol> | ||
</div> | ||
|
||
<div class="grid-row"> | ||
|
||
<div class="column-two-thirds"> | ||
|
||
{{document | safe}} | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</main> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{% extends "govuk_template.html" %} | ||
|
||
{% block head %} | ||
{% include "includes/head.html" %} | ||
{% endblock %} | ||
|
||
{% block cookie_message %} | ||
<p>{{cookieText | safe }}</p> | ||
{% endblock %} | ||
|
||
{% block proposition_header %} | ||
{% include "includes/prototype_kit_navigation.html" %} | ||
{% endblock %} | ||
|
||
{% block header_class %} | ||
with-proposition | ||
{% endblock %} | ||
|
||
{% block body_end %} | ||
{% include "includes/scripts.html" %} | ||
<!-- GOV.UK Prototype kit {{releaseVersion}} --> | ||
{% endblock %} |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
{% extends "layout.html" %} | ||
|
||
{% block page_title %} | ||
GOV.UK prototype kit | ||
{% endblock %} | ||
|
||
{% block content %} | ||
|
||
<main id="content" role="main"> | ||
|
||
<div class="breadcrumbs"> | ||
<ol> | ||
<li><a href="/docs">GOV.UK prototype kit</a></li> | ||
</ol> | ||
</div> | ||
|
||
<h1 class="heading-xlarge">Tutorials and examples</h1> | ||
|
||
<div class="grid-row"> | ||
|
||
<div class="column-two-thirds"> | ||
<h2 class="heading-medium">Tutorials</h2> | ||
<p>These tutorials are being actively developed. If you have suggestions for improvements, we'd love to hear from you.</p> | ||
</div> | ||
</div> | ||
<div class="grid-row"> | ||
<div class="column-third"> | ||
<h3 class="heading-small">Getting started</h3> | ||
<ul class="list list-bullet"> | ||
<li><a href="/prototype-admin/download-latest">Download kit (zip)</a></li> | ||
<li><a href="/docs/install/introduction">Simple install guide</a> | ||
<ol class="list list-number"> | ||
<li><a href="/docs/install/requirements">Kit requirements</a></li> | ||
<li><a href="/docs/install/install-the-kit">Install the kit</a></li> | ||
<li><a href="/docs/install/run-the-kit">Run the kit</a></li> | ||
</ol> | ||
</li> | ||
<li><a href="/docs/install/developer-install-instructions">Advanced install guide</a></li> | ||
</ul> | ||
|
||
|
||
</div> | ||
<div class="column-third"> | ||
<h3 class="heading-small">Basic usage</h3> | ||
<ul class="list list-bullet"> | ||
<li><a href="/docs/making-pages">Making pages</a></li> | ||
<li><a href="/docs/writing-css">Writing CSS</a></li> | ||
<li><a href="/docs/setting-up-git">Setting up Git</a></li> | ||
<li><a href="/docs/publishing-on-heroku">Publishing on the web (Heroku)</a></li> | ||
<li><a href="/docs/examples/template-data">Passing data into a template</a></li> | ||
<li><a href="/docs/tips-and-tricks">Tips and tricks</a></li> | ||
<li><a href="/docs/updating-the-kit">Updating the kit</a></li> | ||
</ul> | ||
</div> | ||
<div class="column-third"> | ||
<h3 class="heading-small">Advanced usage</h3> | ||
<ul class="list list-bullet"> | ||
<li><a href="/docs/examples/branching">Branching</a> | ||
<p class="font-xsmall">(Showing a different page based on user input)</p> | ||
</li> | ||
<li><a href="/docs/creating-routes">Creating routes (server side programming)</a></li> | ||
<li><a href="/docs/session">Storing data in session</a></li> | ||
<li><a href="/docs/using-verify">Using GOV.UK Verify</a></li> | ||
|
||
</ul> | ||
</div> | ||
</div> | ||
|
||
<div class="grid-row"> | ||
<div class="column-two-thirds"> | ||
<h2 class="heading-medium">Page templates</h2> | ||
<p class="text"> | ||
Use these as the basis for your prototypes. | ||
We recommend making copies the files rather than directly editing them. | ||
</p> | ||
|
||
</div> | ||
</div> | ||
|
||
<div class="grid-row"> | ||
|
||
|
||
<div class="column-third"> | ||
<h3 class="heading-small">Components</h3> | ||
<ul class="list list-bullet"> | ||
<li> | ||
<a href="/docs/examples/elements/grid-layout"> | ||
Grid layout | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/examples/elements/typography"> | ||
Typography | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/examples/elements/forms"> | ||
Basic form example | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/examples/elements/radio-buttons-checkboxes"> | ||
Radio buttons and checkboxes | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/examples/elements/toggled-content"> | ||
Toggling content | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/examples/template-partial-areas"> | ||
Template partial areas | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="column-third"> | ||
|
||
<h3 class="heading-small">Entire pages</h3> | ||
<ul class="list list-bullet"> | ||
<li> | ||
<a href="/docs/examples/blank-govuk"> | ||
Blank | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/examples/blank-unbranded"> | ||
Blank (non-GOV.UK) | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/examples/start-page"> | ||
Start | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/examples/question-page"> | ||
Question | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/examples/check-your-answers-page"> | ||
Check your answers | ||
</a> | ||
</li> | ||
<li> | ||
<a href="/docs/examples/confirmation-page"> | ||
Confirmation | ||
</a> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
</div> | ||
|
||
</main> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters