We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24b8282 commit 63179e2Copy full SHA for 63179e2
Rakefile
@@ -68,10 +68,9 @@ def generate_src(target_version: nil)
68
69
cd target_dir do
70
cp INDEX_HTML, 'index.html'
71
-
72
return if target_version.nil?
73
74
- # Replace absolute path in navigation.html
+ # Prepend version number to the absolute path in navigation.html
75
content = File.read('navigation.html')
76
content.gsub!('<a href="/', "<a href=\"/#{target_version}/")
77
File.write('navigation.html', content)
0 commit comments