Skip to content

Commit 791f593

Browse files
committed
Remove empty line in html + remove useless plugin
We do not want Google Analytics because we don't use it Also rdoc/erb generate a lot of extra empty line in every html. We clean all the html files before.
1 parent a650591 commit 791f593

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Rakefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def run_command(command, opts={})
2626
FileUtils.cd(path) do
2727
puts "#{'='*3} #{dir} #{'='*(40 - dir.length)}"
2828
begin
29-
Bundler.clean_system(command)
29+
Bundler.unbundled_system(command)
3030
rescue Exception => e
3131
puts e.backtrace
3232
end
@@ -68,7 +68,6 @@ task :update_docs, [:version, :branch, :website_path] do |t, args|
6868
cmd = "bundle install && \
6969
RUBYOPT='-I#{args[:website_path]}/lib' bundle exec yard \
7070
--yardopts .yardopts \
71-
--plugin rspec-docs-template \
7271
--output-dir #{args[:website_path]}/source/documentation/#{args[:version]}/#{project}/"
7372
puts cmd
7473
Bundler.unbundled_system(cmd)
@@ -81,6 +80,7 @@ task :update_docs, [:version, :branch, :website_path] do |t, args|
8180

8281
Bundler.unbundled_system %Q{pushd #{args[:website_path]}; ag -l src=\\"\\\(?:..\/\\\)*js | xargs -I{} sed #{in_place} 's/src="\\\(..\\\/\\\)*js/src="\\\/documentation\\\/#{args[:version]}\\\/#{project}\\\/js/' {}; popd}
8382
Bundler.unbundled_system %Q{pushd #{args[:website_path]}; ag -l href=\\"\\\(?:..\/\\\)*css | xargs -I{} sed #{in_place} 's/href="\\\(..\\\/\\\)*css/href="\\\/documentation\\\/#{args[:version]}\\\/#{project}\\\/css/' {}; popd}
83+
Bundler.unbundled_system %Q{pushd #{args[:website_path]}; ag --html -l | xargs -I{} sed #{in_place} /^[[:space:]]*$/d {}; popd}
8484
end
8585
end
8686

0 commit comments

Comments
 (0)