django-rest-framework-docs icon indicating copy to clipboard operation
django-rest-framework-docs copied to clipboard

Support restructuredtext

Open prijip opened this issue 9 years ago • 0 comments

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'

prijip avatar Jul 22 '16 16:07 prijip