Reorganize doc for i18n

Also adds a function to generate documentation links based on tokens defined in a config file.

@mhoeber