django-rest-framework-docs
django-rest-framework-docs copied to clipboard
Support restructuredtext
I have the docstrings in reStructuredText format in my project. So I went ahead and added support for rst to DRFDocs. Thought this might be helpful to the community, and hence requesting a pull.
Change summary:
- Added a setting 'DOCSTRING_FORMAT'
- Updated settings documentation with 'DOCSTRING_FORMAT'
- Updated ApiEndpoint get_docstring() to format the docstring if the 'DOCSTRING_FORMAT' is 'rst'