From ada3fceea839c2abc0e22eafbb683a4df42f5bae Mon Sep 17 00:00:00 2001 From: Andreas Deininger Date: Wed, 21 Feb 2024 20:18:38 +0100 Subject: [PATCH] docs: Fix hyphens and grammar in synopsis of command 'hugo server' --- commands/server.go | 6 +++--- docs/content/en/commands/hugo_server.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/server.go b/commands/server.go index d08bc5277..0ce655c51 100644 --- a/commands/server.go +++ b/commands/server.go @@ -512,9 +512,9 @@ func (c *serverCommand) Init(cd *simplecobra.Commandeer) error { cmd.Long = `Hugo provides its own webserver which builds and serves the site. While hugo server is high performance, it is a webserver with limited options. -'hugo server' will by default write and server files from disk, but you can -render to memory by using the '--renderToMemory' flag. This can be faster -in some cases, but it will consume more memory. +The ` + "`" + `hugo server` + "`" + ` command will by default write and serve files from disk, but +you can render to memory by using the ` + "`" + `--renderToMemory` + "`" + ` flag. This can be +faster in some cases, but it will consume more memory. By default hugo will also watch your files for any changes you make and automatically rebuild the site. It will then live reload any open browser pages diff --git a/docs/content/en/commands/hugo_server.md b/docs/content/en/commands/hugo_server.md index 84e655954..cfc9f4aaf 100644 --- a/docs/content/en/commands/hugo_server.md +++ b/docs/content/en/commands/hugo_server.md @@ -12,9 +12,9 @@ A high performance webserver Hugo provides its own webserver which builds and serves the site. While hugo server is high performance, it is a webserver with limited options. -'hugo server' will by default write and server files from disk, but you can -render to memory by using the '--renderToMemory' flag. This can be faster -in some cases, but it will consume more memory. +The `hugo server` command will by default write and serve files from disk, but +you can render to memory by using the `--renderToMemory` flag. This can be +faster in some cases, but it will consume more memory. By default hugo will also watch your files for any changes you make and automatically rebuild the site. It will then live reload any open browser pages