ember-cli-yuidoc icon indicating copy to clipboard operation
ember-cli-yuidoc copied to clipboard

Autoreload docs page

Open sivakumar-kailasam opened this issue 10 years ago • 8 comments
trafficstars

When running ember serve --docs I thought the docs page would have an auto-reload which it didn't. Would be a timesaver to have it.

sivakumar-kailasam avatar Nov 26 '14 17:11 sivakumar-kailasam

It should have auto-reload. Depending in the size of the project it can be a bit slow, but it is indeed one of the thinks that make it useful.

Can you check it again? I would love to fix it if there is any scenario i've not covered.

cibernox avatar Nov 26 '14 18:11 cibernox

I see the generation in output of the compiler during auto-reload of the app. But the http://0.0.0.0:4200/docs/ page doesn't seem to reload.

sivakumar-kailasam avatar Nov 27 '14 11:11 sivakumar-kailasam

Also the project is relatively small with just about 10 classes.

sivakumar-kailasam avatar Nov 27 '14 11:11 sivakumar-kailasam

Can you clone this and check if it works for you? https://github.com/cibernox/ember-cli-accounting

If it does, there must be something different in your project. It's an app or an addon? What do you have in your yuidoc.json manifest?

cibernox avatar Nov 27 '14 11:11 cibernox

didn't work there as well. Mine is an app. here's my yuidocs.json

   {
     "name": "something",
     "version": "0.0.0",
     "options": {
       "paths": [
         "app"
       ],
       "exclude": "vendor",
       "outdir": "docs"
     }
  }

sivakumar-kailasam avatar Nov 27 '14 12:11 sivakumar-kailasam

Have you figured out what the problem is? I've used this in a few projects, including in ember.js itself, and I've never had a problem.

cibernox avatar Jan 23 '15 12:01 cibernox

Although the app page reloads the docs page doesn't. I don't see livereload snippet on the docs page, so how would it autoreload?

sivakumar-kailasam avatar Jan 25 '15 10:01 sivakumar-kailasam

Ok, I think we were talking about different things the entire time. My bad probably.

If you change a file and you reload your browser, you should see the changes. There is change detection.

But I haven't implemented anything like live-reload that refreshes the browser for you. You have a manual refresh.

It is indeed a good idea.

cibernox avatar Jan 25 '15 10:01 cibernox