diff options
| author | Igor Minar | 2011-06-06 10:45:22 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-06-06 23:10:27 -0700 |
| commit | af710c3ac181267f1bb6ca9a9ce7174319c293f4 (patch) | |
| tree | 3a9cafa66dd3df2281177ea47d0718c6d7217def | |
| parent | e89ef35d058d5909e55c870d5686e8912ce820a9 (diff) | |
| download | angular.js-af710c3ac181267f1bb6ca9a9ce7174319c293f4.tar.bz2 | |
fix wrapping api links into code element
| -rw-r--r-- | docs/content/guide/dev_guide.services.managing_dependencies.ngdoc | 8 | ||||
| -rw-r--r-- | docs/content/guide/dev_guide.services.registering_services.ngdoc | 2 | ||||
| -rw-r--r-- | docs/src/ngdoc.js | 3 |
3 files changed, 6 insertions, 7 deletions
diff --git a/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc b/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc index c1abf789..5adbefae 100644 --- a/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc +++ b/docs/content/guide/dev_guide.services.managing_dependencies.ngdoc @@ -59,11 +59,11 @@ $route.onChange(function() { Things to notice in this example: -* The `batchLog` service depends on the built-in `{@link api/angular.service.$defer $defer}` and -`{@link api/angular.service.$log $log}` services, and allows messages to be logged into the +* The `batchLog` service depends on the built-in {@link api/angular.service.$defer $defer} and +{@link api/angular.service.$log $log} services, and allows messages to be logged into the `console.log` in batches. -* The `routeTemplateMonitor` service depends on the built-in `{@link api/angular.service.$route -$route}` service as well as our custom `batchLog` service. +* The `routeTemplateMonitor` service depends on the built-in {@link api/angular.service.$route +$route} service as well as our custom `batchLog` service. * The `routeTemplateMonitor` service is declared to be eager, so that it is started as soon as the application starts. * To underline the need for the eager instantiation of the `routeTemplateMonitor` service, nothing diff --git a/docs/content/guide/dev_guide.services.registering_services.ngdoc b/docs/content/guide/dev_guide.services.registering_services.ngdoc index 2a2117ca..ea182944 100644 --- a/docs/content/guide/dev_guide.services.registering_services.ngdoc +++ b/docs/content/guide/dev_guide.services.registering_services.ngdoc @@ -5,7 +5,7 @@ To register a service, register a factory function that creates the service with angular's -Injector. The Injector is exposed as `{@link api/angular.scope.$service scope.$service}`. The +Injector. The Injector is exposed as {@link api/angular.scope.$service scope.$service}. The following pseudo-code shows a simple service registration: diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index be4efb6b..bcabd3c0 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -82,7 +82,7 @@ Doc.prototype = { var self = this, IS_URL = /^(https?:\/\/|ftps?:\/\/|mailto:|\.|\/)/, - IS_ANGULAR = /^angular\./, + IS_ANGULAR = /^(api\/)?angular\./, parts = trim(text).split(/(<pre>[\s\S]*?<\/pre>|<doc:(\S*).*?>[\s\S]*?<\/doc:\2>)/); parts.forEach(function(text, i) { @@ -125,7 +125,6 @@ Doc.prototype = { text = text.replace(/{@link\s+([^\s}]+)\s*([^}]*?)\s*}/g, function(_all, url, title){ var isFullUrl = url.match(IS_URL), - // FIXME(vojta) angular link could be api/angular now with sections isAngular = url.match(IS_ANGULAR), absUrl = isFullUrl ? url : self.convertUrlToAbsolute(url); |
