You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.md 1.2KB

6 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. +++
  2. title = "book"
  3. description = "A book theme inspired from GitBook/mdBook"
  4. template = "theme.html"
  5. date = 2018-01-28T10:53:19+01:00
  6. [extra]
  7. created = 2018-02-22T19:13:36+01:00
  8. updated = 2018-01-28T10:53:19+01:00
  9. repository = "https://github.com/Keats/book"
  10. homepage = "https://github.com/Keats/book"
  11. minimum_version = "0.2"
  12. license = "MIT"
  13. [extra.author]
  14. name = "Vincent Prouillet"
  15. homepage = "https://vincent.is"
  16. +++
  17. # book
  18. A theme based on [Gitbook](https://www.gitbook.com), to write documentation
  19. or books.
  20. ![book screenshot](https://github.com/Keats/book/blob/master/screenshot.png?raw=true)
  21. ## Contents
  22. - [Installation](#installation)
  23. - [Options](#options)
  24. - [Numbered chapters](#numbered-chapters)
  25. ## Installation
  26. First download this theme to your `themes` directory:
  27. ```bash
  28. $ cd themes
  29. $ git clone https://github.com/Keats/book.git
  30. ```
  31. and then enable it in your `config.toml`:
  32. ```toml
  33. theme = "book"
  34. ```
  35. ## Options
  36. ### Numbered chapters
  37. By default, the `book` theme will number the chapters and pages in the left menu.
  38. You can disable that by setting the `book_numbered_chapters` in `extra`:
  39. ```toml
  40. book_numbered_chapters = false
  41. ```