diff options
| author | Peter Bacon Darwin | 2014-03-07 05:34:13 +0000 |
|---|---|---|
| committer | Peter Bacon Darwin | 2014-03-07 10:41:48 +0000 |
| commit | 02cc2b2014f790a482f8f35c7d3045538cb08955 (patch) | |
| tree | eb329be9051a596e59304adc216c5cfecff17abe /docs/config/processors/error-docs.js | |
| parent | 486f1b4e5117584824ed67ebea7572cf13f09d72 (diff) | |
| download | angular.js-02cc2b2014f790a482f8f35c7d3045538cb08955.tar.bz2 | |
chore(doc-gen): fix error-doc processor
The meta-data should be parsed from the name not the id.
Diffstat (limited to 'docs/config/processors/error-docs.js')
| -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 |
