Sphinx Note Block in list below code block?

I have a problem. If I want to put the block of notes in the list under the block of code, it will be included in the block of code. If I canceled it, the list number will restart after the note. So basically, I need:

Fixed list example ------------------ #. First do spam #. Then do ``eggs``:: some_code_stuff() .. note:: Nobody expects the Spanish Inquisistion #. Then do spam and ``eggs``. 

The list should continue from 3 after the block of notes. But at present, the ..note block is only displayed as if it were code (because of the code block before). Any ideas?

bit related to: Sphinx: resume list numbering after the comment section

+2
source share
1 answer

So what works:

 Fixed list example ------------------ #. First do spam #. Then do ``eggs``: .. code-block:: python some_code_stuff() .. note:: Nobody expects the Spanish Inquisistion #. Then do spam and ``eggs``. 
+3
source

Source: https://habr.com/ru/post/984455/


All Articles