<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
 
 <title>YAGeekBlog</title>
 <link href="http://jmaupetit.github.com/atom.xml" rel="self"/>
 <link href="http://jmaupetit.github.com"/>
 <updated>2012-06-26T06:10:53-07:00</updated>
 <id>http://jmaupetit.github.com</id>
 <author>
   <name>Julien Maupetit</name>
   <email>julien@maupetit.net</email>
 </author>

 
 <entry>
   <title>Prose, an on-line text editor for Jekyll</title>
   <link href="http://jmaupetit.github.com/Verbose/2012/06/26/prose-test"/>
   <updated>2012-06-26T00:00:00-07:00</updated>
   <id>hhttp://jmaupetit.github.com/Verbose/2012/06/26/prose-test</id>
   <content type="html">&lt;p&gt;&lt;a href='http://prose.io'&gt;Prose&lt;/a&gt; is simply an amazing tool used to write content for your Jekyll blog hosted on github pages.&lt;/p&gt;

&lt;p&gt;This blog post is my first test.&lt;/p&gt;

&lt;p&gt;Source: &lt;a href='http://developmentseed.org/blog/2012/june/25/prose-a-content-editor-for-github/'&gt;http://developmentseed.org&lt;/a&gt;&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Satchmo colissimo a new shipping module for your satchmo projects</title>
   <link href="http://jmaupetit.github.com/Django/2012/04/04/satchmo-colissimo-a-new-shipping-module-for-your-satchmo-projects"/>
   <updated>2012-04-04T00:00:00-07:00</updated>
   <id>hhttp://jmaupetit.github.com/Django/2012/04/04/satchmo-colissimo-a-new-shipping-module-for-your-satchmo-projects</id>
   <content type="html">&lt;img src='http://www.stripes.com/polopoly_fs/1.10216.1329434336!/image/3158504592.jpg_gen/derivatives/landscape_490/3158504592.jpg' alt='Louis Armstrong - Satchmo' /&gt;
&lt;p&gt;I just released the first version of a new shipping module for &lt;a href='http://www.satchmoproject.com/'&gt;satchmo&lt;/a&gt; &lt;a href='https://www.djangoproject.com/'&gt;django&lt;/a&gt; e-commerce solution: &lt;a href='https://github.com/jmaupetit/satchmo-colissimo'&gt;&lt;strong&gt;satchmo-colissimo&lt;/strong&gt;&lt;/a&gt;. The module basic documentation follows. You can find the sources on github: &lt;a href='https://github.com/jmaupetit/satchmo-colissimo' title='Django Satchmo Colissimo'&gt;https://github.com/jmaupetit/satchmo-colissimo&lt;/a&gt;&lt;/p&gt;

&lt;h2 id='dependancies'&gt;Dependancies&lt;/h2&gt;

&lt;p&gt;Considering you have a properly configured (and working) satchmo project. The only required dependancy is the &lt;a href='https://github.com/matm/django-colissimo'&gt;django-colissimo&lt;/a&gt; module up-to-date with LaPoste Colissimo shipping rates. For more informations on how to update django-colissimo to &lt;code&gt;youryear&lt;/code&gt; rates, please refer to the project page.&lt;/p&gt;

&lt;p&gt;Most of the time, a simple:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;pip install django-colissimo&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;will do the trick. If pip does not found the module on PyPI, use the github repository&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;pip install git+git://github.com/matm/django-colissimo&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id='installation'&gt;Installation&lt;/h2&gt;

&lt;h3 id='configure_djangocolissimo'&gt;Configure django-colissimo&lt;/h3&gt;

&lt;p&gt;Once dependancies installed, edit your satchmo project &lt;code&gt;settings.py&lt;/code&gt; and add &lt;code&gt;colissimo&lt;/code&gt; to your &lt;code&gt;INSTALLED_APPS&lt;/code&gt;, &lt;em&gt;e.g.&lt;/em&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;INSTALLED_APPS = (
    ...
    &amp;#39;colissimo&amp;#39;,
)&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now you need to create &lt;code&gt;colissimo&lt;/code&gt; database scheme with&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;python manage.py syncdb&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This will also load colissimo rates in the db. If not, fetch initial data:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;mkdir data
wget https://raw.github.com/matm/django-colissimo/master/colissimo/fixtures/initial_data.json \
  -O data/colissimo_initial_data.json
