Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

toctree numbering not shown on 'self' entries #3955

Open
adamcharnock opened this issue Jul 23, 2017 · 1 comment
Open

toctree numbering not shown on 'self' entries #3955

adamcharnock opened this issue Jul 23, 2017 · 1 comment
Labels
internals:toctree type:enhancement enhance or introduce a new feature

Comments

@adamcharnock
Copy link

adamcharnock commented Jul 23, 2017

Problem

  • tocktree entries which refer to self are not assigned a number when using :numbered:.

Procedure to reproduce the problem

# /index.rst

.. toctree::
    :maxdepth: 2
    :numbered:
    :titlesonly:

    self        # <-- Should be number 1, but doesn't get a number
    motivation  # <-- This is actually number one
    alternatives
    concerns
    implementation/index

Introduction
============

...

Screenshot:

screen shot 2017-07-23 at 10 36 16

No errors present in output, so omitting error logs. Will post output if requested.

Expected results

Numbering should start at first item in list. Mockup screenshot:

screen shot 2017-07-23 at 10 42 54

Reproducible project / your project

Environment info

  • OS: Mac, 10.12.5 (Sierra)
  • Python version: 3.6.1
  • Sphinx version: 1.6.3
  • Extra tools: sphinx-autobuild==0.7.1, alabaster theme
@adamcharnock
Copy link
Author

Also, #3142 seem to report a similar issue. However, I get the impression that the cause was different.

@tk0miya tk0miya added type:enhancement enhance or introduce a new feature internals:toctree labels Jul 26, 2017
@tk0miya tk0miya added this to the some future version milestone Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internals:toctree type:enhancement enhance or introduce a new feature
Projects
None yet
Development

No branches or pull requests

2 participants