-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Upgrade Guide
Table of Contents
The way to update the theme depends on how you use it.
If you are using the theme gem (there will be gem "jekyll-theme-chirpy"
in the Gemfile
), editing the Gemfile
and update the version number of the theme gem, for example:
- gem "jekyll-theme-chirpy", "~> 3.2"
+ gem "jekyll-theme-chirpy", "~> 4.0"
And then execute the following command:
bundle update jekyll-theme-chirpy
As the version upgrades, the critical files (for details, see the startup template) and configuration options will change. We can use the GitHub API to get the file changes in the version upgrade.
The URL format is as follows:
https://github.com/cotes2020/chirpy-starter/compare/<older_version>...<newer_version>
For instance, to upgrade from v4.0.0
to v5.0.0
, visit:
https://github.com/cotes2020/chirpy-starter/compare/v4.0.0...v5.0.0
If you forked from the source project (there will be gemspec
in the Gemfile
of your site), then merge the latest upstream tags into your Jekyll site to complete the upgrade.
The merge is likely to conflict with your local modifications. Please be patient and careful to resolve these conflicts.
Starting with v5.6.0
, the JS distribution files have been removed from the repository, so for all future upgrades, you should compile the JS files yourself.
npm run build
And then make sure to add them to your repository files.
git add assets/js/dist -f