Skip to content

Commit 2ed70c7

Browse files
authored
chore: Fix make gen for docs/manifest.json (#5792)
1 parent 36e97e3 commit 2ed70c7

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Makefile

+2-3
Original file line numberDiff line numberDiff line change
@@ -490,10 +490,9 @@ docs/admin/prometheus.md: scripts/metricsdocgen/main.go scripts/metricsdocgen/me
490490
cd site
491491
yarn run format:write:only ../docs/admin/prometheus.md
492492

493-
coderd/apidoc/swagger.json: $(shell find ./scripts/apidocgen -not \( -path './scripts/apidocgen/node_modules' -prune \) -type f) $(wildcard coderd/*.go) $(wildcard enterprise/coderd/*.go) $(wildcard codersdk/*.go) .swaggo
493+
coderd/apidoc/swagger.json: $(shell find ./scripts/apidocgen $(FIND_EXCLUSIONS) -type f) $(wildcard coderd/*.go) $(wildcard enterprise/coderd/*.go) $(wildcard codersdk/*.go) .swaggo docs/manifest.json
494494
./scripts/apidocgen/generate.sh
495-
cd site
496-
yarn run format:write:only ../docs/api ../docs/manifest.json ../coderd/apidoc/swagger.json
495+
yarn run --cwd=site format:write:only ../docs/api ../docs/manifest.json ../coderd/apidoc/swagger.json
497496

498497
update-golden-files: cli/testdata/.gen-golden
499498
.PHONY: update-golden-files

docs/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@
251251
{
252252
"title": "Scaling Coder",
253253
"description": "Reference architecture and load testing tools",
254-
"icon_path": "./images/icons/scale.svg",
255-
"path": "./admin/scale.md"
254+
"path": "./admin/scale.md",
255+
"icon_path": "./images/icons/scale.svg"
256256
},
257257
{
258258
"title": "Audit Logs",

0 commit comments

Comments
 (0)