Update your Docsy Hugo Module
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.
To pin the theme to a specific version, specify its tag when updating, for example:
hugo mod get github.com/google/docsy/theme@v0.16.0
Instead of a version tag, you can also specify a commit hash, for example:
hugo mod get github.com/google/docsy/theme@9b1d9951
After updating the theme, tidy your module files, refresh the theme npm
dependencies that are consolidated into your site’s package.json, and
reinstall them:
hugo mod tidy
hugo mod npm pack
npm install
Hugo warns at build time when your package.json 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.
Feedback
Cette page est-elle utile?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.