This repo contains documentation to help technologists at government departments onboard to GOV.UK One Login. It’s published using the Technical Documentation Template.
The GOV.UK One Login technical writing team owns this documentation and has responsibility for approving content changes. It’s written to be user-centred and meet GDS content standards, which means following:
If you work on GOV.UK One Login, you should contact the tech writing team for help with content changes unless it’s small and does not affect user behaviour.
Small content changes include:
You can make these changes yourself and then request a tech writer review on the pull request. If you’re not sure whether a change is small, contact us on our #di-technical-writing Slack channel.
The Orchestration team is responsible for the maintenance and operational health of the tech docs platform. You should consult them for approval of any changes in that space.
Examples include:
To preview any changes and additions you have made to the documentation in a browser, clone this repo and use the Dockerfile in this repo to run a Middleman server on your machine without having to set up Ruby locally.
This setup has live reload enabled, which means your changes will be applied as you edit files in the source directory. The only exception to this is if you make changes to config/tech-docs.yml
, you must stop and restart the server to see your changes in the preview. You can stop the server with Ctrl-C
.
Run the helper script:
./preview-with-docker.sh
It may take a few minutes to build the docker container, particularly if it is your first time running the script. When the server has finished loading you should then see the following output in the terminal:
== View your site at "http://localhost:4567", "http://127.0.0.1:4567"
== Inspect your site configuration at "http://localhost:4567/__middleman", "http://127.0.0.1:4567/__middleman"/usr/local/bundle/gems/tilt-2.0.11/lib/tilt/redcarpet.
Diagrams are content, so once you've made a change you should request a review from the technical writing team.
You can edit the draw.io files in the source/images/originals
folder by installing and using the draw.io desktop app.
Use one draw.io file per diagram.
Run the following commands to use the draw.io desktop app from the command line.
brew install --cask drawio
alias draw.io='/Applications/draw.io.app/Contents/MacOS/draw.io'
Follow these steps:
source/images/originals
folder.source/images
folder.Update a diagram:
draw.io source/images/originals/top-level-technical-diagram.drawio
Generate SVG versions of the diagrams and save them to the source/images/originals
folder:
draw.io -x -o source/images/top-level-technical-diagram.svg source/images/originals/top-level-technical-diagram.drawio
draw.io -x -o source/images/technical-flow-diagram.svg source/images/originals/technical-flow-diagram.drawio
This repository uses Vale and the GDS Tech Docs Linter ruleset.
You need to:
Many code editors provide extensions or plugins for Vale which can raise errors as you update documentation. You will still need Vale installed on your local machine.
By default, Vale must be run from the same directory as this config file, unless the --config
flag is provide with a path.
To run the linter using Vale CLI:
vale sync
to download the latest tech-docs-linter package and unzip this to your StylesPath
listed in your config file.vale .
to lint the entire repo or provide a path to a directory to lint only that directory for example: vale ./source/go-live
If a new rule is added to the tech docs linter ruleset, you can upversion the package used by this repo when you're ready. A later version of the ruleset can be tested and added by:
vale sync
to download and unzip the latest package.vale ./source
to test the linter.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.