Skip to content

Commit 1f550d1

Browse files
authored
Merge pull request #237 from rspec/bump-yard
Use .yardopts from each repo when generating documentation
2 parents 49c4609 + be27d35 commit 1f550d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Rakefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,11 @@ task :update_docs, [:version, :branch, :website_path] do |t, args|
6464
args.with_defaults(:website_path => "../rspec.github.io")
6565
run_command "git checkout #{args[:branch]} && git pull --rebase"
6666
each_project :except => UnDocumentedProjects do |project|
67-
cmd = "bundle install && RUBYOPT='-I#{args[:website_path]}/lib' bundle exec yard --plugin rspec-docs-template --output-dir #{args[:website_path]}/source/documentation/#{args[:version]}/#{project}/"
67+
cmd = "bundle install && \
68+
RUBYOPT='-I#{args[:website_path]}/lib' bundle exec yard \
69+
--yardopts .yardopts \
70+
--plugin rspec-docs-template \
71+
--output-dir #{args[:website_path]}/source/documentation/#{args[:version]}/#{project}/"
6872
puts cmd
6973
Bundler.clean_system(cmd)
7074
in_place =

0 commit comments

Comments
 (0)