Mercurial > piecrust2
changeset 199:aaf08277b96d
bake: Remove `--portable` option until it's (maybe) implemented.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 13 Jan 2015 20:41:44 -0800 |
parents | 1d44d8bd93e2 |
children | 76e459d48c43 |
files | piecrust/baking/baker.py piecrust/commands/builtin/baking.py |
diffstat | 2 files changed, 1 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/piecrust/baking/baker.py Tue Jan 13 20:40:22 2015 -0800 +++ b/piecrust/baking/baker.py Tue Jan 13 20:41:44 2015 -0800 @@ -18,13 +18,12 @@ class Baker(object): - def __init__(self, app, out_dir, force=False, portable=False, + def __init__(self, app, out_dir, force=False, no_assets=False, num_workers=4): assert app and out_dir self.app = app self.out_dir = out_dir self.force = force - self.portable = portable self.no_assets = no_assets self.num_workers = num_workers
--- a/piecrust/commands/builtin/baking.py Tue Jan 13 20:40:22 2015 -0800 +++ b/piecrust/commands/builtin/baking.py Tue Jan 13 20:41:44 2015 -0800 @@ -32,20 +32,11 @@ help="Force re-baking the entire website.", action='store_true') parser.add_argument( - '--portable', - help="Uses relative paths for all URLs.", - action='store_true') - parser.add_argument( '--no-assets', help="Don't process assets (only pages).", action='store_true') def run(self, ctx): - if ctx.args.portable: - # Disable pretty URLs because there's likely not going to be - # a web server to handle serving default documents. - ctx.app.config.set('site/pretty_urls', False) - out_dir = (ctx.args.output or os.path.join(ctx.app.root_dir, '_counter')) @@ -74,7 +65,6 @@ baker = Baker( ctx.app, out_dir, force=ctx.args.force, - portable=ctx.args.portable, no_assets=ctx.args.no_assets, num_workers=num_workers) baker.bake()