generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nick Walters
authored
Oct 21, 2022
1 parent
bd0ba37
commit 059a09e
Showing
6 changed files
with
100 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,13 @@ | ||
source "https://rubygems.org" | ||
|
||
# Fixed as Date exception occurs in govuk_tech_docs for review_date | ||
# when use ruby 3.x | ||
ruby "2.7.6" | ||
|
||
gem "govuk_tech_docs" | ||
gem "html-proofer" | ||
|
||
# Fixed as v5.x requires ruby 3.x | ||
gem "html-proofer", "4.4.3" | ||
|
||
# Fixed as v6.x has an issue when run Middleman build command | ||
gem "haml", "5.2.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
set -x | ||
set -euo pipefail | ||
|
||
# Restore the stashed config.rb Gemfile and Gemfile.lock | ||
cp /stashed-files/* . | ||
|
||
# Compile source markdown files into HTML in the `/docs` directory | ||
bundle exec middleman build --build-dir docs --relative-links --verbose | ||
|
||
# Check all URLs | ||
htmlproofer --log-level debug --allow-missing-href true --typhoeus '{"connecttimeout": 10, "timeout": 30, "accept_encoding": "zstd,br,gzip,deflate" }' ./docs |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/sh | ||
|
||
set -x | ||
set -euo pipefail | ||
|
||
# Restore the stashed config.rb Gemfile and Gemfile.lock | ||
cp /stashed-files/* . | ||
|
||
# Compile source markdown files into HTML in the `/docs` directory | ||
bundle exec middleman build --build-dir docs --relative-links --verbose | ||
|
||
touch docs/.nojekyll | ||
|
||
# Internal link check only within the docs folder | ||
htmlproofer --log-level debug --allow-missing-href true --disable_external true ./docs | ||
|
||
tar --dereference --directory docs -cvf artifact.tar --exclude=.git --exclude=.github . |