Skip to content

Commit

Permalink
Correct asset path for middleman serve
Browse files Browse the repository at this point in the history
middleman build (ie prod builds) will override the default to respect
the github pages path

Crib from co-cddo/api-catalogue#97
  • Loading branch information
duncanjbrown committed May 26, 2022
1 parent 7a72410 commit 997f3da
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions tech-docs/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ def list_items_from_headings(html, url: '', max_level: nil)

configure :build do
set :http_prefix, '/dfe-job-descriptions'
set :govuk_assets_path, '/dfe-job-descriptions/assets/govuk/assets/'
end
3 changes: 0 additions & 3 deletions tech-docs/source/stylesheets/screen.css.scss

This file was deleted.

3 changes: 3 additions & 0 deletions tech-docs/source/stylesheets/screen.css.scss.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
$govuk-assets-path: "<%= app.config[:govuk_assets_path] || "/assets/govuk/assets/" %>";

@import "govuk_tech_docs";

0 comments on commit 997f3da

Please sign in to comment.