def main(argv):
    args = gc.parse_args(sys.argv)
    data_config_filename = args.data_config
    geoserver = args.geoserver
    sciencebase = args.sciencebase_url

    context = {
        u'root_url': u'' + args.root_url,
        u'last_modified': u'' + datetime.datetime.now().strftime('%Y-%m-%d')
    }
    data_config = gc.get_structured_data_config(data_config_filename)
    data = gc.get_nwc_data(geoserver, sciencebase, data_config)
    generate_skeleton(data, args.destination_dir, data_config, context)
def main(argv):

    args = gc.parse_args(sys.argv)
    geoserver = args.geoserver
    sciencebase = args.sciencebase_url
    
    
    context = {
               'root_url' : args.root_url,
               'last_modified' : datetime.datetime.now().strftime('%Y-%m-%d')
               }
    data = gc.get_nwc_data(geoserver, sciencebase)

    generate_sitemap(data, args.destination_dir, context)
def main(argv):

    args = gc.parse_args(sys.argv)
    geoserver = args.geoserver
    sciencebase = args.sciencebase_url
    destination_dir = args.destination_dir
    gc.make_sure_path_exists(destination_dir)
    
    context = {
               'root_url' : args.root_url,
               'last_modified' : datetime.datetime.now().strftime('%Y-%m-%d')
               }
    data = gc.get_nwc_data(geoserver, sciencebase)

    generate_sitemap.generate_sitemap(data, os.path.join(destination_dir, 'sitemap'), context)
    generate_skeleton.generate_skeleton(data, os.path.join(destination_dir, 'skeleton'), context)