Skip to content

Commit e9bc171

Browse files
authored
Update Netlify instructions
Fixes #1139
1 parent 324942a commit e9bc171

File tree

1 file changed

+10
-6
lines changed
  • userguide/content/en/docs/Deployment

1 file changed

+10
-6
lines changed

userguide/content/en/docs/Deployment/_index.md

+10-6
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,16 @@ Then follow the instructions in [Host on Netlify](https://gohugo.io/hosting-and-
4040
1. Click **New site from Git**.
4141
1. Click your chosen Git provider, then choose your site repo from your list of repos.
4242
1. In the **Deploy settings** page:
43-
1. For your **Build command**, specify `cd themes/docsy && git submodule update -f --init && cd ../.. && hugo`. You need to specify this rather than just `hugo` so that Netlify can use the theme's submodules. If you don't want your site to be indexed by search engines, you can add an environment flag to specify a non-`production` environment, as described in [Build environments and indexing](#build-environments-and-indexing).
44-
1. Click **Show advanced**.
45-
1. In the **Advanced build settings** section, click **New variable**.
46-
1. Specify `HUGO_VERSION` as the **Key** for the new variable, and `0.73` or later as its **Value**.
47-
1. In the **Advanced build settings** section, click **New variable** again.
48-
1. Specify `GO_VERSION` as the **Key** for the new variable, and `1.18` or later as its **Value**.
43+
1. Specify your **Build command**. The exact build command depends on how you have chosen to use Docsy:
44+
* If you are using Docsy as a [Git submodule](/docs/get-started/other-options/#option-1-docsy-as-a-git-submodule), specify `cd themes/docsy && git submodule update -f --init && cd ../.. && hugo`. You need to specify this rather than just `hugo` so that Netlify can use the theme's submodules.
45+
* If you are using Docsy as a [Hugo module](/docs/get-started/docsy-as-module/) or NPM package, you can just specify `hugo`.
46+
3. Click **Show advanced**.
47+
4. In the **Advanced build settings** section, click **New variable**.
48+
5. Specify `HUGO_VERSION` as the **Key** for the new variable, and `0.73` or later as its **Value**.
49+
6. In the **Advanced build settings** section, click **New variable** again.
50+
7. Specify `GO_VERSION` as the **Key** for the new variable, and `1.18` or later as its **Value**.
51+
52+
If you don't want your site to be indexed by search engines, you can add an environment flag to your build command to specify a non-`production` environment, as described in [Build environments and indexing](#build-environments-and-indexing).
4953
1. Click **Deploy site**.
5054

5155
{{% alert title="Note" color="primary" %}}

0 commit comments

Comments
 (0)