# HG changeset patch # User Ludovic Chabant # Date 1421210504 28800 # Node ID aaf08277b96d0b88b8cc9cb8ba3ac01aa7e83135 # Parent 1d44d8bd93e2488fd0bf4125c97cf29fc586ceec bake: Remove `--portable` option until it's (maybe) implemented. diff -r 1d44d8bd93e2 -r aaf08277b96d piecrust/baking/baker.py --- 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 diff -r 1d44d8bd93e2 -r aaf08277b96d piecrust/commands/builtin/baking.py --- 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()