Skip to content

Numbered wrong when migrating from jupyter-book to Sphinx #108

@luweizheng

Description

@luweizheng

Describe the bug

context
I have built a site with jupyter-book successfully. Now I want to use the features of sphinx-book-theme so I migrate from jupyter-book to sphinx.

I use the generated conf.py with

extensions = ['sphinx_external_toc',]
external_toc_exclude_missing = True
external_toc_path = '_toc.yml'

and my _toc.yml remains the same like:

format: jb-book
root: index
parts:
  - caption: 引言
    numbered: true
    chapters:
    - file: ch-intro/index
      sections:
        - file: ch-intro/computer-architecture
        - file: ch-intro/thread-process
  
  - caption: Dask
    numbered: true
    chapters:
    - file: ch-dask/index
      sections:
        - file: ch-dask/dask-intro

But it turns out that it cannot continue numbers between different chapters.

image

Reproduce the bug

What do I need to do to fix this issue?

List your environment

sphinx_external_toc 0.3.1
sphinx-multitoc-numbering 0.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions