Skip to content

Commit

Permalink
Replace content & config with tech-docs version
Browse files Browse the repository at this point in the history
This change converts the site to use (a patched
version of) the gov.uk tech-docs template & gems.

https://github.com/alphagov/tech-docs-template

Details of the patch are here:
ministryofjustice/cloud-platform-user-guide#393

This gives the site a search feature, as well as
dynamic review dates (i.e. you see a big red
banner at the foot of the page if the content was
not reviewed when it should have been).

Publishing is now done via a github action. See:

.github/workflows/publish.yml

...for details.
  • Loading branch information
digitalronin committed Aug 6, 2020
1 parent 46256db commit b1df190
Show file tree
Hide file tree
Showing 100 changed files with 382 additions and 4,661 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish

on:
push:
branches:
- "main"
paths-ignore:
- "docs/**"

jobs:
run:
runs-on: ubuntu-latest
container:
image: ministryofjustice/cloud-platform-tech-docs-publisher:1.1
steps:
- uses: actions/checkout@v2
- name: Build
run: bundle exec middleman build --build-dir docs --relative-links
env:
ROOT_DOCPATH: /technical-guidance
- run: touch docs/.nojekyll
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "Github Action"
- run: git checkout -b gh-pages
- run: git add docs
- run: git commit -m "Published at $(date)"
- run: git push origin gh-pages --force
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

1 change: 0 additions & 1 deletion Dangerfile

This file was deleted.

15 changes: 11 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# If you do not have OpenSSL installed, change
# the following line to use 'http://'
source 'https://rubygems.org'

gem 'github-pages', group: :jekyll_plugins
# For faster file watcher updates on Windows:
gem 'wdm', '~> 0.1.0', platforms: [:mswin, :mingw]

group :development do
gem 'ministryofjustice-danger'
end
# Windows does not come with time zone data
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]

# Include the tech docs gem
gem 'govuk_tech_docs'

gem "html-proofer"
Loading

0 comments on commit b1df190

Please sign in to comment.