How to convert dokuwiki links into markdown using regex

While I was always aware of the fact that regular expressions (regex) are a very powerful search-and-replace tool, I hardly ever used them in practice. For my humble needs, the built-in search-and-replace tool of my favorite text editor Geany is more than sufficient. From time to time, when I run into complex cases, I usually write a small Python script.

This morning, while converting old Dokuwiki-shownotes pages from my podcast into markdown format, I finally gave in: I wanted to solve a task using regular expressions.

The task was already solved inside a larger hand-written python script of mine, but I thought it would be nice to have a singular regex string that I can copy/paste into the search-replace dialog of Geany.

The task is this one:

convert a hyperlink from dokuwiki's format into markdown format.


source: (dokuwiki format) [[|Geany text editor]]

desired result (markdown format): [Geany text editor](

Read more…

How to config nikoa for multi-lingual websites

I love the python programming language, and i really like static site generators, but nikola, the static site generator writtin in Python, was not love at first sight for me.

While i liked the concept of nikola, the clear-written, good looking documentation (written -of course- with nikola) and the apparently active community behind it, i struggled to fully understand the concept of how to make a bi-lingual (or multi-lingual) homepage with it.

In the end i managed it more by luck and intuition than by understanding, so I provide my findings with the hope others may struggle less long than I did to get their desired ouput.

use case: homepage with blog

I wanted a homepage with one main language (German) and some (but not all) pages translated into English. I also wanted a blog where some postings are in German, some are in English, and some -but not all- postings are translated in both languages.

first steps

Heading th the nikola homepage, i followed the install instructions and the I want a homepage, not a blog article.

in the end, my 'pages' folder

Contents © 2021 Horst JENS - This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License Creative Commons License.