-
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
./devdirectory - access http://0.0.0.0:9001 for preview
- livereload is supported
- use
npm run build - contents are generated into
./distdirectory
-
All resources are deployed to
gh-pagesbranch from_gh_pagesfolder on themasterbranch -
Deployment to
gh-pagesbranch are done via Travis CI -
Only when pushed into
masterbranch, deployment is enabled.
###requirement
###instruction
-
forkgengo/style-guide -
git cloneforked repository. -
move into root directory of the repository.
-
If needed,
mergebranch which you want to test. -
open
.travis.yml, delete last line which start with- secure: -
run
travis encryptwith adequate options, to replace some environment variables
GH_TOKEN,GIT_NAME,GIT_EMAILare replaced- run
travis encrypt - see exmample below.
-
Enable your repository in Travis CI
-
git add .travis.ymlandcommit,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