added more widely-portable docs base url construction