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
  • 48,958
  • 13
  • 128
  • 248
WBAR
  • 4,924
  • 7
  • 47
  • 81

0 Answers0