This is an example project using Middleman and pulling in our Style Guide as a submodule.
Requires Ruby 2.2.5 and Bundler
Clone the repo:
git clone git@github.com:mailchimp/middleman-with-md-submodule-example.git
cd middleman-with-md-submodule-exampleInstall dependencies:
bundle installInitialize the submodule:
git submodule initUpdate the submodule:
git submodule updateRun it:
bundle exec middleman serverView it at http://localhost:4567/
Fork your own version of our Style Guide. You'll need to change out the submodule with your forked version.
First, remove the old Style Guide:
git submodule deinit content-style-guide
git rm content-style-guideThen go to your fork of the Style Guide on GitHub, click on the Clone or download button, copy the Clone with SSH url, and paste it in this line:
git submodule add {paste your submodule GitHub repo url}Then:
git submodule initAs you make changes to your copy of the Style Guide submodule, you'll need to resync it with:
git submodule update