File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,11 @@ def generate_rails_rdoc
47
47
cd 'rails' do
48
48
Bundler . with_unbundled_env do
49
49
# TODO: use `BUNDLE_ONLY`(require bundler 2.3.19+).
50
- ENV [ 'BUNDLE_WITHOUT' ] = 'db: job: storage: cable: ujs: test'
50
+ ENV [ 'BUNDLE_WITHOUT' ] = %w[ db job storage cable ujs test rubocop view ] . join ( ':' )
51
51
52
52
# replace sdoc gem
53
53
gemfile = File . read ( 'Gemfile' )
54
- gemfile . gsub! ( /"sdoc.*$/ , '"sdoc", github: "toshimaru/sdoc", branch: "railsdoc"' )
54
+ gemfile . gsub! ( /"sdoc" .*$/ , '"sdoc", github: "toshimaru/sdoc", branch: "railsdoc"' )
55
55
File . write ( 'Gemfile' , gemfile )
56
56
57
57
sh 'bundle install && bundle update sdoc'
@@ -68,10 +68,9 @@ def generate_src(target_version: nil)
68
68
69
69
cd target_dir do
70
70
cp INDEX_HTML , 'index.html'
71
-
72
71
return if target_version . nil?
73
72
74
- # Replace absolute path in navigation.html
73
+ # Prepend version number to the absolute path in navigation.html
75
74
content = File . read ( 'navigation.html' )
76
75
content . gsub! ( '<a href="/' , "<a href=\" /#{ target_version } /" )
77
76
File . write ( 'navigation.html' , content )
You can’t perform that action at this time.
0 commit comments