aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Bacon Darwin2014-03-07 05:34:13 +0000
committerBrian Ford2014-03-07 15:08:50 -0800
commit1537f8026726c9bf818e27cb361c47446857a2d8 (patch)
tree36180829c14bb3ff0dba1dc6a445e14b3b0b9cad
parent021d3aa21a4b7f2ea69a4a9bff7a7ff7986d343c (diff)
downloadangular.js-1537f8026726c9bf818e27cb361c47446857a2d8.tar.bz2
chore(doc-gen): fix error-doc processor
The meta-data should be parsed from the name not the id.
-rw-r--r--docs/config/processors/error-docs.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/config/processors/error-docs.js b/docs/config/processors/error-docs.js
index 3fed96c5..2543190d 100644
--- a/docs/config/processors/error-docs.js
+++ b/docs/config/processors/error-docs.js
@@ -22,6 +22,12 @@ module.exports = {
_.forEach(docs, function(doc) {
if ( doc.docType === 'error' ) {
+ // Parse out the error info from the id
+ parts = doc.name.split(':');
+ doc.namespace = parts[0];
+ doc.name = parts[1];
+
+
var namespaceDoc = errorNamespaces[doc.namespace];
if ( !namespaceDoc ) {
// First time we came across this namespace, so create a new one