I’m trying to write some documentation using sphinx (and rST), but I would like keep some parts close to the code so I am thinking of including some comments from the code to the sphinx documentation. This can be done using the include
directive with the start-after
and end-before
option. It works pretty well but the downside is that included portions (parts of Haskell comment) have to be written in rST format instead of Haddock.
As someone experience with mixing sphinx and Haddock ?