python manage.py loaddata data/colissimo_initial_data.json&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now you need to install satchmo-colissimo from github, either by cloning the project of using pip.&lt;/p&gt;

&lt;h3 id='clone_the_module_from_github'&gt;Clone the module from github&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;git clone git://github.com/jmaupetit/satchmo-colissimo
cd satchmo-colissimo
python setup.py install&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id='use_pip'&gt;Use pip&lt;/h3&gt;

&lt;pre&gt;&lt;code&gt;pip install git+git://github.com/jmaupetit/satchmo-colissimo&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id='activate_satchmocolissimo'&gt;Activate satchmo-colissimo&lt;/h3&gt;

&lt;p&gt;To activate your custom shipping module, add &lt;code&gt;satchmo_colissimo&lt;/code&gt; to your &lt;code&gt;CUSTOM_SHIPPING_MODULES&lt;/code&gt; list, &lt;em&gt;e.g.&lt;/em&gt;:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;SATCHMO_SETTINGS = {
    ....
    &amp;#39;CUSTOM_SHIPPING_MODULES&amp;#39;:[&amp;#39;satchmo_colissimo&amp;#39;],
}&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now go to your site settings (once logged in the django admin): in development mode it would be something like &lt;code&gt;http://127.0.0.1:8000/settings/&lt;/code&gt;. Click on &lt;code&gt;Shipping settings&lt;/code&gt; and select &lt;code&gt;Colissimo&lt;/code&gt; as an activated shipping module. Then, &lt;code&gt;update settings&lt;/code&gt; and a new configuration section will appear for &lt;a href='https://github.com/jmaupetit/satchmo-colissimo'&gt;Colissimo shipping module&lt;/a&gt;.&lt;/p&gt;

&lt;h2 id='changelog'&gt;Changelog&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Initial release based on the django-colissimo module&lt;/li&gt;

&lt;li&gt;Applies colissimo rates given a package weight, destination and recommanded level&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id='roadmap'&gt;Roadmap&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Complete support of &lt;a href='http://www.colissimo.fr/so/'&gt;So Colissimo&lt;/a&gt; WS (multiple delivery modes, tracking number, shipping label, etc.)&lt;/li&gt;
&lt;/ul&gt;</content>
 </entry>
 
 <entry>
   <title>Write your own AsciiDoc theme for HTML5 backend with SASS</title>
   <link href="http://jmaupetit.github.com/Markup/2012/03/21/write-your-own-asciidoc-theme-for-html5-backend-with-sass"/>
   <updated>2012-03-21T00:00:00-07:00</updated>
   <id>hhttp://jmaupetit.github.com/Markup/2012/03/21/write-your-own-asciidoc-theme-for-html5-backend-with-sass</id>
   <content type="html">&lt;p&gt;A few months ago, I was searching for a good markup language to write documents for my &lt;a href='http://www.comsource.fr'&gt;company&lt;/a&gt;. Desired features I was looking for were:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;text based pivot markup language to ease collaborative work with a &lt;a href='http://en.wikipedia.org/wiki/Source_code_management' title='Source Code Management'&gt;version control system&lt;/a&gt;, such as &lt;a href='http://git-scm.com/'&gt;git&lt;/a&gt; or &lt;a href='http://mercurial.selenic.com/'&gt;mercurial&lt;/a&gt;&lt;/li&gt;

&lt;li&gt;easy convertion to other file formats like HTML, PDF, etc.&lt;/li&gt;

&lt;li&gt;rich enough to define my own stylesheet/classes for the HTML backend. This is a crucial point.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;To my knowledge, &lt;a href='http://www.methods.co.nz/asciidoc/'&gt;AsciiDoc&lt;/a&gt; seems to answer to all of these requirements.&lt;/p&gt;

&lt;h2 id='asciidoc'&gt;AsciiDoc&lt;/h2&gt;

&lt;p&gt;As defined in the &lt;a href='http://www.methods.co.nz/asciidoc/'&gt;AsciiDoc home page&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;AsciiDoc is a text document format for writing notes, documentation, articles, books, ebooks, slideshows, web pages, man pages and blogs. AsciiDoc files can be translated to many formats including HTML, PDF, EPUB, man page.&lt;/p&gt;

