From 25b1a2e82f56ce458113c377f8b8dd3e34fce46f Mon Sep 17 00:00:00 2001 From: Florian Zenker <50045832+znkr@users.noreply.github.com> Date: Wed, 17 May 2023 22:26:06 +0200 Subject: [PATCH] extending: How to add module to website (#323) --- src/docs/markdown/extending-caddy.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/docs/markdown/extending-caddy.md b/src/docs/markdown/extending-caddy.md index b983930..3eb3614 100644 --- a/src/docs/markdown/extending-caddy.md +++ b/src/docs/markdown/extending-caddy.md @@ -294,6 +294,10 @@ Notice how the loaded module is type-asserted: `g.Gadget = val.(Gadgeter)` - thi If your host module defines a new namespace, be sure to document both that namespace and its Go type(s) for developers [like we have done here](/docs/extending-caddy/namespaces). +## Module Documentation + +Register the module to make a new Caddy module show up in the module documentation and be available in http://caddyserver.com/download. The registration is available at http://caddyserver.com/account. Create a new account if you don't have one already and click on "Register package". + ## Complete Example Let's suppose we want to write an HTTP handler module. This will be a contrived middleware for demonstration purposes which prints the visitor's IP address to a stream on every HTTP request.