Skip to content

Commit

Permalink
Allow docs-build to use a local ansible-build-data checkout.
Browse files Browse the repository at this point in the history
This is useful for testing the effects on docs of changing what
collections are in a version of ansible.  ansible-build-data can be
cloned locally, modified, and then build-ansible.py docs-build can be
told to use the local checkout instead of the canonical one on github.
  • Loading branch information
abadger committed Jul 9, 2021
1 parent dc25197 commit a901ff2
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ def generate_full_docs(args):
# this would be the place to do it.

build_data_working = os.path.join(tmp_dir, 'ansible-build-data')
if args.ansible_build_data:
build_data_working = args.ansible_build_data

ansible_version = args.ansible_version
if ansible_version is None:
Expand Down Expand Up @@ -211,6 +213,10 @@ def init_parser(cls, add_parser):
dest='ansible_version', default=None,
help='The version of the ansible package to make documentation for.'
' This only makes sense when used with full.')
parser.add_argument('--ansible-build-data', action='store',
dest='ansible_build_data', default=None,
help='A checkout of the ansible-build-data repo. Useful for'
' debugging.')

@staticmethod
def main(args):
Expand Down

0 comments on commit a901ff2

Please sign in to comment.