Update Docsy without Hugo Modules
If you aren’t using Hugo Modules, depending on how you chose to install Docsy on your existing site, use one of the following two procedures to update your theme.
TipIf you intend to update your site, consider converting your site to Hugo Modules. After conversion, it’s even simpler to update Docsy!
Update your Docsy submodule
If you are using the Docsy theme as a submodule in your project, here’s how you update the submodule:
Navigate to the root of your local project, then run:
git submodule update --remote
Add and then commit the change to your project:
git add themes/ git commit -m "Updating theme submodule"
Push the commit to your project repo. For example, run:
git push origin master
Route 2: Update your Docsy clone
If you cloned the Docsy theme into
themes folder in your project, then you use the
git pull command:
Navigate to the
themesdirectory in your local project:
originis set to
git remote -v
Update your local clone:
git pull origin master
If you have made any local changes to the cloned theme, you must manually resolve any merge conflicts.
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.