Skip to content

Commit

Permalink
Merge pull request #126 from yast/yardoc
Browse files Browse the repository at this point in the history
Enabled YARD docs for rubydoc.info
  • Loading branch information
kobliha committed Jun 18, 2015
2 parents 6ec2781 + 8750814 commit 8611640
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -33,3 +33,4 @@ tmp.*
/test-driver
/testsuite/site.bak
/test/*.trs
/.yardoc/
6 changes: 6 additions & 0 deletions .yardopts
@@ -0,0 +1,6 @@
--no-private
--markup markdown
--protected
src/**/*.rb
--readme README.md
--output-dir ./doc/autodocs
4 changes: 3 additions & 1 deletion test/test_helper.rb
@@ -1,4 +1,6 @@
ENV["Y2DIR"] = File.expand_path("../../src", __FILE__)
srcdir = File.expand_path("../../src", __FILE__)
y2dirs = ENV.fetch("Y2DIR", "").split(":")
ENV["Y2DIR"] = y2dirs.unshift(srcdir).join(":")

if ENV["COVERAGE"]
require "simplecov"
Expand Down

0 comments on commit 8611640

Please sign in to comment.