ファイルシステムから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'
}
}
私は何を間違っていますか?
前もって感謝します