aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/tests/files.py
diff options
context:
space:
mode:
authorTom Christie2014-11-28 15:36:04 +0000
committerTom Christie2014-11-28 15:36:04 +0000
commit3a5b3772fefc3c2f2c0899947cbc07bfe6e6b5d2 (patch)
tree62da2ff99cee21b83c3dd735b2d75fe08a4ef5e0 /rest_framework/tests/files.py
parent6fbd23ab346e1a5b5401ba83e2ad2cd3474d2410 (diff)
downloaddjango-rest-framework-3a5b3772fefc3c2f2c0899947cbc07bfe6e6b5d2.tar.bz2
Use ImproperlyConfigured when model meta lookup fails
Diffstat (limited to 'rest_framework/tests/files.py')
0 files changed, 0 insertions, 0 deletions
an>log('Generating Angular Reference Documentation...'); reader.collect(work.waitMany(function(text, file, line){ var doc = new ngdoc.Doc(text, file, line); docs.push(doc); doc.parse(); })); }); var writes = callback.chain(function(){ ngdoc.merge(docs); docs.forEach(function(doc){ writer.output(doc.section + '/' + doc.id + '.html', doc.html(), writes.waitFor()); }); var metadata = ngdoc.metadata(docs); writer.output('docs-keywords.js', ['NG_PAGES=', JSON.stringify(metadata).replace(/{/g, '\n{'), ';'], writes.waitFor()); writer.copyDir('img', writes.waitFor()); writer.copyDir('examples', writes.waitFor()); writer.copyTpl('index.html', writes.waitFor()); writer.merge(['docs.js', 'doc_widgets.js'], 'docs-combined.js', writes.waitFor()); writer.merge(['docs.css', 'doc_widgets.css'], 'docs-combined.css', writes.waitFor()); writer.copyTpl('docs-scenario.html', writes.waitFor()); writer.output('docs-scenario.js', ngdoc.scenarios(docs), writes.waitFor()); writer.output('sitemap.xml', new SiteMap(docs).render(), writes.waitFor()); writer.output('robots.txt', 'Sitemap: http://docs.angularjs.org/sitemap.xml\n', writes.waitFor()); writer.merge(['syntaxhighlighter/shCore.js', 'syntaxhighlighter/shBrushJScript.js', 'syntaxhighlighter/shBrushXml.js'], 'syntaxhighlighter/syntaxhighlighter-combined.js', writes.waitFor()); writer.merge(['syntaxhighlighter/shCore.css', 'syntaxhighlighter/shThemeDefault.css'], 'syntaxhighlighter/syntaxhighlighter-combined.css', writes.waitFor()); writer.copyTpl('jquery.min.js', writes.waitFor()); }); writes.onDone(function(){ console.log('DONE. Generated ' + docs.length + ' pages in ' + (now()-start) + 'ms.' ); }); work.onDone(writes); writer.makeDir('build/docs/syntaxhighlighter', work); /////////////////////////////////// function now(){ return new Date().getTime(); }