Version main of the documentation is no longer actively maintained. The site that you are currently viewing is an archived snapshot. For up-to-date documentation, see the latest version.
不使用Hugo模块更新Docsy
使用子模块或
git pull
更新 Docsy 主题至最新版本。 如果你不使用 Hugo 模块,根据你在现有站点上安装 Docsy 的方式,使用以下两个程序之一来更新你的主题。
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
Hugo automatically pulls in the latest theme version. That’s it, your update is done!
Tip
如果你打算更新你的站点,请考虑将你的站点转换为 Hugo 模块。转换后,更新 Docsy 就更简单了!
hugo mod get -u github.com/google/docsy@vmain
Instead of a version tag, you can also specify a commit hash, for example:
hugo mod get -u github.com/google/docsy@6c8a3afe