Skip to content

Commit

Permalink
Updates to docs build for new antsibull CLI
Browse files Browse the repository at this point in the history
* --ansible-base-cache renamed to --ansible-base-source
* _acd_version in the .deps file has been renamed to _ansible_version
  • Loading branch information
abadger committed Aug 14, 2020
1 parent e507c12 commit 22d2c97
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -44,16 +44,16 @@ def generate_base_docs(args):
#
modified_deps_file = os.path.join(tmp_dir, 'ansible.deps')

# The _acd_version doesn't matter
deps_file_contents = {'_acd_version': ansible_base__version__,
# The _ansible_version doesn't matter since we're only building docs for base
deps_file_contents = {'_ansible_version': ansible_base__version__,
'_ansible_base_version': ansible_base__version__}

with open(modified_deps_file, 'w') as f:
f.write(yaml.dump(deps_file_contents))

# Generate the plugin rst
return antsibull_docs.run(['antsibull-docs', 'stable', '--deps-file', modified_deps_file,
'--ansible-base-cache', str(args.top_dir),
'--ansible-base-source', str(args.top_dir),
'--dest-dir', args.output_dir])

# If we make this more than just a driver for antsibull:
Expand Down Expand Up @@ -112,7 +112,7 @@ def generate_full_docs(args):

# Generate the plugin rst
return antsibull_docs.run(['antsibull-docs', 'stable', '--deps-file', modified_deps_file,
'--ansible-base-cache', str(args.top_dir),
'--ansible-base-source', str(args.top_dir),
'--dest-dir', args.output_dir])

# If we make this more than just a driver for antsibull:
Expand Down

0 comments on commit 22d2c97

Please sign in to comment.