File tree 2 files changed +6
-6
lines changed
scripts/apidocgen/postprocess 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 327
327
"children" : [
328
328
{
329
329
"title" : " Authentication" ,
330
- "path" : " ./docs /authentication.md"
330
+ "path" : " ./api /authentication.md"
331
331
},
332
332
{
333
333
"title" : " Templates" ,
334
- "path" : " ./docs /templates.md"
334
+ "path" : " ./api /templates.md"
335
335
},
336
336
{
337
337
"title" : " Workspaces" ,
338
- "path" : " ./docs /workspaces.md"
338
+ "path" : " ./api /workspaces.md"
339
339
},
340
340
{
341
341
"title" : " Schemas" ,
342
- "path" : " ./docs /schemas.md"
342
+ "path" : " ./api /schemas.md"
343
343
}
344
344
]
345
345
}
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ func writeDocs(sections [][]byte) error {
128
128
}
129
129
mdFiles = append (mdFiles , mdFile {
130
130
title : sectionName ,
131
- path : "./docs/ " + mdFilename ,
131
+ path : "./" + path . Join ( apiSubdir , mdFilename ) ,
132
132
})
133
133
}
134
134
@@ -192,7 +192,7 @@ func writeDocs(sections [][]byte) error {
192
192
}
193
193
194
194
func extractSectionName (section []byte ) (string , error ) {
195
- scanner := bufio .NewScanner (bytes .NewBuffer (section ))
195
+ scanner := bufio .NewScanner (bytes .NewReader (section ))
196
196
if ! scanner .Scan () {
197
197
return "" , xerrors .Errorf ("section header was expected" )
198
198
}
You can’t perform that action at this time.
0 commit comments