&lt;p&gt;AsciiDoc is highly configurable: both the AsciiDoc source file syntax and the backend output markups (which can be almost any type of SGML/XML markup) can be customized and extended by the user.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;In a few words, AsciiDoc is yet another markup language with its own &lt;a href='http://powerman.name/doc/asciidoc'&gt;syntax&lt;/a&gt; and command line tool &lt;code&gt;asciidoc&lt;/code&gt; (written in python!) used to compile your document to a specified backend. For example,&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;asciidoc -b html5 -a icons -a toc2 -a theme=flask {yourdocument}.adoc&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This will generate a file &lt;code&gt;{yourdocument}.html&lt;/code&gt; with the flask theme embedded.&lt;/p&gt;

&lt;h2 id='css_to_sass'&gt;CSS to SASS&lt;/h2&gt;

&lt;p&gt;When dealing with CSS, I have the (good?) habit to avoid doing pure CSS! There are two major languages used to ease the heavy task of writing a stylesheet: &lt;a href='http://sass-lang.com/' title='SASS Lang'&gt;SASS&lt;/a&gt; and &lt;a href='http://lesscss.org/' title='LessCSS'&gt;LESS&lt;/a&gt;. I will not debate here about what is the best framework to use for your own case, you will find plenty of articles about this around the web (see for example the &lt;a href='http://coding.smashingmagazine.com/2011/09/09/an-introduction-to-less-and-comparison-to-sass/'&gt;smashing magazine review&lt;/a&gt;). I have started using SASS even it seems less (!) popular than LESS since &lt;a href='http://twitter.github.com/bootstrap/'&gt;twitter boostrap&lt;/a&gt; use it (personal thought).&lt;/p&gt;

&lt;h3 id='sass_syntaxically_awesome_stylesheets'&gt;SASS: Syntaxically Awesome StyleSheets&lt;/h3&gt;

&lt;p&gt;&lt;a href='http://compass-style.org' title='Compass SASS framework'&gt;Compass&lt;/a&gt; is a CSS authoring framework based on the &lt;a href='http://sass-lang.com/' title='Syntaxically Awesome StyleSheets'&gt;SASS language&lt;/a&gt;. In a few words, Sass is an extension of CSS3 adding some pretty cool and useful features such as nested rules, variables, mixins, etc. The language has two different syntaxes, SCSS (close to CSS) and SASS (indented syntax inspired by &lt;a href='http://haml-lang.com/' title='Haml markup'&gt;Haml&lt;/a&gt;). If you use to practice CSS, I think you would prefer SCSS (as I do!). Your SASS source will be compiled to a clean CSS thanks to the &lt;code&gt;compass&lt;/code&gt; command line tool.&lt;/p&gt;

&lt;h3 id='the_compass_framework'&gt;The Compass framework&lt;/h3&gt;

&lt;p&gt;The Compass framework adds a lot of mixins to deal with CSS3, a grid system (&lt;a href='http://blueprintcss.org/' title='blueprint CSS'&gt;blueprint&lt;/a&gt;), your layout and more. For an up-to-date exhaustive list of implemented mixins, please, check out the &lt;a href='http://compass-style.org/reference/compass/'&gt;compass documentation&lt;/a&gt;.&lt;/p&gt;

&lt;h3 id='lets_start_working'&gt;Let&amp;#8217;s start working&lt;/h3&gt;

&lt;p&gt;First, you need to install Compass (see &lt;a href='http://compass-style.org/install/'&gt;compass install instructions&lt;/a&gt;), and then create a new compass project with:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ compass create AsciiDoc_SASS --using blueprint&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The &lt;code&gt;--using blueprint&lt;/code&gt; argument is optional; add it if you want to use the blueprint grid framework. Once created, your project will look like:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;AsciiDoc_SASS/
├── config.rb
├── images
│   └── grid.png
├── sass
│   ├── ie.scss
│   ├── partials
│   │   └── _base.scss
│   ├── print.scss
│   └── screen.scss
└── stylesheets
    ├── ie.css
    ├── print.css
    └── screen.css&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Since by default, AsciiDoc will only consider one single css file for your theme, you can remove unused print.{scss,css} and ie.{scss,css} files (please, tell me you are not using IE &amp;lt; 9).&lt;/p&gt;

