mirror of
https://github.com/ETLCPP/etl.git
synced 2026-06-15 08:26:04 +08:00
Replace space in filename with hyphen.
Added more information to hugo-commands.md
This commit is contained in:
parent
d5f4ac5177
commit
85067c6110
@ -1,15 +0,0 @@
|
||||
---
|
||||
title: "Hugo commands"
|
||||
---
|
||||
|
||||
## Generate hugo for localhost
|
||||
```bash
|
||||
hugo --cleanDestinationDir
|
||||
hugo server --disableFastRender
|
||||
```
|
||||
|
||||
## Generate hugo for remote host
|
||||
```bash
|
||||
hugo --cleanDestinationDir
|
||||
hugo --baseURL "https://www.your-web-site.com"
|
||||
```
|
||||
33
docs/getting-started/view-the-docs-locally/hugo-commands.md
Normal file
33
docs/getting-started/view-the-docs-locally/hugo-commands.md
Normal file
@ -0,0 +1,33 @@
|
||||
---
|
||||
title: "Hugo commands"
|
||||
---
|
||||
|
||||
Ensure your current working directory is `hugo/` before running these commands.
|
||||
|
||||
## Generate hugo for localhost
|
||||
If you have previously generated for a different host then run `hugo --cleanDestinationDir`
|
||||
|
||||
Run either of these two commands.
|
||||
|
||||
---
|
||||
|
||||
```bash
|
||||
hugo server
|
||||
```
|
||||
This is quicker, as Hugo will only regenerate files it detects have changed.
|
||||
If you have moved files then the left-hand menu may not always regenerate correctly. If this occurs then run the following command.
|
||||
|
||||
---
|
||||
|
||||
```bash
|
||||
hugo server --disableFastRender
|
||||
```
|
||||
Hugo will regenerate all of the output html files.
|
||||
This takes a few seconds to run, but ensures all output files are updated.
|
||||
|
||||
## Generate hugo for remote host
|
||||
If you have previously generated for a different host then run `hugo --cleanDestinationDir`
|
||||
|
||||
```bash
|
||||
hugo --baseURL "https://www.your-web-site.com"
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user