Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

ember.js

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?

like image 969
Aras Avatar asked Sep 30 '12 08:09

Aras


People also ask

Do people still use Ember js?

Yes, less people use it -- that's just the truth. Every year, during the "State of the Web" survey or the NPM survey, Ember will come in behind React, Vue and Angular. But that's always been the state of Ember and it will probably be the state of it indefinitely.

How does Ember js work?

Ember uses templates to organize the layout of HTML in an application. Ember templates use the syntax of Handlebars templates. Anything that is valid Handlebars syntax is valid Ember syntax. Here, {{name}} is a property provided by the template's context.

Is Ember js frontend or backend?

Ember. js is one component of a complete front end stack built and supported by the Ember core team.

What is Ember js good for?

Ember. js is a productive, battle-tested JavaScript framework for building modern web applications. It includes everything you need to build rich UIs that work on any device.


2 Answers

  • 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.
like image 192
bazzel Avatar answered Oct 17 '22 14:10

bazzel


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/

like image 22
Eric Guo Avatar answered Oct 17 '22 15:10

Eric Guo