&lt;p&gt;Now, it&amp;#8217;s time to find a name for your theme! My theme is hightly inspired by the &lt;code&gt;flask&lt;/code&gt; theme so let it sounds more frenchy, and call it &lt;code&gt;fiole&lt;/code&gt;. You will need to rename your &lt;code&gt;screen.scss&lt;/code&gt; file to &lt;code&gt;{yourtheme}.scss&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;By default, the html5 backend template file loads two javascript files: &lt;code&gt;asciidoc.js&lt;/code&gt; and &lt;code&gt;{yourtheme}.js&lt;/code&gt;, so create a &lt;code&gt;js&lt;/code&gt; directory and fetch the latest version of &lt;a href='http://asciidoc.googlecode.com/hg/javascripts/asciidoc.js'&gt;asciidoc.js&lt;/a&gt;. Your project tree is now:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;AsciiDoc_SASS/
├── config.rb
├── images
│   ├── grid.png
├── js
│   ├── asciidoc.js
│   └── fiole.js
├── sass
│   ├── fiole.scss
│   └── partials
│       ├── _base.scss
└── stylesheets
	└── fiole.css&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;We will now convert asciidoc default CSS to SASS, thanks to &lt;a href='http://css2sass.heroku.com' title='Convert your CSS files to Syntaxically Awesome StyleSheets code!'&gt;css2sass&lt;/a&gt; service (source code of the project is available on &lt;a href='https://github.com/jpablobr/css2sass' title='css2sass project sources'&gt;GitHub&lt;/a&gt;). To do so, fetch the latest release of the asciidoc default stylesheet:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ cd /tmp
$ wget http://asciidoc.googlecode.com/hg/stylesheets/asciidoc.css&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then copy all the asciidoc.css file content to the &lt;a href='(http://css2sass.heroku.com'&gt;sass2css&lt;/a&gt; form and click &lt;strong&gt;&amp;#8220;Convert 2 SCSS&amp;#8221;&lt;/strong&gt;. Copy The lower textarea SCSS code to a new partial file:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ cd AsciiDoc_SASS
$ touch sass/partials/_asciidoc.scss
$ emacs sass/partials/_asciidoc.scss&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Add paste the SCSS code to the &lt;code&gt;_asciidoc.scss&lt;/code&gt; file. You will need to add this style definition to the main document, by adding:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;@import &amp;quot;partials/asciidoc&amp;quot;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;at the end of the &lt;code&gt;sass/{yourtheme}.scss&lt;/code&gt; file. Now you are ready to compile stylesheets with:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ compass compile&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;A more efficient way to work is to use the:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ compass watch&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;command. In this case, each time you save your scss file, compass automatically compiles your source file to update your css.&lt;/p&gt;

&lt;h2 id='create_your_own_theme'&gt;Create your own theme&lt;/h2&gt;

&lt;p&gt;Now you are ready to work on you own theme. Go create a partial called &lt;code&gt;_{yourtheme}.scss&lt;/code&gt; in &lt;code&gt;partials&lt;/code&gt; directory to override &lt;code&gt;_asciidoc.scss&lt;/code&gt; scss rules, and add it to your main theme file: &lt;code&gt;{yourtheme}.scss&lt;/code&gt;.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;@import &amp;quot;partials/asciidoc&amp;quot;;
@import &amp;quot;partials/fiole&amp;quot;;
@import &amp;quot;partials/h5bp_print&amp;quot;;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Procede the same way for printing rules. A good idea is to create a &lt;code&gt;_print.scss&lt;/code&gt; partial with &lt;a href='http://html5boilerplate.com/'&gt;html5 boilerplate&lt;/a&gt; good practices for &lt;code&gt;@media print&lt;/code&gt; rules.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Work Work Work &amp;#8230; coffee &amp;#8230; Work Work Work &amp;#8230; done!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Once your style is ready for production, use the following command to generate a minified version of your CSS file:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ compass compile -e production --force&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id='use_your_new_asciidoc_theme'&gt;Use your new AsciiDoc theme&lt;/h2&gt;

&lt;p&gt;Now it&amp;#8217;s time to test your style on your AsciiDoc file (&lt;em&gt;e.g.&lt;/em&gt; &lt;code&gt;lorem_ipsum.adoc&lt;/code&gt;) by typing the command:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;asciidoc -b html5 -a linkcss \
-a stylesdir=AsciiDoc_SASS/stylesheets \
-a scriptsdir=AsciiDoc_SASS/js \
-a themedir=$(PWD)/AsciiDoc_SASS/stylesheets \
-a theme=fiole \
lorem_ipsum.adoc&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And tadaaaah!&lt;/p&gt;

&lt;h2 id='resources_of_the_tutorial'&gt;Resources of the tutorial&lt;/h2&gt;

