Skip to content

Commit efd4294

Browse files
committed
Update API and CLI documentation index filenames
Refactor the index filenames in the API and CLI documentation generation scripts from `README.md` to `index.md` for consistency with modern documentation standards.
1 parent 2588b8a commit efd4294

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

scripts/apidocgen/postprocess/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717

1818
const (
1919
apiSubdir = "reference/api"
20-
apiIndexFile = "README.md"
20+
apiIndexFile = "index.md"
2121
apiIndexContent = `Get started with the Coder API:
2222
2323
## Quickstart
@@ -38,7 +38,7 @@ curl https://coder.example.com/api/v2/workspaces?q=owner:me \
3838
3939
## Use cases
4040
41-
See some common [use cases](../../reference/README.md#use-cases) for the REST API.
41+
See some common [use cases](../../reference/index.md#use-cases) for the REST API.
4242
4343
## Sections
4444

scripts/clidocgen/gen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func fullName(cmd *serpent.Command) string {
8787
func fmtDocFilename(cmd *serpent.Command) string {
8888
if cmd.FullName() == "coder" {
8989
// Special case for index.
90-
return "./README.md"
90+
return "./index.md"
9191
}
9292
name := strings.ReplaceAll(fullName(cmd), " ", "_")
9393
return fmt.Sprintf("%s.md", name)

0 commit comments

Comments
 (0)