You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: userguide/content/en/docs/Deployment/_index.md
+10-6
Original file line number
Diff line number
Diff line change
@@ -40,12 +40,16 @@ Then follow the instructions in [Host on Netlify](https://gohugo.io/hosting-and-
40
40
1. Click **New site from Git**.
41
41
1. Click your chosen Git provider, then choose your site repo from your list of repos.
42
42
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).
0 commit comments