<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 27, 2015 at 1:43 PM, Christian Berendt <span dir="ltr"><<a href="mailto:christian@berendt.io" target="_blank">christian@berendt.io</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 07/27/2015 04:01 PM, Karen Bradshaw wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Try to *not* use auto numbering with .. only:: directives.<br>
</blockquote>
<br></span>
Hmm. How to solve the following case without duplicating the content? (I have a similiar case for the Swift section.)<br>
<br>
#.<br>
<br>
.. only:: rdo<br>
<br>
   2. foo<br>
<br>
.. only:: rdo or ubuntu<br>
<br>
   3. bar<br>
<br>
      more content...<br>
<br>
4. blar<br>
<br>
   a lot of more content<br>
<br>
5. blub<br>
<br>
   and mor content<br>
<br>
Not being able to use auto numbering we have to duplicate the whole content of the content inside .. only:: rdo or ubuntu because the numbering for rdo is 1., 2., 3., 4., 5. and for ubuntu it is 1., 2., 3., 4. So we also have to duplicate all the content after the second usage of the only directive (4. in this simple example).<br>
<br>
Is there a pending bug report for Sphinx to fix the auto numbering feature when using the only feature? I really do not like to manually number lists. This will result in a lot of overhead (renumbering when adding a new entry to a list, ..), unmaintable documents, and wrong numbered lists.</blockquote><div><br></div><div>For what it's worth, I also believe we need autonumbering to work with conditional. </div><div><br></div><div><br></div><div>I looked for any existing issues and didn't see any. </div><div><br></div><div><a href="https://github.com/sphinx-doc/sphinx/search?utf8=%E2%9C%93&q=only&type=Issues">https://github.com/sphinx-doc/sphinx/search?utf8=%E2%9C%93&q=only&type=Issues</a><br></div><div><br></div><div>Please log an Issue (or I can if you don't have time) because I think we need to fix. </div><div><br></div><div>Thanks,</div><div>Anne</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
Christian.<br>
<br>
_______________________________________________<br>
OpenStack-docs mailing list<br>
<a href="mailto:OpenStack-docs@lists.openstack.org" target="_blank">OpenStack-docs@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-docs</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Anne Gentle</div><div>Rackspace</div><div>Principal Engineer</div><div><a href="http://www.justwriteclick.com" target="_blank">www.justwriteclick.com</a></div></div></div>
</div></div>