This repo contains the Ruby gem that distributes the Tech Docs Template. The Tech Docs Template is a middleman template that you can use to build technical documentation using a GOV.UK style.
👉 Find out more about the template and its features from the Tech Docs Template documentation.
👉 Find out how to generate a new website with the Tech Docs Template.
Everybody who uses this project is encouraged to contribute.
👉 See CONTRIBUTING.md for guidance on making changes.
This gem uses GOV.UK Frontend, part of the GOV.UK Design System.
We use npm to download the govuk-frontend package. To update to a new version, change the version in package.json and run npm update.
There are 2 ways to develop with this gem. You can see your changes on either:
- your own Tech Docs Template website
- the example in this repository
If you want to see how your changes to the gem affect your website, you have to point your site's Gemfile to your local checkout:
gem 'govuk_tech_docs', path: '../tech-docs-gem'To view your changes locally run:
bundle exec middleman serverSee your website on http://localhost:4567 in your browser.
To start the example in this repo, run:
cd example
bundle install
bundle exec middleman serverSee your website on http://localhost:4567 in your browser.
The repository contains automated JavaScript tests that use Jasmine test framework.
To run the tests and see the results in your browser:
- Run
bundle exec rake jasmine - Go to
http://localhost:8888in your browser
To run the tests and see the results in your terminal, run:
bundle exec rake jasmine:ci
To release a new version, create a new Pull Request that updates version.rb and CHANGELOG.md. Don't mix this in with other changes - this makes it easier to find out what was released when. See this PR to release a new version as an example.
Travis will automatically release a new version to Rubygems.org.
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.