MiddleDrive
Quick start
gem install middleman
middleman init new_site
To Gemfile in new_site add middle_drive
gem 'middle_drive'
Then run
cd new_site
bundle
middle_drive init
Manual install
gem install middle_drive
Setup
Middleman setup
middle_drive init
Google drive setup conventions
- create a new collection in your google drive. Name it the same like in
middle_drive.yml'ssite.collectionvalue. - create google spreadsheet named
pagesinside thissite.collection- each tab in this spreadsheet represents a page
- value in first row and first column represents a template which will be used by middleman

- create google spreadsheet named
datainsidesite.collection- each tab in this spreadsheet represents different list
- first data cell represents data type, which can be any of
array,hashandlist
- to display image just use this Middleman helper
<%= image_tag data.article.article.image %>
- to display list type use this
<% data.blog.blog.each do |blog_post| %>
<h2><%= blog_post.title %></h2>
<%= blog_post.content %>
<span><%= blog_post.date %></span>
<% end %>
Usage
middle_drive
This command will sync images and page information from your Google Drive collection which was set in
middle_drive.yml file.
TODO
- http://tvaughan.github.io/middleman-deploy/
- separate project for triggering sync between a site and drive
- Partials for debug info
- when building from scratch it would be better to start building
pages.yml,data.yml,en.ymlfiles locally and then run init to build structure on google drive