def builder(): log.info("Building documentation...") config = load_config( config_file=config_file, dev_addr=dev_addr, strict=strict, theme=theme, ) config['site_dir'] = tempdir build(config, live_server=True) return config
def json_command(clean, config_file, strict, site_dir): """Build to JSON""" try: build.build(load_config( config_file=config_file, strict=strict, site_dir=site_dir ), dump_json=True, clean_site_dir=clean) except exceptions.ConfigurationError as e: # Avoid ugly, unhelpful traceback raise SystemExit('\n' + str(e))
def build_command(clean, config_file, strict, theme, site_dir): """Build the OpenBazaar documentation""" try: build.build(load_config( config_file=config_file, strict=strict, theme=theme, site_dir=site_dir ), clean_site_dir=clean) except exceptions.ConfigurationError as e: # Avoid ugly, unhelpful traceback raise SystemExit('\n' + str(e))