# Documentation in custom collection

**URL:** <https://forum.ansible.com/t/documentation-in-custom-collection/35792>\
**Category:** Ansible Project\
**Created:** [September 28, 2021, 11:55am UTC](https://forum.ansible.com/t/documentation-in-custom-collection/35792 "2021-09-28T11:55:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [September 28, 2021, 11:55am UTC](https://forum.ansible.com/t/documentation-in-custom-collection/35792/1 "2021-09-28T11:55:16Z")

</div>

Hi,

I have created a new network module collection using resource module builder which has “docs” as one of the directories, when referenced cisco ios collection, can see some network module related “.rst” files that were present in the docs directory.  
Can you please guide me how to create these .rst files for the custom collections(modules in specific) ?

Hope will get an answer as soon as possible, thanks in advance.

Thanks,  
Nitesh

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [September 29, 2021, 10:29am UTC](https://forum.ansible.com/t/documentation-in-custom-collection/35792/2 "2021-09-29T10:29:53Z")

</div>

Can anybody please answer my query regarding the doc section of collection in ansible NRM?

---

<div class="post-metadata">

**Author:** ![Nilashish\_Chakrabort](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@Nilashish\_Chakrabort](https://forum.ansible.com/u/Nilashish_Chakrabort)\
**Post date:** [October 1, 2021, 6:51am UTC](https://forum.ansible.com/t/documentation-in-custom-collection/35792/3 "2021-10-01T06:51:35Z")

</div>

Hi Nitesh,

Those RST files are generated by the following tool: [https://github.com/ansible-network/collection\_prep](https://github.com/ansible-network/collection_prep).

Thanks.

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [October 1, 2021, 7:02am UTC](https://forum.ansible.com/t/documentation-in-custom-collection/35792/4 "2021-10-01T07:02:31Z")

</div>

Hi,

As I am very new to this, can you please tell me what is the exact procedure?  
I have modules inside the plugin folder but the doc folder doesn’t have anything, do i need to keep the modules Documentation itself in yaml format inside the doc folder or do I need to run this collection prep on the collection directory itself?

Thanks,  
Nitesh

---

<div class="post-metadata">

**Author:** ![Nilashish\_Chakrabort](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@Nilashish\_Chakrabort](https://forum.ansible.com/u/Nilashish_Chakrabort)\
**Post date:** [October 2, 2021, 5:05am UTC](https://forum.ansible.com/t/documentation-in-custom-collection/35792/5 "2021-10-02T05:05:35Z")

</div>

Hello Nitesh,

Please go through the [Doc Generator](https://github.com/ansible-network/collection_prep#doc-generator) section in the README of the collection\_prep tool. It has been explained there.

Thanks.

---

<div class="post-metadata">

**Author:** ![nitesh\_shet](https://avatars.discourse-cdn.com/v4/letter/n/7ea924/32.png) [@nitesh\_shet](https://forum.ansible.com/u/nitesh_shet)\
**Post date:** [October 2, 2021, 5:10am UTC](https://forum.ansible.com/t/documentation-in-custom-collection/35792/6 "2021-10-02T05:10:19Z")

</div>

Thank you for your response
