although I'm able to serve from filesystem the grunt-ngdocs
automatically generated index.html
, everytime I try to look to a description in the documentation I'm getting:
XMLHttpRequest cannot load file:///C:/<file-path> Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource
even if both the docs/partials
and docs/partials/api
folders are empty.
This is my grunt-ngdocs
configuration
ngdocs: {
options: {
dest: 'docs',
html5Mode: false,
inlinePartials: true,
scripts: [
'bower_components/angular/angular.js',
'bower_components/angular-animate/angular-animate.js'
]
},
api: {
src: ['app/scripts/**/*.js'],
title: 'Docs'
}
}
What am I doing wrong?
Thank you in advance