Repository navigation
Description
Problem
The Quick start (#28) shows the minimal proxyfile in YAML only and one render line with no target. A reader who writes HOCON does not see that the same file exists in that form, and a reader who comes for nginx or HAProxy does not see that --target is where their proxy goes: the section reads as "YAML in, Envoy out".
What changes
- The HOCON form of the same file (
examples/minimal/gateway.confwithout its comment line) beside the YAML block, introduced as the same proxyfile in HOCON. - The render step shows the target per proxy:
proxyfile render gateway.yaml --target envoy -o envoy.yaml(the default, what 2.0 generates), and the--target nginxand--target haproxylines as the targets the format reserves, each with the answer 2.0 gives today (no generator for nginx in this version; see docs/portability.md) and the issue that adds the generator (2.0: the nginx generator #25, 2.0: the HAProxy generator #26), so a reader is not surprised by the refusal. - The file names follow the tool's rule (the name decides the form,
docs/hocon.md): the YAML block is saved asproxyfile.yaml(owner's call, 2026-11-12: notgateway.yaml) and the HOCON block asProxyfile; both are namesrenderandcheckread when given no file (internal/cli/cli.go,defaultNames), so the commands drop the file argument, and the section says so in one sentence. - The Keys list, the diagram and the other sections stay as the documentation tests expect.
Acceptance
- The HOCON block equals
examples/minimal/gateway.confminus its comment line, andproxyfile renderof it writes the committedexamples/minimal/envoy.yamlbyte for byte (quoted in the PR), as the YAML block does. proxyfile render --target nginxand--target haproxyon the block print exactly the refusal the README quotes (quoted in the PR).go test ./internal/format -run 'TestDocs|TestReadme|TestSchema'green.
Consumers
internal/format/docs_test.go: the README's Keys list and relative links; the change adds one relative link (examples/minimal/gateway.conf, which exists) and leaves the list alone. Checked:grep -rn README --include='*_test.go', 13 lines in 2 files.- Open tickets checked:
gh search issues 'quick start HOCON target' --repo kitecorp/proxyfile --state open, none.
Lane
LIGHT - prose and two code blocks in the README; no code or format change.
Filing note (2026-11-12)
Re-run at proxyfile master c699705 before filing: grep -rn README --include='*_test.go' . prints 12 lines in 2 files (internal/format/docs_test.go, internal/format/schema_test.go), not 13. The README already links examples/minimal/gateway.conf (Quick start, last paragraph), so the change adds no new link target; the existing one is what docs_test.go resolves.
Activity
docs(readme): the quick start shows the HOCON form, the file names th…
tudor-pop commentedon Nov 12, 2026
Merged as #33, master bac2f84: the Quick start shows the HOCON form, saves the file under the names the commands read by default, and shows the render line per target.