def main(proj_data,proj_docs,md):
if proj_data['<STR_LIT>']: proj_data['<STR_LIT>'] = '<STR_LIT:.>'<EOL>project = ford.fortran_project.Project(proj_data)<EOL>if len(project.files) < <NUM_LIT:1>:<EOL><INDENT>print("<STR_LIT>")<EOL>sys.exit(<NUM_LIT:1>)        <EOL><DEDENT>if proj_data['<STR_LIT>']:<EOL><INDENT>project.markdown(md,'<STR_LIT:..>')<EOL><DEDENT>else:<EOL><INDENT>project.markdown(md,proj_data['<STR_LIT>'])<EOL><DEDENT>project.correlate()<EOL>if proj_data['<STR_LIT>']:<EOL><INDENT>project.make_links('<STR_LIT:..>')<EOL><DEDENT>else:<EOL><INDENT>project.make_links(proj_data['<STR_LIT>'])<EOL><DEDENT>if proj_data['<STR_LIT>']: ford.sourceform.set_base_url('<STR_LIT:.>')<EOL>if '<STR_LIT>' in proj_data:<EOL><INDENT>proj_data['<STR_LIT>'] = md.convert(proj_data['<STR_LIT>'])<EOL>proj_data['<STR_LIT>'] = ford.utils.sub_links(ford.utils.sub_macros(ford.utils.sub_notes(proj_data['<STR_LIT>']),proj_data['<STR_LIT>']),project)<EOL><DEDENT>if '<STR_LIT>' in proj_data:<EOL><INDENT>proj_data['<STR_LIT>'] = md.convert(proj_data['<STR_LIT>'])<EOL>proj_data['<STR_LIT>'] = ford.utils.sub_links(ford.utils.sub_macros(ford.utils.sub_notes(proj_data['<STR_LIT>']),proj_data['<STR_LIT>']),project)<EOL><DEDENT>proj_docs_ = ford.utils.sub_links(ford.utils.sub_macros(ford.utils.sub_notes(proj_docs),proj_data['<STR_LIT>']),project)<EOL>if '<STR_LIT>' in proj_data:<EOL><INDENT>page_tree = ford.pagetree.get_page_tree(os.path.normpath(proj_data['<STR_LIT>']),md)<EOL>print()<EOL><DEDENT>else:<EOL><INDENT>page_tree = None<EOL><DEDENT>proj_data['<STR_LIT>'] = page_tree<EOL>docs = ford.output.Documentation(proj_data,proj_docs_,project,page_tree)<EOL>docs.writeout()<EOL>print('<STR_LIT>')<EOL>return <NUM_LIT:0><EOL>
Main driver of FORD.