diff --git a/genwebsite.sh b/genwebsite.sh index 5b37519..3fe49b4 100755 --- a/genwebsite.sh +++ b/genwebsite.sh @@ -80,11 +80,11 @@ const elem = (name, ...s) => { e.append(...s) return e } -const link = (url) => { +const link = (url, anchor) => { const e = document.createElement('a') e.setAttribute('href', url) e.setAttribute('rel', 'noopener') - e.appendChild(document.createTextNode(url)) + e.append(anchor || url) return e } let h = location.hash.substring(1) @@ -106,6 +106,8 @@ const init = () => { 'https://beta.gobuilds.org/github.com/mjl-/mox@'+h ), elem('p', 'Because mox is written in Go, builds are reproducible, also when cross-compiling. Gobuilds.org is a service that builds Go applications on-demand with the latest Go toolchain/runtime.'), + elem('h1', 'Localserve'), + elem('p', 'Changes to mox can often be most easily tested locally with ', link('../features/#hdr-localserve', '"mox localserve"'), ', without having to update your running mail server.'), ) } window.addEventListener('load', init) diff --git a/website/features/index.md b/website/features/index.md index 3a4ddb4..53e01b9 100644 --- a/website/features/index.md +++ b/website/features/index.md @@ -436,7 +436,7 @@ in the [quickstart command](../commands/#hdr-mox-quickstart). ## Localserve -The [mox localserve](../commands/#hdr-mox-localserve) starts a local mox +The [mox localserve](../commands/#hdr-mox-localserve) command starts a local mox instance with a lot of its functionality: SMTP/submission, IMAP4, Webmail, account and admin web interface and the webserver. Localserve listens on the standard ports + 1000, so no special privileges are needed.