&lt;p&gt;You will find all ressources of this tutorial on github:&lt;/p&gt;

&lt;p&gt;&lt;a href='https://github.com/jmaupetit/AsciiDoc_SASS'&gt;https://github.com/jmaupetit/AsciiDoc_SASS&lt;/a&gt;&lt;/p&gt;</content>
 </entry>
 
 <entry>
   <title>Hello Jekyll</title>
   <link href="http://jmaupetit.github.com/Verbose/2012/02/20/hello-jekyll"/>
   <updated>2012-02-20T00:00:00-08:00</updated>
   <id>hhttp://jmaupetit.github.com/Verbose/2012/02/20/hello-jekyll</id>
   <content type="html">&lt;p&gt;After searching for months an easy to use blogging system for my everyday use, I finally found &lt;a href='http://jekyllbootstrap.com/' title='Jekyll boostrap project page'&gt;Jekyll&lt;/a&gt;, thanks to my &lt;a href='https://twitter.com/#!/julienmaupetit' title='Twitter Julien Maupetit'&gt;twitter&lt;/a&gt; feeds.&lt;/p&gt;
&lt;img src='http://mskstatic.com/386/515/medias/photos/programmes/moins_de150000/132996/dr-jekyll-and-mr-hyde.jpg' alt='Jekyll and Hide' /&gt;
&lt;h2 id='features'&gt;Features&lt;/h2&gt;

&lt;p&gt;With Jekyll, create a new blog post or a new page for your blog is as easy as typing a single command line like &lt;code&gt;rake do something&lt;/code&gt;. You only need to focus on the content written in &lt;a href='http://daringfireball.net/projects/markdown/syntax' title='Markdown syntax'&gt;markdown&lt;/a&gt;. Main advantages of this tool are:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;You only need your favourite &lt;strong&gt;text editor&lt;/strong&gt; (&lt;a href='http://www.gnu.org/software/emacs/' title='GNU Emacs Project page'&gt;GNU Emacs&lt;/a&gt; of course!) and a terminal (with &lt;a href='http://git-scm.com/' title='git SCM'&gt;git&lt;/a&gt; installed) to publish new content on your blog&lt;/p&gt;
&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;&lt;strong&gt;No database&lt;/strong&gt; is requiered&lt;/p&gt;
&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;Github &lt;strong&gt;free hosting&lt;/strong&gt; (uses &lt;a href='http://pages.github.com/' title='GitHub Pages'&gt;GitHub Pages&lt;/a&gt;)&lt;/p&gt;
&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;GitHub Pages allows you to use &lt;strong&gt;your own domaine name&lt;/strong&gt; (define a CNAME) pointing to your repository (your blog in fact)&lt;/p&gt;
&lt;/li&gt;

&lt;li&gt;
&lt;p&gt;&lt;em&gt;Optionally you can locally install jekyll to preview your content&lt;/em&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2 id='overview_of_jekyll'&gt;Overview of Jekyll&lt;/h2&gt;

&lt;h3 id='create_a_blog_post'&gt;Create a blog post&lt;/h3&gt;

&lt;p&gt;Once installed and configured (5 minutes with the &lt;a href='http://jekyllbootstrap.com/usage/jekyll-quick-start.html'&gt;Jekyll quick start&lt;/a&gt; guide), simply create a blog post with the command:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ rake post title=&amp;quot;My New Post&amp;quot;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This will create a properly formated file &lt;code&gt;./_posts/2012-03-15-my-new-post.md&lt;/code&gt;. This is the one you must edit with your post content.&lt;/p&gt;

&lt;h3 id='create_pages'&gt;Create pages&lt;/h3&gt;

&lt;p&gt;You may also want to generate static pages for your blog. Let&amp;#8217;s say you want to create a static page with relevant informations about you, type:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ rake page name=&amp;quot;about.md&amp;quot;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;This will create your page template &lt;code&gt;about.md&lt;/code&gt; in your project root directory. This page will be automatically listerd in the &lt;code&gt;/pages.html&lt;/code&gt; view and available at &lt;code&gt;/about.html&lt;/code&gt;. The Jekyll documentation mention the possibility to create nested pages via the command:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ rake page name=&amp;quot;pages/about.md&amp;quot;&lt;/code&gt;&lt;/pre&gt;

&lt;h3 id='publish'&gt;Publish&lt;/h3&gt;

