Skip to content

Commit

Permalink
Merge pull request #547 from rahkumar651991/provider_documentation_fix
Browse files Browse the repository at this point in the history
Removing provider from the readthedocs for collection
  • Loading branch information
Nitin Kr authored Apr 16, 2021
2 parents e37c183 + ad4f6f3 commit 456475f
Show file tree
Hide file tree
Showing 16 changed files with 6,874 additions and 24 deletions.
8 changes: 4 additions & 4 deletions ansible_collections/juniper/device/docs/ansible2rst.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,8 @@ def get_docstring(filename, verbose=False):
data = read_docstring(filename, verbose=verbose)

# add fragments to documentation
if data.get('doc', False):
add_fragments(data['doc'], filename)
# if data.get('doc', False):
# add_fragments(data['doc'], filename)

return data['doc'], data['plainexamples'], data['returndocs'], data['metadata']

Expand Down Expand Up @@ -392,7 +392,7 @@ def process_module(fname, template, outputname, aliases=None):

# here is where we build the table of contents...
text = template.render(doc)
write_data(text, outputname, module_name, OUTPUTDIR)
# write_data(text, outputname, module_name, OUTPUTDIR)

#####################################################################################

Expand All @@ -410,7 +410,7 @@ def main():
index_file_path = os.path.join(OUTPUTDIR, "index.rst")
index_file = open(index_file_path, "w")
index_file.write('juniper.device Ansible Modules\n')
index_file.write('=================================================\n')
index_file.write('==============================\n')
index_file.write('\n')
index_file.write('Contents:\n')
index_file.write('\n')
Expand Down
568 changes: 568 additions & 0 deletions ansible_collections/juniper/device/docs/command.rst

Large diffs are not rendered by default.

1,020 changes: 1,020 additions & 0 deletions ansible_collections/juniper/device/docs/config.rst

Large diffs are not rendered by default.

511 changes: 511 additions & 0 deletions ansible_collections/juniper/device/docs/facts.rst

Large diffs are not rendered by default.

499 changes: 499 additions & 0 deletions ansible_collections/juniper/device/docs/jsnapy.rst

Large diffs are not rendered by default.

Loading

0 comments on commit 456475f

Please sign in to comment.