@@ -42,7 +42,7 @@ angular
4242 } ;
4343 var a = document . createElement ( 'a' ) ;
4444 return str . replace ( regex . see , function ( match , module ) {
45- a . href = '/gcloud-node/ #/docs/' + module ;
45+ a . href = '#/docs/' + module ;
4646 a . innerText = module ;
4747 return a . outerHTML ;
4848 } ) ;
@@ -103,33 +103,33 @@ angular
103103 $routeProvider
104104 . when ( '/docs' , {
105105 controller : 'DocsCtrl' ,
106- templateUrl : '/gcloud-node/ components/docs/docs.html' ,
106+ templateUrl : 'components/docs/docs.html' ,
107107 resolve : {
108108 methods : function ( $http , $sce ) {
109- return $http . get ( '/gcloud-node/ json/index.json' )
109+ return $http . get ( 'json/index.json' )
110110 . then ( filterDocJson ( $sce ) ) ;
111111 }
112112 }
113113 } )
114114 . when ( '/docs/:module' , {
115115 controller : 'DocsCtrl' ,
116- templateUrl : '/gcloud-node/ components/docs/docs.html' ,
116+ templateUrl : 'components/docs/docs.html' ,
117117 resolve : {
118118 methods : function ( $http , $route , $sce ) {
119119 var module = $route . current . params . module ;
120- return $http . get ( '/gcloud-node/ json/' + module + '/index.json' )
120+ return $http . get ( 'json/' + module + '/index.json' )
121121 . then ( filterDocJson ( $sce ) ) ;
122122 }
123123 }
124124 } )
125125 . when ( '/docs/:module/:class' , {
126126 controller : 'DocsCtrl' ,
127- templateUrl : '/gcloud-node/ components/docs/docs.html' ,
127+ templateUrl : 'components/docs/docs.html' ,
128128 resolve : {
129129 methods : function ( $q , $http , $route , $sce ) {
130130 var module = $route . current . params . module ;
131131 var cl = $route . current . params . class ;
132- return $http . get ( '/gcloud-node/ json/' + module + '/' + cl + '.json' )
132+ return $http . get ( 'json/' + module + '/' + cl + '.json' )
133133 . then ( filterDocJson ( $sce ) ) ;
134134 }
135135 }
@@ -139,7 +139,7 @@ angular
139139 'use strict' ;
140140
141141 $scope . isActiveUrl = function ( url ) {
142- return url . replace ( / ^ \/ g c l o u d - n o d e \/ # / , '' ) === $location . path ( ) ;
142+ return url . replace ( / ^ # / , '' ) === $location . path ( ) ;
143143 } ;
144144
145145 $scope . isActiveDoc = function ( doc ) {
@@ -151,11 +151,11 @@ angular
151151 $scope . pages = [
152152 {
153153 title : 'gcloud' ,
154- url : '/gcloud-node/ #/docs'
154+ url : '#/docs'
155155 } ,
156156 {
157157 title : 'Datastore' ,
158- url : '/gcloud-node/ #/docs/datastore' ,
158+ url : '#/docs/datastore' ,
159159 pages : [
160160 {
161161 title : 'Dataset' ,
@@ -169,7 +169,7 @@ angular
169169 } ,
170170 {
171171 title : 'Storage' ,
172- url : '/gcloud-node/ #/docs/storage'
172+ url : '#/docs/storage'
173173 }
174174 ] ;
175175 } ) ;
0 commit comments