introduce new theme function to allow full creation of documentation lin...

...ks: buildDocLinkToKey()

@karlitschek @schiesbn @jancborchardt