Skip to content
Technical documentation for the Document Checking Service pilot scheme
HTML Ruby Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
config Add missing `https://` to the host config Oct 21, 2019
Gemfile Add html-proofer linting Sep 20, 2019

DCS pilot technical documentation

Build Status

This is the documentation for the Document Checking Sytem (DCS) pilot

The pages are hosted at on the GOV.UK PaaS

Getting Started

To see the version of Ruby used by the application, see the ruby-version file.

Install Ruby

Start by installing rbenv and ruby-build:

brew upgrade rbenv ruby-build

This will allow you to compile Ruby, and makes it easier to manage multiple Ruby environments (macOS comes with Ruby installed, so this simplifies things).

Download the current version of Ruby that the application uses:

rbenv install 2.6.4 # substitute <2.6.4> with version found in .ruby-version

Set your Ruby version to match what rbenv installed in the previous step:

rbenv local 2.6.4 # substitute with version installed. change local to global, if wanted.

Install the application's dependencies:

bundle install

Making changes

To make changes, edit the markdown files in the source folder.

Although a single page of HTML is generated, the markdown is spread across multiple files to make it easier to manage. They can be found in source/.

A new markdown file is not automatically included in the generated output. If you add a new markdown file at the location source/agile/, the following snippet in source/ will include it in the generated output.

<%= partial 'documentation/scrum' %>

Including files manually like this enables you to specify the position they appear on the page.

The sections in the documentation are controlled by the use of markdown headers, not the file structure.

Images to be included in the docs are kept in source/images

In order to configure some aspects of layout, like the header, edit config/tech-docs.yml.


The repository uses Travis CI to run a basic pre-commit. This ensures that changes do not break the application.

Before commiting any changes, the contributor should run this command in the application directory:

bundle exec middleman build

This command mimics the command run by the Travis Build Agent.


Whilst writing documentation, you can run a middleman server to preview how the published version will look in the browser.

The preview is only available on your own computer. Others will not be able to access it if you give them the link.

Type the following to start the server:

bundle exec middleman server

If all goes well, something like the following output will be displayed:

== The Middleman is loading
== LiveReload accepting connections from ws://
== View your site at "http://Laptop.local:4567", ""
== Inspect your site configuration at "http://Laptop.local:4567/__middleman", ""
You should now be able to view a live preview at http://localhost:4567.

Changes to the tech-docs.yml file require stopping and restarting the server to show up in the preview. You can stop it with Ctrl-C.

Code of conduct

Please refer to the alphagov code of conduct.


Unless stated otherwise, the codebase is released under the MIT License. This covers both the codebase and any sample code in the documentation.

The documentation is © Crown copyright and available under the terms of the Open Government 3.0 licence.

You can’t perform that action at this time.