This method uses Liquid tags and works when published to Github Pages. It doesn't work in Github's viewer when browsing the repo.
{{ "{% highlight html linenos "}}%}
<div>this is some preformatted code</div>
{{ "{% endhighlight "}}%}
# /etc/bash.bashrc | |
# | |
# NOTE: If on Arch Linux, you can check out the following package | |
# in the AUR: https://aur.archlinux.org/packages/gentoo-bashrc/ | |
# | |
# This file is sourced by all *interactive* bash shells on startup, | |
# including some apparently interactive shells such as scp and rcp | |
# that can't tolerate any output. So make sure this doesn't display | |
# anything or bad things will happen ! |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
if [ -f /etc/bash_completion ]; then | |
. /etc/bash_completion | |
fi | |
xhost +local:root > /dev/null 2>&1 |
# Add the following under the other repo's in | |
# in your /etc/pacman.config file | |
[blueshell] | |
SigLevel = Optional TrustAll | |
Server = http://arch.netrunner-os.com/$arch |
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# Uncomment the following line if you don't like systemctl's auto-paging feature: | |
# export SYSTEMD_PAGER= |
sudo pacman-key -r CB6CDD17 | |
sudo pacman-key --lsign-key CB6CDD17 |
#################################################### | |
########### My Bash Extras ######################## | |
#################################################### | |
##### Add to the bottom of the .bashrc | |
BROWSER=/usr/bin/firefox | |
EDITOR=/usr/bin/vim | |
export PATH="$PATH:$HOME/.local/bin" |
# change [description] to whatever you want your key to be described as | |
cat /path/to/public_key | ssh root@yourdokkuinstance.com "sudo sshcommand acl-add dokku [description]" |
Note: this was forked from Balupton, because it's awesome. :-)
This guide will walk you through how you can use a GitHub repository to house your wiki content, have DocPad render it, and automatically update on changes. It's also really nice as we get to benefit from the github project workflow for our wiki, that is issues, pull requests, etc.
We use this workflow heavily by linking the DocPad Website and the DocPad Documentation repositories allowing us to have users edit and submit pull requests for improvements to our documentation, and once merged, the website regenerates automatically.
module Jekyll | |
class TagCloudTag < Liquid::Tag | |
safe = true | |
def initialize(tag_name, text, tokens) | |
super | |
end | |
def render(context) | |
html = "" |