Permalink
Browse files

Documentation update

  • Loading branch information...
1 parent 45be8a5 commit ccc2a371645ac56a77fff730042b69cc29d3a5ab @benoitg benoitg committed Mar 4, 2013
Showing with 23 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +16 −0 fabfile.py
  3. +6 −1 static/sass/i4p/_fonts.scss
View
@@ -27,5 +27,6 @@ vendor/bundle
*.directory
*.bundle
Gemfile.lock
+current_database.sql.bz2
/static/compiled_sass/
/static/compiled_images/
View
@@ -419,12 +419,22 @@ def install_builddeps():
@task
def install_rbenv():
+ """
+ Install the appropriate ruby environment for compass.
+ """
# Install rbenv:
sudo('git clone git://github.com/sstephenson/rbenv.git ~/.rbenv', user=env.user)
# Add rbenv to the path:
sudo('echo \'export PATH="$HOME/.rbenv/bin:$PATH"\' >> .bash_profile', user=env.user)
sudo('echo \'eval "$(rbenv init -)"\' >> .bash_profile', user=env.user)
sudo('source ~/.bash_profile', user=env.user)
+ # The above will work fine on a shell (such as on the server accessed using
+ # ssh for a developement machine running a GUI, you may need to run the
+ # following from a shell (with your local user):
+ # echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile;
+ # echo 'eval "$(rbenv init -)"' >> ~/.profile;
+ # source ~/.profile;
+
# Install ruby-build:
with cd('/tmp'):
sudo('git clone git://github.com/sstephenson/ruby-build.git', user=env.user)
@@ -442,11 +452,17 @@ def install_rbenv():
@task
def install_compass():
+ """
+ (Re)Install compass, deleting current version
+ """
with cd(env.venvfullpath + '/' + env.projectname + '/'):
run('rm -rf vendor/bundle')
execute(update_compass)
@task
def update_compass():
+ """
+ Make sure compass version is up to date
+ """
with cd(env.venvfullpath + '/' + env.projectname + '/'):
run('bundle install --path=vendor/bundle')
@@ -3,7 +3,12 @@
@mixin i4p-font-base($sizeText : $sizeTextNormal) {
font-size: $sizeText;
- line-height: $sizeText * 1.2;
+ /* There used not to be a line height defined here. It is essential to have
+ a line-height defined, otherwise the line spacing won't match the font size
+ when the mixin is used. If for some reason you need a custom line-height
+ change it in your stylesheet, below the mixin, but DO NOT REMOVE IT FROM
+ HERE */
+ line-height: $sizeText * 1.2;
font-family: $fontOpenSans;
}

0 comments on commit ccc2a37

Please sign in to comment.