This is a new version of ksyslabs.org
-
Install nanoc and dependencies:
sudo gem install nanoc kramdown builder adsf
-
git clone <..>
-
add new page:
nanoc ci new_page //new page will be create in /content/
-
Modify content/new_page.html.
-
Compile:
nanoc compile
The output is a set of static files.
-
Run:
nanoc view
You will see pages at http://localhost:3000/
-
Submit:
git add new_page.html
-
Then submit a pull requests
Language hightligting:
printf("hello wrld\n");
{:.language-c}
language bash does not supported
Put your data into the <pre> tag. To hightligt a line, use
<label style="color:blue">text</label>
To convert diff to html, it is convenient to use regex in VIM
76,102s/^-\(.*\)/\<label style="color:red"\>\1\<\/label\>/g
76,102s/^+\(.*\)/\<label style="color:blue"\>\1\<\/label\>/g