@cli.command(name=u'json')
@click.option(u'-c', u'--clean/--dirty', is_flag=True, default=True, help=clean_help)
@click.option(u'-f', u'--config-file', type=click.File(u'rb'), help=config_help)
@click.option(u'-s', u'--strict', is_flag=True, help=strict_help)
@click.option(u'-d', u'--site-dir', type=click.Path(), help=site_dir_help)
@common_options
def json_command(clean, config_file, strict, site_dir):
 log.warning(u'The json command is deprecated and will be removed in a future MkDocs release. For details on updating: http://www.mkdocs.org/about/release-notes/')
 strict = (strict or None)
 try:
  build.build(config.load_config(config_file=config_file, strict=strict, site_dir=site_dir), dump_json=True, dirty=(not clean))
 except exceptions.ConfigurationError as e:
  raise SystemExit((u'\n' + str(e)))

@ cli . command ( name = u'json' ) @ click . option ( u'-c' , u'--clean/--dirty' , is_flag = True , default = True , help = clean_help ) @ click . option ( u'-f' , u'--config-file' , type = click . File ( u'rb' ) , help = config_help ) @ click . option ( u'-s' , u'--strict' , is_flag = True , help = strict_help ) @ click . option ( u'-d' , u'--site-dir' , type = click . Path ( ) , help = site_dir_help ) @ common_options def json_command ( clean , config_file , strict , site_dir ) : log . warning ( u'The json command is deprecated and will be removed in a future MkDocs release. For details on updating: http://www.mkdocs.org/about/release-notes/' ) strict = ( strict or None ) try : build . build ( config . load_config ( config_file = config_file , strict = strict , site_dir = site_dir ) , dump_json = True , dirty = ( not clean ) ) except exceptions . ConfigurationError as e : raise SystemExit ( ( u'\n' + str ( e ) ) )
build the mkdocs documentation to json files rather than building your documentation to html pages .