Skip to content

README quick start: the HOCON form, the file names the commands read by default, and the render line per target #31

Closed

Description

@tudor-pop

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.conf without 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 nginx and --target haproxy lines 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 as proxyfile.yaml (owner's call, 2026-11-12: not gateway.yaml) and the HOCON block as Proxyfile; both are names render and check read 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.conf minus its comment line, and proxyfile render of it writes the committed examples/minimal/envoy.yaml byte for byte (quoted in the PR), as the YAML block does.
  • proxyfile render --target nginx and --target haproxy on 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

  1. added
    documentation
    on Nov 12, 2026
  2. tudor-pop commented on Nov 12, 2026

    @tudor-pop
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions