Replies: 1 comment 2 replies
-
本当ですね。いちおう以下のようにすると相対パスになるっぽいですが、適切かどうかはわかりません。 --- a/lib/review/webmaker.rb
+++ b/lib/review/webmaker.rb
@@ -101,7 +101,7 @@ module ReVIEW
end
def generate_html_files(yamlfile)
- @basedir = File.absolute_path(File.dirname(yamlfile))
+ @basedir = File.path(File.dirname(yamlfile))
@path = build_path
remove_old_files(@path)
Dir.mkdir(@path) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
rake web で
webroot/
以下にウェブページを生成しています。@<icon>
や//image...
で入れ込んだ画像のimg
タグのsrc
の値が、ローカルファイルシステムのフルパスになっていました。その img src を
webroot/
からの相対パスになるようにしたいのですが、どのようにするとできるでしょうか。環境
Beta Was this translation helpful? Give feedback.
All reactions