Skip to content

Updating Minimal Mistakes theme

Clare Macrae edited this page Oct 7, 2020 · 5 revisions

Contents

Copied files

The repo contains files copied from the Minimal Mistakes Jekyll theme - see also its GitHub repo.

The following files and folders were copied in:

_data/
_includes/
_layouts/
_sass/
assets/

_config.yml
Gemfile
LICENSE
minimal-mistakes-jekyll.gemspec
package-lock.json
package.json
Rakefile

Updating the copied files

Unsuccessful attempt

I tried writing a script to copy the latest versions of those files in from minimal-mistakes to this repo, but this overwrote customisations made here, giving faff to unravel what changes to keep and what to discard. Plus we wouldn't get any meaningful commit messages and diffs.

Worth trying

This is not yet tested, as at the time of writing, we already had all the changes in the minimal-mistakes repo... But I do expect it to work:

cd include-cpp.github.io
git remote add mm https://github.com/mmistakes/minimal-mistakes.git   
git fetch mm master
  • Now use a graphical git tool - e.g. the log view in PyCharm - to review changes made in minimal-mistakes since the last update here
  • and cherry-pick the changes that affect the files listed above.
  • Test a local build of the site, at each stage
  • Push the changes to this repo, or create a pull request
git remote remove mm
Clone this wiki locally