Skip to content
This repository has been archived by the owner on Jul 27, 2024. It is now read-only.

cbhl/old.cbhl.github.com

Repository files navigation

cbhl.github.com

Jekyll

sudo apt-get install ruby1.8-dev
gem install jekyll
sudo apt-get install blahtexml texlive-binaries python-pygments

See [mojombo/jekyll/wiki/Install][https://github.com/mojombo/jekyll/wiki/Install] for more details.

Migration

Maruku doesn't like SyntaxHighlighter syntax, i.e. "[bash]". It will need to be replaced with Jekyll-style highlighting tags:

$ sed -in 's/\[bash]/\
{% highlight bash %}\
/g' *.markdown
$ sed -in 's/\[\/bash]/\
{% endhighlight %}\
/g' *.markdown
$ sed -in 's/\[text]/\
{% highlight text %}\
/g' *.markdown
$ sed -in 's/\[\/text]/\
{% endhighlight %}\
/g' *.markdown
$ sed -in 's/\[shell]/\
{% highlight shell %}\
/g' *.markdown
$ sed -in 's/\[\/shell]/\
{% endhighlight %}\
/g' *.markdown

Also watch out for [code lang="..."] tags.

Further Reading

About

Because I'm getting too lazy for WordPress.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published