{"action":"opened","issue":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1586","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1586/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1586/comments","events_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/1586/events","html_url":"https://github.com/sphinx-doc/testing2/issues/1586","id":53301724,"number":1586,"title":"numfig feature improvement","user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sphinx-doc/testing2/milestones/3","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/milestones/3/labels","id":919584,"number":3,"title":"1.3","description":null,"creator":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"open_issues":26,"closed_issues":16,"state":"open","created_at":"2015-01-02T12:44:45Z","updated_at":"2015-01-03T11:33:59Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-01-03T11:33:59Z","updated_at":"2015-01-03T11:33:59Z","closed_at":null,"body":"We've merged https://bitbucket.org/birkenfeld/sphinx/pull-request/296 for \"Assign numbers to figures, tables and code-blocks\" from [Takeshi Komiya](https://bitbucket.org/tk0miya). I have requests to improve the feature.\n\nThis feature assigns number to captions of code-block, figure, table with link target label as below:\n\n```\n.. _target:\n\n.. code-block:: bash\n   :caption: installation\n\n   $ pip install Sphinx\n```\n\nWhen `numfig = True` in conf.py, this reST will be converted into html as:\n\n```\n<div id=\"id3\" class=\"container\">\n  <div class=\"code-block-caption\">\n  List 1 installation\n  </div>\n  <div class=\"highlight-bash\">\n    <div class=\"highlight\">\n      <pre>\n        $ pip install Sphinx\n      </pre>\n    </div>\n  </div>\n</div>\n```\n\nI think it would be better with:\n\n1. `List 1 installation` would have permalink as like as section with using `config.html_add_permalinks` text.\n\n2. `List 1 installation` would be wrapped with two `<span>` tag as: `<span class=\"numfig-number\">List 1</span> <span class=\"caption-text\">installation</span>` for css decoration. class names are just idea.\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/1586\n- Originally reported by: Takayuki Shimizukawa\n- Originally created at: 2014-10-05T04:37:54.963\n"}}