blob: 2d344899f4582aa55cea2f606e3db4ffbe39d1f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
"""
Build the static site
"""
import click
from app.site.builder import build_site, build_file
@click.command()
@click.option('-i', '--input', 'input_file', required=False,
help='File to generate')
@click.pass_context
def cli(ctx, input_file):
"""Build the static site
"""
if input_file:
print('Building {}'.format(input_file))
build_file(input_file)
else:
print('Building the site...')
build_site()
|