0

I'm using Sphinx to auto-document Django based models with https://djangosnippets.org/snippets/2533/.

The problem I have is that classes as listed one by one. Is there any way to add a subsection before each class?

For example:

<obj._meta.db_table>
---------------------

class models.Actor(*args, **kwargs)
   parameters:...


<obj._meta.db_table>
---------------------

class models.Dog(*args, **kwargs)
   parameters:...

because I receiving something like that:

class models.Actor(*args, **kwargs)
   parameters:...

class models.Dog(*args, **kwargs)
   parameters:...
mzjn
  • 45,711
  • 11
  • 120
  • 232
WBAR
  • 4,695
  • 7
  • 44
  • 78

0 Answers0