Issue #6617 resolved

README.rst on overview page does not display code blocks (BB-7801)

Yaroslav Kliuiev
created an issue

I have added code block to readme.rst:

.. code:: python

  class Movie(ImagedModel, DummyUrlMixin):
      DETAILS_TEMPLATE = "movies/movie_details.html"

Can it be at least be displayed like preformatted text? Or better docutils should be updated to version >=0.9 so that it's rendered in color (see attachment)

Comments (9)

  1. Erik van Zijst staff

    I cannot see any class Movie declaration in your readme file.

    As for the formatting; we are indeed on a pretty old version of docutils and so I've raised an internal issue to get that updated.

  2. Erik van Zijst staff

    Got it. We've got Pygments bound under the sourcecode directive, not code (turns out our online documentation was incorrect too; which I've just updated).

    Just change code to sourcecode and it should work.

  3. Log in to comment