File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -134,5 +134,13 @@ permalink: /doc/en/lb4/apidocs.index.html
134
134
'utf-8' ,
135
135
) ;
136
136
expect ( constructorDoc ) . to . not . match ( / \. \( c o n s t r u c t o r \) \. m d / ) ;
137
+
138
+ const pkgDoc = await fs . readFile (
139
+ path . join ( SITE_APIDOCS_ROOT , 'pkg1.md' ) ,
140
+ 'utf-8' ,
141
+ ) ;
142
+ expect ( pkgDoc ) . to . match (
143
+ / \[ p k g 1 \] \( h t t p s \: \/ \/ g i t h u b \. c o m \/ s t r o n g l o o p \/ l o o p b a c k \- n e x t \/ t r e e \/ m a s t e r \/ p a c k a g e s \/ p k g 1 \) / ,
144
+ ) ;
137
145
} ) ;
138
146
} ) ;
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ async function addJekyllMetadata(
145
145
const model = await fs . readJson ( modelFile , { encoding : 'utf-8' } ) ;
146
146
debug ( 'Package %s' , name , model ) ;
147
147
if ( model . kind === 'Package' && ! model . docComment ) {
148
- const pkgDoc = `[${ model . canonicalReference } ](https://github.com/strongloop/loopback-next/tree/master/packages/${ name } )` ;
148
+ const pkgDoc = `[${ model . name } ](https://github.com/strongloop/loopback-next/tree/master/packages/${ name } )` ;
149
149
doc = doc . replace (
150
150
`## ${ name } package` ,
151
151
`## ${ name } package\n\n${ pkgDoc } ` ,
You can’t perform that action at this time.
0 commit comments