@cli.command(name=u'gh-deploy')
@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'-m', u'--message', help=commit_message_help)
@click.option(u'-b', u'--remote-branch', help=remote_branch_help)
@click.option(u'-r', u'--remote-name', help=remote_name_help)
@click.option(u'--force', is_flag=True, help=force_help)
@common_options
def gh_deploy_command(config_file, clean, message, remote_branch, remote_name, force):
 try:
  cfg = config.load_config(config_file=config_file, remote_branch=remote_branch, remote_name=remote_name)
  build.build(cfg, dirty=(not clean))
  gh_deploy.gh_deploy(cfg, message=message, force=force)
 except exceptions.ConfigurationError as e:
  raise SystemExit((u'\n' + str(e)))

@ cli . command ( name = u'gh-deploy' ) @ 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'-m' , u'--message' , help = commit_message_help ) @ click . option ( u'-b' , u'--remote-branch' , help = remote_branch_help ) @ click . option ( u'-r' , u'--remote-name' , help = remote_name_help ) @ click . option ( u'--force' , is_flag = True , help = force_help ) @ common_options def gh_deploy_command ( config_file , clean , message , remote_branch , remote_name , force ) : try : cfg = config . load_config ( config_file = config_file , remote_branch = remote_branch , remote_name = remote_name ) build . build ( cfg , dirty = ( not clean ) ) gh_deploy . gh_deploy ( cfg , message = message , force = force ) except exceptions . ConfigurationError as e : raise SystemExit ( ( u'\n' + str ( e ) ) )
deploy your documentation to github pages .