Skip to content

Commit fc159ce

Browse files
committed
rebase on main
1 parent 17fcea1 commit fc159ce

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Makefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ gen: \
489489
codersdk/rbacresources_gen.go \
490490
site/src/api/rbacresources_gen.ts \
491491
docs/admin/prometheus.md \
492-
docs/cli.md \
492+
docs/reference/cli/README.md \
493493
docs/admin/audit-logs.md \
494494
coderd/apidoc/swagger.json \
495495
.prettierignore.include \
@@ -521,7 +521,7 @@ gen/mark-fresh:
521521
codersdk/rbacresources_gen.go \
522522
site/src/api/rbacresources_gen.ts \
523523
docs/admin/prometheus.md \
524-
docs/cli.md \
524+
docs/reference/cli/README.md \
525525
docs/admin/audit-logs.md \
526526
coderd/apidoc/swagger.json \
527527
.prettierignore.include \
@@ -633,10 +633,10 @@ docs/admin/prometheus.md: scripts/metricsdocgen/main.go scripts/metricsdocgen/me
633633
./scripts/pnpm_install.sh
634634
pnpm exec prettier --write ./docs/admin/prometheus.md
635635

636-
docs/cli.md: scripts/clidocgen/main.go examples/examples.gen.json $(GO_SRC_FILES)
636+
docs/reference/cli/README.md: scripts/clidocgen/main.go examples/examples.gen.json $(GO_SRC_FILES)
637637
CI=true BASE_PATH="." go run ./scripts/clidocgen
638638
./scripts/pnpm_install.sh
639-
pnpm exec prettier --write ./docs/cli.md ./docs/cli/*.md ./docs/manifest.json
639+
pnpm exec prettier --write ./docs/reference/cli/README.md ./docs/cli/reference/cli/*.md ./docs/manifest.json
640640

641641
docs/admin/audit-logs.md: coderd/database/querier.go scripts/auditdocgen/main.go enterprise/audit/table.go coderd/rbac/object_gen.go
642642
go run scripts/auditdocgen/main.go

docs/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
{
351351
"title": "REST API",
352352
"description": "Learn how to use Coderd API",
353-
"path": "./reference/api/index.md",
353+
"path": "./reference/api/README.md",
354354
"icon_path": "./images/icons/api.svg",
355355
"children": [
356356
{
File renamed without changes.

scripts/apidocgen/postprocess/main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ import (
1616
)
1717

1818
const (
19-
apiSubdir = "api"
20-
apiIndexFile = "index.md"
19+
apiSubdir = "reference/api"
20+
apiIndexFile = "README.md"
2121
apiIndexContent = `Get started with the Coder API:
2222
2323
## Quickstart

scripts/clidocgen/gen.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func fullName(cmd *serpent.Command) string {
7777
func fmtDocFilename(cmd *serpent.Command) string {
7878
if cmd.FullName() == "coder" {
7979
// Special case for index.
80-
return "../cli.md"
80+
return "./README.md"
8181
}
8282
name := strings.ReplaceAll(fullName(cmd), " ", "_")
8383
return fmt.Sprintf("%s.md", name)

0 commit comments

Comments
 (0)