Skip to content

Commit 80dbf3d

Browse files
committed
Fix: api dir
1 parent 59d9334 commit 80dbf3d

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/manifest.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,19 +327,19 @@
327327
"children": [
328328
{
329329
"title": "Authentication",
330-
"path": "./docs/authentication.md"
330+
"path": "./api/authentication.md"
331331
},
332332
{
333333
"title": "Templates",
334-
"path": "./docs/templates.md"
334+
"path": "./api/templates.md"
335335
},
336336
{
337337
"title": "Workspaces",
338-
"path": "./docs/workspaces.md"
338+
"path": "./api/workspaces.md"
339339
},
340340
{
341341
"title": "Schemas",
342-
"path": "./docs/schemas.md"
342+
"path": "./api/schemas.md"
343343
}
344344
]
345345
}

scripts/apidocgen/postprocess/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ func writeDocs(sections [][]byte) error {
128128
}
129129
mdFiles = append(mdFiles, mdFile{
130130
title: sectionName,
131-
path: "./docs/" + mdFilename,
131+
path: "./" + path.Join(apiSubdir, mdFilename),
132132
})
133133
}
134134

@@ -192,7 +192,7 @@ func writeDocs(sections [][]byte) error {
192192
}
193193

194194
func extractSectionName(section []byte) (string, error) {
195-
scanner := bufio.NewScanner(bytes.NewBuffer(section))
195+
scanner := bufio.NewScanner(bytes.NewReader(section))
196196
if !scanner.Scan() {
197197
return "", xerrors.Errorf("section header was expected")
198198
}

0 commit comments

Comments
 (0)