-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make deploy directory required argument #157
Changes from 1 commit
4a82e33
da5b224
eb68c83
d4c11f0
d1ee9ba
e457414
4c60ff6
bd57a51
ace9bf7
e88327c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,9 +60,8 @@ def get_parser(): | |
deploy_parser.add_argument('--built-docs', default=None, | ||
help="""Location of the built html documentation to be deployed to | ||
gh-pages. If not specified, Doctr will try to automatically detect build location""") | ||
deploy_parser.add_argument('--gh-pages-docs', default='docs', | ||
help="""Directory to deploy the html documentation to on gh-pages. The | ||
default is %(default)r.""") | ||
deploy_parser.add_argument('deploy_directory', type=str, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe we could keep and deprecate this option for backwards compatibility. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was thinking of that, but I'm not sure how to go about having a default argument not be required if a certain non-default option is passed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Does argparse let you set a default for positional arguments? You'd have to do the flag logic manually (use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
help="""Directory to deploy the html documentation to on gh-pages.""") | ||
deploy_parser.add_argument('--tmp-dir', default=None, | ||
help=argparse.SUPPRESS) | ||
deploy_parser.add_argument('--deploy-repo', default=None, help="""Repo to | ||
|
@@ -251,7 +250,7 @@ def configure(args, parser): | |
- set -e | ||
- # Command to build your docs | ||
- pip install doctr | ||
- doctr deploy{options} | ||
- doctr deploy{options} {deploy_directory} | ||
|
||
to the docs build of your .travis.yml. The 'set -e' prevents doctr from | ||
running when the docs build fails. Use the 'script' section so that if | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be reworded a bit. The default used to be
docs
, but now there is no default. Maybe something like