Skip to content

Commit

Permalink
Merge 79397ad into 7849e71
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPerrot committed May 6, 2015
2 parents 7849e71 + 79397ad commit 24b9a83
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions mkdocs/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def configure_logging(is_verbose=False):
"on any warnings.")
theme_help = "The theme to use when building your documentation."
theme_choices = utils.get_theme_names()
site_dir_help = ("The directory where the output HTML and other files are created."
" Overrides the value from the config file.")


@click.group()
Expand Down Expand Up @@ -66,12 +68,14 @@ def serve_command(dev_addr, config_file, strict, theme):
@click.option('--config-file', type=click.File('rb'), help=config_file_help)
@click.option('--strict', is_flag=True, help=strict_help)
@click.option('--theme', type=click.Choice(theme_choices), help=theme_help)
def build_command(clean, config_file, strict, theme):
@click.option('--site-dir', type=click.Path(), help=site_dir_help)
def build_command(clean, config_file, strict, theme, site_dir):
"""Build the MkDocs documentation"""
build.build(load_config(
config_file=config_file,
strict=strict,
theme=theme
theme=theme,
site_dir=site_dir
), clean_site_dir=clean)


Expand Down

0 comments on commit 24b9a83

Please sign in to comment.