Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What path for grunt.file.expand? #130

Open
nateinindy opened this issue Nov 13, 2014 · 6 comments
Open

What path for grunt.file.expand? #130

nateinindy opened this issue Nov 13, 2014 · 6 comments

Comments

@nateinindy
Copy link

So my application path setup looks like this:
/app/js/a-controller.js
/app/js/controllers/b-controller.js

I've go this config:
baseUrl: "http://localhost:8000/app/docs/",
docular_webapp_target: 'app/docs',

I'm struggling with the groups files configuration field, each of what i have listed below produces nothing. Any help with what this should be?

files: grunt.file.expand(['../app/js//*.js'])
files: grunt.file.expand(['../js/
/.js'])
files: grunt.file.expand(['../js/
.js'])
files: grunt.file.expand(['app/js/**/*.js'])

@nateinindy
Copy link
Author

I get 404 errors when it loads on several of the resource files too: github.css, ngplugin.css,doc_api.css, and angular-route.min.js.map. Is the really beta ready?

@stephenliberty
Copy link
Contributor

For what it's worth, we've been using this to host our angular documentation for with no problems. But I realize that's just our setup and may not be applicable to you.

So, on that note, the 'files' bit... could you give a bit of an example of what your folder structure looks like? For instance,

  • /app
  • /app/index.js
  • /app/index.html
  • /Gruntfile.js

Then I can attempt to repro that and help you nail down a configuration that works.

@nateinindy
Copy link
Author

Great, thanks. My application is setup like so:
/package.json
/gruntfile.js
/bower.json
/app
/app/index.html
/app/partials/partial.html
/app/js/app.js
/app/js/controllers/controllers.js

Hope that helps.

@stephenliberty
Copy link
Contributor

My apologies on the delay - had some pre-release bugs that needed ironing out. I'm pretty sure that your 'files' should be grunt.file.expand(['app/js/*/.js']). Can you paste the output here? Or if it has any private information, I can give you an email to send it to.

@nateinindy
Copy link
Author

Well, i don't know why it didn't previously work, but when i went back and ran it.......it worked!!! Thanks for taking time to help me through this. Pretty cool stuff!

@nateinindy
Copy link
Author

Hmmm. I still get 404 errors for a few resource files(github.css, ngplugin.css,doc_api.css, and angular-route.min.js.map). It would seem that the document descriptions should render in the doc, but they are not. I used the below code from this(#54) thread, and it did not render the description?

/**
 * @ngdoc controller
 * @name ng.controller:booyah
 * @requires $window
 * @requires $location
 * @requires $rootScope
 * @param {string} carl is awesome
 * @property {string} dave is cool
 * @description
 * When called, it checks current value of `$location.hash()` and scroll to related element,
 * according to rules specified in
 * {@link http://dev.w3.org/html5/spec/Overview.html#the-indicated-part-of-the-document Html5 spec}.
 *
 * It also watches the `$location.hash()` and scroll whenever it changes to match any anchor.
 * This can be disabled by calling `$anchorScrollProvider.disableAutoScrolling()`.
 */

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants