虽然我可以从文件系统中grunt-ngdocs
自动生成index.html
,但每次我尝试查看我得到的文档中的描述时:
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
即使docs/partials
和docs/partials/api
文件夹都是空的。
这是我的grunt-ngdocs
配置
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'
}
}
我究竟做错了什么?
先感谢您