rust-lang / mdBook

Create book from markdown files. Like Gitbook but implemented in Rust

Home Page:https://rust-lang.github.io/mdBook/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Numbered Pages

ricardodarocha opened this issue · comments

How to configure to show the number of page?
How to customize to start numbering from after summary index, for example?

Sorry, it is not really clear what you are asking. Chapters are numbered in the summary along the sidebar. If you want to display the chapter number somewhere else on the page, that isn't easily accessed. The chapters array has that information (see https://rust-lang.github.io/mdBook/format/theme/index-hbs.html), though you will need to match it up with the name of the chapter. If you mean in the printed output, I think all the major browsers add page numbers automatically.

It would help if you could explain what you want in more detail, perhaps with some examples.