diff options
| author | Peter Bacon Darwin | 2014-03-07 05:34:13 +0000 | 
|---|---|---|
| committer | Brian Ford | 2014-03-07 15:08:50 -0800 | 
| commit | 1537f8026726c9bf818e27cb361c47446857a2d8 (patch) | |
| tree | 36180829c14bb3ff0dba1dc6a445e14b3b0b9cad | |
| parent | 021d3aa21a4b7f2ea69a4a9bff7a7ff7986d343c (diff) | |
| download | angular.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.js | 6 | 
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 | 
