Skip to content

docs: add runnable getting-started examples to README#17

Closed
ryans-posthog wants to merge 1 commit intomasterfrom
docs/readme-quickstart-examples
Closed

docs: add runnable getting-started examples to README#17
ryans-posthog wants to merge 1 commit intomasterfrom
docs/readme-quickstart-examples

Conversation

@ryans-posthog
Copy link
Copy Markdown
Owner

Summary

  • Expand the Quick start section of README.md with an ### Examples subsection containing copy-pasteable commands.
  • Covers the five most common entry points: caddy file-server, caddy reverse-proxy, running from a Caddyfile (caddy run / caddy start), caddy validate + caddy reload, and inspecting the admin API on localhost:2019.
  • Existing links to the external tutorials on caddyserver.com are preserved — this only adds a local quick reference below them.

No other README sections are touched, and no new files are added.

Test plan

  • Render README.md on GitHub (or in a local markdown previewer) and confirm the new ### Examples subsection sits under ## Quick start with all five fenced blocks intact.
  • Build the binary (cd cmd/caddy && go build) and smoke-test each snippet — each should run without "unknown flag" / "unknown command" errors.
  • Confirm curl http://localhost:2019/config/ returns the live config once Caddy is running.

The Quick start section previously only linked out to external tutorials.
Add a short Examples subsection with copy-pasteable commands for the most
common entry points: file-server, reverse-proxy, Caddyfile run,
validate/reload, and admin API inspection.

Generated-By: PostHog Code
Task-Id: 182a3d0a-ffdd-4706-802f-9102ffb8fdd0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant