Building this Website (7. plugins)

Tuesday, May 5, 2015

This is a series of posts which technically describes how Not Even Odd is built. It is primarily meant as a guide for static website creation using TiddlyWiki.

TODO: this is draft ...

Here are the plugins I use in TiddlyWiki:

Syndication Feed

TODO: I want to provide an ATOM or RSS feed to this site.

Highlight.js

I want to display snippets of computer code with syntax highlighting. This is done with the official TiddlyWiki highlight plugin (based on highlight.js) which is included in the server edition of TiddlyWiki. Example of syntax highlighting:

int is_prime(int n) {
    if (n%2 == 0) return n==2;
    if (n%3 == 0) return n==3;
    int d=5;
    while(d*d <= n){
        if (n%d == 0) return 0;
        d+=2;
        if (n%d == 0) return 0;
        d+=4;
    }
    return 1;
}

KaTeX

I want to display mathematics on this site. MathML is a part of HTML5 but isn't supported by all browsers (only available in Firefox and Safari as of May 2015). Therefore I use the official TiddlyWiki plugin for KateX (KaTeX is a free javascript library for mathematics typesetting with LaTeX syntax). It allows to beautifully display formulas such as:


ζ(s)=n=1ns=1Γ(s)0xs1ex1dx\displaystyle \zeta(s) = \sum_{n=1}^\infty n^{-s} = \frac{1}{\Gamma(s)} \int_{0}^{\infty} \frac{x ^ {s-1}}{e ^ x - 1} dx


previous: external files
next: hosting with github

Not Even Odd

Musings and mumblings of a random nerd

Last 10 Posts:

Free Software
Widgets
Flow
Building this Website (7. plugins)
Building this Website (6. external files)
Building this Website (5. tiddlers' date)
Building this Website (4. tags)
Building this Website (3. navigation)
Building this Website (2. template)
Building this Website (1. content selection)

...

Tags
see all tags
    All Posts
    (alphabetically | chronologically)

Follow:          ...

Site Policy