Skip to content

Commit 0333318

Browse files
authored
[UG] NPM install: add npm init and switch to YAML config (#2114)
1 parent a9ee9f4 commit 0333318

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

userguide/content/en/docs/get-started/other-options.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ your project's root directory:
179179
2. Add Docsy as a theme, for example:
180180
181181
```sh
182-
echo 'theme = "docsy"' >> hugo.toml
182+
echo 'theme: docsy' >> hugo.yaml
183183
```
184184
185185
{{% alert title="Tip" %}}
186-
In Hugo 0.110.0 the default config base filename was changed to `hugo.toml`.
187-
If you are using hugo 0.110 or above, consider renaming your `config.toml` to `hugo.toml`!
186+
In Hugo 0.110.0 the default config base filename was changed to `hugo.*` from `config.*`.
187+
If you are using hugo 0.110 or above, consider renaming your `config.*` to `hugo.*`!
188188
{{% /alert %}}
189189
190190
3. Get Docsy dependencies:
@@ -258,14 +258,15 @@ You can use Docsy as an NPM module as follows:
258258
1. Create your site and specify Docsy as the site theme:
259259

260260
```sh
261-
hugo new site myproject
261+
hugo new site --format yaml myproject
262262
cd myproject
263-
echo 'theme = "docsy"' >> hugo.toml
263+
echo 'theme: docsy' >> hugo.yaml
264264
```
265265

266266
2. Install Docsy, and postCSS (as [instructed earlier](#install-postcss)):
267267

268268
```console
269+
npm init -y
269270
npm install --save-dev google/docsy#semver:{{% param version %}} autoprefixer postcss-cli
270271
```
271272

@@ -285,7 +286,7 @@ You can use Docsy as an NPM module as follows:
285286
your site's configuration file:
286287
287288
```sh
288-
echo 'themesDir = "node_modules"' >> hugo.toml
289+
echo 'themesDir: node_modules' >> hugo.yaml
289290
```
290291
291292
As an alternative to specifying a `themesDir`, on some platforms, you can

0 commit comments

Comments
 (0)