Update your Docsy Hugo Module

Update Docsy with hugo mod get, for sites that manage the theme as a Hugo Module.

At the command prompt, change to the root directory of your existing site.

cd /path/to/my-existing-site

Then invoke Hugo’s module get subcommand with the update flag:

hugo mod get -u github.com/google/docsy/theme

Hugo automatically pulls in the latest theme version.

After updating the theme, tidy your module files, refresh the generated theme npm dependencies workspace, and reinstall it:

hugo mod tidy
hugo mod npm pack
npm install

Hugo warns at build time when the generated workspace’s dependency set has drifted from the theme’s. To verify the resolved version, run:

hugo mod graph

Confirm that it lists github.com/google/docsy/theme at the version you expect.

After updating the theme, continue with the remaining update steps, starting with Review your theme overrides.