Here at @abletech, we've standardised on the tools we use to generate static websites. The technologies include:
- Ruby
- Middleman
- LiveReload
- Sass
- Autoprefixer
- CoffeeScript/JavaScript
- Google Analytics
- Travis
- Amazon S3
- Amazon CloudFront
- IE (9+)
- Google Chrome (Edge)
- Safari (6+)
- Firefox (Edge)
- Opera Mobile and Desktop (12+)
- Pattern library
- A list of navigable patterns generated by Middleman Data files.
- Unstyled by default.
- HTML
- Boilerplate for Mobile-first Responsive Web Design
- Basic Accessibility (a11y) features such as landmarks, skip-to nav
- Titles and meta descriptions per page
- CSS
- Inline-CSS for the homepage
- JavaScript
- Progressively-enhanced and post-loaded
- Menu toggling
data-add-class
adds classes at runtime- Conditional loading of Google Analytics
- Polyfills down to IE8
- Resize handling
- Progressively-enhanced and post-loaded
- Environment
- Development, Staging and Production boilerplate
- Environment-specific debugging and conditionals
- Testing
- Basic Capybara tests
- Clone this repo into a local directory
- Change to your new local directory
bundle install
middleman s
Make sure you've modified your configuration settings (as described below) before proceeding with deploying to staging or production.
git checkout develop
git pull origin develop
APP_ENV=staging bundle exec middleman build
APP_ENV=staging bundle exec middleman s3_sync
Make sure you've modified your configuration settings (as described below) before proceeding with deploying to staging or production.
git checkout master
git pull origin master
APP_ENV=production bundle exec middleman build
APP_ENV=production bundle exec middleman s3_sync
In the config
folder, you'll find three .rb
files, one for each of the major environments we use. Make sure to change these settings for your own environments.
Create and generate the necessary favicon and touch-icons and place them in the source
folder.
apple-touch-icon-114x114-precomposed.png
apple-touch-icon-120x120-precomposed.png
apple-touch-icon-144x144-precomposed.png
apple-touch-icon-152x152-precomposed.png
apple-touch-icon-180x180-precomposed.png
apple-touch-icon-57x57-precomposed.png
apple-touch-icon-72x72-precomposed.png
apple-touch-icon-76x76-precomposed.png
apple-touch-icon-precomposed.png
apple-touch-icon.png
touch-icon-192x192.png
favicon.ico
sitemap.xml.erb
robots.txt
humans.txt
Try out our 404 template: https://github.com/AbleTech/404_search_page
- Find a working sitemap plugin
- Build a set of PhotoShop Actions to help generate the touch-icons
- Add IE8 JavaScript support (addEventListener, etc)