comparison garcon/documentation.py @ 990:22cf13b86cc3

cm: Upgrade Garcon tasks to the latest PyInvoke version.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 19 Nov 2017 14:29:52 -0800
parents d4b9d86d3d6f
children bd6cc78666b7
comparison
equal deleted inserted replaced
989:8adc27285d93 990:22cf13b86cc3
14 "the files at the end.", 14 "the files at the end.",
15 'root_url': "Set the docs site root URL to this if needed.", 15 'root_url': "Set the docs site root URL to this if needed.",
16 'venv_dir': "The directory of the virtual environment to use to run " 16 'venv_dir': "The directory of the virtual environment to use to run "
17 "PieCrust." 17 "PieCrust."
18 }) 18 })
19 def gendocs(tmp_dir=None, out_dir=None, root_url=None, venv_dir=None): 19 def gendocs(ctx, tmp_dir=None, out_dir=None, root_url=None, venv_dir=None):
20 base_dir = os.path.abspath( 20 base_dir = os.path.abspath(
21 os.path.join(os.path.dirname(__file__), '..')) 21 os.path.join(os.path.dirname(__file__), '..'))
22 os.chdir(base_dir) 22 os.chdir(base_dir)
23 23
24 if not tmp_dir: 24 if not tmp_dir: