ENH: improved doc-link resolver