Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opal/opal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c7b8f7b96333
Choose a base ref
...
head repository: opal/opal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: eee2076ed8d9
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Aug 11, 2014

  1. Copy the full SHA
    48aa390 View commit details

Commits on Aug 12, 2014

  1. Add Yard Doc task

    elia committed Aug 12, 2014

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    495a45a View commit details
  2. Just refer to the website for documentation

    [skip ci]
    elia committed Aug 12, 2014
    Copy the full SHA
    eee2076 View commit details
Showing with 25 additions and 1 deletion.
  1. +4 −0 .travis.yml
  2. +1 −1 README.md
  3. +19 −0 Rakefile
  4. +1 −0 opal.gemspec
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -39,3 +39,7 @@ script:

notifications:
irc: "irc.freenode.org#opal"
webhooks:
urls:
- https://webhooks.gitter.im/e/2ea12333adebda0c2289

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -12,7 +12,7 @@ is a Freenode IRC channel at [#opal](http://webchat.freenode.net/?channels=opal)
ask questions on [stackoverflow (tag #opalrb)](http://stackoverflow.com/questions/ask?tags=opalrb).

[![Stack Overflow](http://img.shields.io/badge/stackoverflow-%23opalrb-orange.svg)](http://stackoverflow.com/questions/ask?tags=opalrb)
[![corelib & stdlib docs](http://img.shields.io/badge/doc-corelib-blue.svg)](http://opal.github.io/opal/doc/opal/frames.html#!file.README.html)
[![API doc](http://img.shields.io/badge/doc-api-blue.svg)](http://opalrb.org/docs/api)
[![Gitter chat](http://img.shields.io/badge/gitter-opal%2Fopal-009966.svg)](https://gitter.im/opal/opal)


19 changes: 19 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -75,3 +75,22 @@ desc 'Remove any generated file.'
task :clobber do
rm_r './build'
end

namespace :doc do
generate_docs_for = ->(glob, name){
release_name = `git rev-parse --abbrev-ref HEAD`.chomp
command = "yard doc #{glob} -o gh-pages/doc/#{release_name}/#{name}"
puts command
system command
}

task :corelib do
generate_docs_for['opal/**/*.rb', 'corelib']
end

task :stdlib do
generate_docs_for['stdlib/**/*.rb', 'stdlib']
end
end

task :doc => ['doc:corelib', 'doc:stdlib']
1 change: 1 addition & 0 deletions opal.gemspec
Original file line number Diff line number Diff line change
@@ -27,4 +27,5 @@ Gem::Specification.new do |s|
s.add_development_dependency 'rspec', '~> 2.99'
s.add_development_dependency 'octokit', '~> 2.4.0'
s.add_development_dependency 'bundler', '~> 1.5'
s.add_development_dependency 'yard'
end