Update your Docsy Hugo Module
When using the Docsy theme as a Hugo Module, updating your theme is really easy.
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.
If you want to set your module to a certain version inside the Docsy theme repo, simply specify the name of the tag representing this version when updating your theme, for example:
hugo mod get -u github.com/google/docsy/theme@v0.15.1-dev
Instead of a version tag, you can also specify a commit hash, for example:
hugo mod get -u github.com/google/docsy/theme@6c8a3afe
After updating the theme, refresh the theme npm dependencies that are
consolidated into your site’s package.json, and reinstall them:
hugo mod npm pack
npm install
Hugo warns at build time when your package.json dependency set has drifted
from the theme’s. That’s it, your update is done!
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.