Tech Docs Template - gem

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 DSS style. This repository will age quickly as there is no attempt to keep this in sync with the published GEM. This repository was created on 25th April 2019.

👉 Find out more about the template and its features from the Tech Docs Template documentation.

Usage

👉 Find out how to generate a new website with the Tech Docs Template.

Contributing

Everybody who uses this project is encouraged to contribute.

👉 See CONTRIBUTING.md for guidance on making changes.

Developing locally

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

Use your own Tech Docs Template website

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 server

See your website on http://localhost:4567 in your browser.

Use the example in this repo

To start the example in this repo, run:

cd example
bundle install
bundle exec middleman server

See your website on http://localhost:4567 in your browser.

Tests

The repository contains automated JavaScript tests that use Jasmine test framework.

To run the tests and see the results in your browser:

  1. Run bundle exec rake jasmine
  2. Go to http://localhost:8888 in your browser

To run the tests and see the results in your terminal, run:

bundle exec rake jasmine:ci

Releasing new versions

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.

Licence

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.