-
Download & install EditorConfig plugin for your editor so we have consistency in our code.
-
Install NodeJS
-
Installing dependencies
bash setup.sh
(this will isntall sass, compass, grunt & bower) -
If you are using Sublime Text 3 then install this plug-in sublime-csscomb. CSScomb is a coding style formatter for CSS. This is the CSScomb setting file .csscomb.json
- use
npm run dev
- contents are generated into
./dev
directory - access http://0.0.0.0:9001 for preview
- livereload is supported
- use
npm run build
- contents are generated into
./dist
directory
-
All resources are deployed to
gh-pages
branch from_gh_pages
folder on themaster
branch -
Deployment to
gh-pages
branch are done via Travis CI -
Only when pushed into
master
branch, deployment is enabled.
###requirement
###instruction
-
fork
gengo/style-guide -
git clone
forked repository. -
move into root directory of the repository.
-
If needed,
merge
branch which you want to test. -
open
.travis.yml
, delete last line which start with- secure:
-
run
travis encrypt
with adequate options, to replace some environment variables
GH_TOKEN
,GIT_NAME
,GIT_EMAIL
are replaced- run
travis encrypt
- see exmample below.
-
Enable your repository in Travis CI
-
git add .travis.yml
andcommit
,push
-
check Dashboard of Travis CI.
# example: git clone
git clone [email protected]:vwxyz/style-guide.git
# example travis encrypt
# - `XXXXXXXXXXX` is your github personal api tokens)
# - by `--add` option, `.travis.yml` is auto-updated.
travis encrypt --add -r gengo/style-guide 'GIT_NAME="vwxyz [via travis key]" [email protected] GH_TOKEN=XXXXXXXXXXX'
To render a code block with syntax highlighting, surround your code like this:
{% highlight html %}
<ul class="nav nav-tabs">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">Profile</a></li>
<li><a href="#">Messages</a></li>
</ul>
{% endhighlight %}
This {% highlight html %}...{% endhighlight %}
block is converted into this:
<div class="highlight">
<pre><code class="html"><span class="nt"><ul</span> <span class="na">class=</span><span class="s">"nav nav-tabs"</span><span class="nt">></span>
<span class="nt"><li</span> <span class="na">class=</span><span class="s">"active"</span><span class="nt">><a</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>Home<span class="nt"></a></li></span>
<span class="nt"><li><a</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>Profile<span class="nt"></a></li></span>
<span class="nt"><li><a</span> <span class="na">href=</span><span class="s">"#"</span><span class="nt">></span>Messages<span class="nt"></a></li></span>
<span class="nt"></ul></span></code></pre>
</div>
For more detailed documentation, please look at : bootstrap-sass