Skip to content

Commit 7c7e4c5

Browse files
committed
Fix building guides outside ./guides directory
As is the case with the `rake preview_docs` task. ``` Error reading assets/stylesrc/style.scss: Cannot open file. Error reading assets/stylesrc/highlight.scss: Cannot open file. Error reading assets/stylesrc/print.scss: Cannot open file. ```
1 parent 4dbf7e3 commit 7c7e4c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

guides/rails_guides/generator.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ def select_only(guides)
107107
end
108108

109109
def process_scss
110-
system "bundle exec dartsass ./assets/stylesrc/style.scss:#{@output_dir}/stylesheets/style.css ./assets/stylesrc/highlight.scss:#{@output_dir}/stylesheets/highlight.css ./assets/stylesrc/print.scss:#{@output_dir}/stylesheets/print.css"
110+
system "bundle exec dartsass \
111+
#{@guides_dir}/assets/stylesrc/style.scss:#{@output_dir}/stylesheets/style.css \
112+
#{@guides_dir}/assets/stylesrc/highlight.scss:#{@output_dir}/stylesheets/highlight.css \
113+
#{@guides_dir}/assets/stylesrc/print.scss:#{@output_dir}/stylesheets/print.css"
111114
end
112115

113116
def copy_assets

0 commit comments

Comments
 (0)