Captions numbering support

From: Mauro Carvalho Chehab
Date: Fri Jul 01 2016 - 14:25:23 EST


Markus/Jani,

I'm starting this as a new thread, as it is not directly related to the
other subjects.

I'm fixing right now the captions that got missed during the docbook
conversion. See for example:

https://git.linuxtv.org/mchehab/experimental.git/commit/?h=docs-next&id=69f9771c659958ecc7c8ba26e85c2f61f821b022
https://git.linuxtv.org/mchehab/experimental.git/commit/?h=docs-next&id=56bd374200a15e8888d94fd8410eea916bffea87

As I mentioned before, I'm needing to re-numerate by hand the examples.

I'm wandering if are there any way with Sphinx to use the section
numbering. If so, then we could number the examples as:

1.4 section title
...
1.4.1 Example foo
1.4.2 Example bar
...
1.6 section title 2
...
1.6.1 Exampel foobar

With would make a way easier to keep handling it, while we don't
have ":numbered:" support for the code-block.

Do you know if are there anything like that in Sphinx?

Regards,
Mauro