- Automated deployment
- Multiple languages (i18n)
- Integrated documentation (mkdocs)
- Automated image optimization
- SASS/SCSS, Coffee and Sprockets support
- Clone:
git clone git@github.com:opoloo/middleman-template.git <projectname>
- Adjust the following files for a new project:
- /config/deploy.rb
- /config/deploy/*.rb
- mkdocs.yml
See https://github.com/middleman/middleman/blob/master/README.md
middleman server
middleman build
The compiled result resides inside the /build/ directory.
- Documentation sources reside inside the /docs directory
- Supported format: Markdown
The following command builds a static version inside the /doc_build directory:
mkdocs build
Start a local development server to live-preview the generated documentation files:
mkdocs serve
Deploy the documentation to github pages:
mkdocs gh-deploy -c
Notice: Add your publickey to the ~/.ssh/authorized_keys file on the server if you want to be able to connect via pubkey authentication.
# staging
cap staging deploy
# production
cap production deploy
cap [production|staging] deploy:rollback