|
|
@@ -70,7 +70,7 @@ class Engine(Application): |
|
|
|
help='The configuration used to generate the site') |
|
|
|
@store('-d', '--deploy-path', dest='deploy', default=None, |
|
|
|
help='Where should the site be generated?') |
|
|
|
@true('-i', '--incremental', dest='incremental', default=False, |
|
|
|
@true('-r', '--regen', dest='regen', default=False, |
|
|
|
help='Only process changed files') |
|
|
|
def gen(self, args): |
|
|
|
""" |
|
|
@@ -81,7 +81,12 @@ class Engine(Application): |
|
|
|
site = self.make_site(args.sitepath, args.config, args.deploy) |
|
|
|
from hyde.generator import Generator |
|
|
|
gen = Generator(site) |
|
|
|
gen.generate_all(incremental=args.incremental) |
|
|
|
incremental = True |
|
|
|
if args.regen: |
|
|
|
logger.info("Regenerating the site...") |
|
|
|
incremental = False |
|
|
|
|
|
|
|
gen.generate_all(incremental=incremental) |
|
|
|
|
|
|
|
@subcommand('serve', help='Serve the website') |
|
|
|
@store('-a', '--address', default='localhost', dest='address', |
|
|
|