GitbookIO / gitbook

The open source frontend for GitBook doc sites
https://www.gitbook.com
GNU General Public License v3.0
27.18k stars 3.87k forks source link

Chapter enumeration broken (showLevel in theme-default) #1370

Closed Simran-B closed 7 months ago

Simran-B commented 8 years ago

I enabled showLevel in book.json...

  "pluginsConfig": {
    "theme-default": {
        "showLevel": true
    },

... and the enumerations are shown, but they are all sub-lists of a non-existing level 1:

image

How to fix that? It should show

1. Introduction 2. Getting Started etc.

SUMMARY.md:

* [Getting Started](GettingStarted/README.md)
  * [Installing](GettingStarted/Installing/README.md)
  * [Using the Web Interface](GettingStarted/WebInterface.md)
* [Scalability](Scalability/README.md)
* [Data model & modeling](DataModeling/README.md)
  * [Concepts](DataModeling/Concepts.md)
  * [Databases](DataModeling/Databases/README.md)
  * [Collections](DataModeling/Collections/README.md)
* [Indexing](Indexing/README.md)
  * [Index Basics](Indexing/IndexBasics.md)
  * [Which index to use when](Indexing/WhichIndex.md)
  * [Index Utilization](Indexing/IndexUtilization.md)
Simran-B commented 8 years ago

I think this is actually caused by the added support for parts in the summary. If there's no part, all pages are considered to be belong to a fictional part 1 (thus the preceding 1.).

If no parts are used, then they shouldn't be considered in enumerating the pages.

noerw commented 8 years ago

see https://github.com/GitbookIO/gitbook/issues/1301