From 80648f2a9d374af4d50d3c0825947973ac572fde Mon Sep 17 00:00:00 2001 From: Adrian Marin Date: Fri, 24 May 2024 11:53:22 +0300 Subject: [PATCH] improve asset pipeline docs --- docs/2.0/custom-asset-pipeline.md | 2 +- docs/3.0/custom-asset-pipeline.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/2.0/custom-asset-pipeline.md b/docs/2.0/custom-asset-pipeline.md index c3b0977b..44888876 100644 --- a/docs/2.0/custom-asset-pipeline.md +++ b/docs/2.0/custom-asset-pipeline.md @@ -145,7 +145,7 @@ The order in which Avo loads the partials and asset files is this one: ### Sprockets and Propshaft -Create `avo.custom.js` and `avo.custom.css` inside `app/assets/javascripts` and `app/assets/stylesheets` with the desired scripts and styles. +Create `avo.custom.js` and `avo.custom.css` inside `app/javascripts` and `app/assets/stylesheets` with the desired scripts and styles. Then add them to Avo using the `_pre_head.html.erb` partial (`rails generate avo:eject :pre_head`). ```erb diff --git a/docs/3.0/custom-asset-pipeline.md b/docs/3.0/custom-asset-pipeline.md index 78761dc3..483982ab 100644 --- a/docs/3.0/custom-asset-pipeline.md +++ b/docs/3.0/custom-asset-pipeline.md @@ -100,7 +100,7 @@ The order in which Avo loads the partials and asset files is this one: ### Sprockets and Propshaft -Create `avo.custom.js` and `avo.custom.css` inside `app/assets/javascripts` and `app/assets/stylesheets` with the desired scripts and styles. +Create `avo.custom.js` to the `app/javascripts` directory and `avo.custom.css` to `app/assets/stylesheets` with the desired scripts and styles. Then add them to Avo using the `_pre_head.html.erb` partial (`rails generate avo:eject --partial :pre_head`). ```erb