def sub_macros(string,base_url):
macros = { '<STR_LIT>': base_url,<EOL>'<STR_LIT>': os.path.join(base_url,'<STR_LIT>'),<EOL>'<STR_LIT>': os.path.join(base_url,'<STR_LIT>')<EOL>}<EOL>for key, val in macros.items():<EOL><INDENT>string = string.replace(key,val)<EOL><DEDENT>return string<EOL>
Replaces macros in documentation with their appropriate values. These macros
are used for things like providing URLs.