Aras
Aras

Reputation: 5926

How do I build and preview latest documentation from Ember.js repository

I have cloned Ember repository

git clone git://github.com/emberjs/ember.js.git

Then navigate to ember.js directory and run bundle and then I try

rake docs:build

I get this error

/home/zooby/.rvm/gems/ruby-1.9.3-p194@global/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25: warning: redundant nested repeat operator
rake aborted!
Don't know how to build task 'docs:build'

And I get a similar error when I try

rake docs:preview

What am I missing? How can I build and view the latest version of the documentation available in Ember?

Upvotes: 6

Views: 907

Answers (2)

Eric Guo
Eric Guo

Reputation: 1775

Run npm install && npm run docs to build ember.js documentation.

After that you can running ruby -run -e httpd docs -p 3000 to visit ember api document at http://localhost:3000/

Upvotes: 1

bazzel
bazzel

Reputation: 833

  • You need to install YUIDoc first.
  • Then run yuidocs from the emberjs/docs folder.
  • Open emberjs/docs/build/index.html and you're ready to go.

Upvotes: 9

Related Questions