From 3f56a4877260d84a7d8e87e547d374fc988776ad Mon Sep 17 00:00:00 2001 From: Duncan Brown Date: Wed, 13 May 2020 15:20:38 +0100 Subject: [PATCH] Remove misleading reference to moj-image-url-function (#87) --- docs/installation/installing-with-npm.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/installation/installing-with-npm.md b/docs/installation/installing-with-npm.md index b533cae3c..7a0b18751 100755 --- a/docs/installation/installing-with-npm.md +++ b/docs/installation/installing-with-npm.md @@ -89,9 +89,7 @@ Manually copy the images and fonts from `/node_modules/@ministryofjustice/fronte The default paths used for assets are `assets/images` and `assets/fonts`. **If your asset folders follow this structure, you will not need to complete the following steps.** -To use different asset paths, also complete the below step(s). - -1. Set `$govuk-assets-path`, `$govuk-images-path` and `$govuk-fonts-path` in your project Sass file to point to the relevant directories in your project (this will override the defaults set in `/node_modules/@ministryofjustice/frontend/moj/settings/_assets.scss`). Make sure you do this in Sass before importing `@ministryofjustice/frontend` into your project - see [Importing styles](#importing-styles). +To use different asset paths, set `$govuk-assets-path`, `$govuk-images-path` and `$govuk-fonts-path` in your project Sass file to point to the relevant directories in your project (this will override the defaults set in `/node_modules/@ministryofjustice/frontend/moj/settings/_assets.scss`). Make sure you do this in Sass before importing `@ministryofjustice/frontend` into your project - see [Importing styles](#importing-styles). Example 1: @@ -112,8 +110,6 @@ $moj-fonts-path: β€œ/fonts/”; @import β€œ@ministryofjustice/frontend/moj/all”; ``` -2. Optional: You can also override the helpers used to generate the asset urls, for example if you are using sass-rails' asset-pipeline functionality. You can do this by setting `$moj-image-url-function` to the name of the function(s) you wish to use. See `src/settings/_assets.scss` for more information and examples. - ## Include CSS and JavaScript Add the CSS and JavaScript code to your HTML template: