def get_docs_url(path_name, version=None):
 return urljoin(DOCS_BASE, get_rtd_version(version=version), path_name)

def get_docs_url ( path_name , version = None ) : return urljoin ( DOCS_BASE , get_rtd_version ( version = version ) , path_name )
returns the absolute url to path_name in the rtd docs .