&lt;p&gt;Once configured, publishing new content to your blog is a classical git workflow:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ git add .
$ git commit -am &amp;#39;New blog post added&amp;#39;
$ git push origin master&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now wait for a few minutes, GitHub will send you a notification once our page has been build successfully.&lt;/p&gt;

&lt;h3 id='syntax_highlighting'&gt;Syntax highlighting&lt;/h3&gt;

&lt;p&gt;One of the major feature I liked is the opportunity to add syntax highlighting for code blocks: Jekyll uses &lt;a href='http://www.liquidmarkup.org'&gt;Liquid&lt;/a&gt; to process templates and adds &lt;a href='https://github.com/mojombo/jekyll/wiki/liquid-extensions' title='See Jekyll Liquid extensions'&gt;its own tags&lt;/a&gt; including &lt;code&gt;highlight&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Using the &lt;code&gt;highlight&lt;/code&gt; liquid tag, the following block code:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;{% highlight python linenos %}
print &amp;quot;Hello Jekyll!&amp;quot;
{% endhighlight %}&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;will be rendered as:&lt;/p&gt;
&lt;div class='highlight'&gt;&lt;pre&gt;&lt;code class='python'&gt;&lt;span class='lineno'&gt;1&lt;/span&gt; &lt;span class='k'&gt;print&lt;/span&gt; &lt;span class='s'&gt;&amp;quot;Hello Jekyll!&amp;quot;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;Note to myself: to display the non-rendered block you should use the &lt;code&gt;literal&lt;/code&gt; tag for liquid 2.2.2 and the &lt;code&gt;raw&lt;/code&gt; tag for liquid 2.3.0, and both of them are not backward compatible&amp;#8230; Hence, when &lt;code&gt;gh-pages&lt;/code&gt; will upgrade to liquid 2.3.0, this page will be broken and will need an update. Please, dear reader: do not hesitate to warn me! This has been reported in &lt;a href='https://github.com/mojombo/jekyll/issues/425'&gt;issue #425&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3 id='configure_your_domain_name'&gt;Configure your domain name&lt;/h3&gt;

&lt;p&gt;As explained in &lt;a href='http://pages.github.com/#custom_domains' title='Read GitHub Pages Documentation'&gt;GitHub Pages documentation&lt;/a&gt;, GitHub offers you the possibility to use your own CNAME pointing to your repository/blog. Hence, at the root of your repository add a file named &lt;code&gt;CNAME&lt;/code&gt; which contains your subdomain name, &lt;em&gt;e.g.&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;yageekblog.maupetit.net&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And of course, configure your DNS settings properly, &lt;em&gt;e.g.&lt;/em&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;yageekblog.maupetit.net. CNAME IN jmaupetit.github.com.&lt;/code&gt;&lt;/pre&gt;

&lt;h2 id='still_some_work_to_do'&gt;Still some work to do&amp;#8230;&lt;/h2&gt;

&lt;p&gt;Now that I have found the technical solution I was looking for, I have to do some more work to migrate posts from my previous blog ( &lt;a href='http://www.maupetit.net/Blog/' title='Julien Maupetit Deprecated Blog'&gt;http://www.maupetit.net/Blog/&lt;/a&gt; ) and define my own template and not &lt;a href='http://themes.jekyllbootstrap.com/' title='Theme for Jekyll-bootstrap'&gt;the-minimum theme&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;UPDATE 2012/04/05&lt;/strong&gt;&lt;/p&gt;

&lt;h2 id='last_remarks'&gt;Last remarks&lt;/h2&gt;

&lt;h3 id='debugging_your_pagesposts'&gt;Debugging your pages/posts&lt;/h3&gt;

&lt;p&gt;In &lt;code&gt;page build failure&lt;/code&gt; case (when pushing to github), install gem versions used in production by github, &lt;em&gt;e.g.&lt;/em&gt; &lt;code&gt;liquid 2.2.2&lt;/code&gt; and &lt;code&gt;jekyll 0.11.0&lt;/code&gt;&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo gem install liquid -v 2.2.2
sudo gem install jekyll -v 0.11.0&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To see building errors, inactivate the &lt;code&gt;auto&lt;/code&gt; mode, by editing your &lt;code&gt;_config.yml&lt;/code&gt; as:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;auto: false&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Always run the jekyll server with the &lt;code&gt;--safe&lt;/code&gt; option&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ jekyll --server --safe&lt;/code&gt;&lt;/pre&gt;</content>
 </entry>
 
 
</feed>