Git Product home page Git Product logo

book's Introduction

book

A theme based on Gitbook, to write documentation or books.

book screenshot

Contents

Installation

First download this theme to your themes directory:

$ cd themes
$ git clone https://github.com/getzola/book.git

and then enable it in your config.toml:

theme = "book"
# Optional, if you want search
build_search_index = true

Usage

Book will generate a book from the files you place in the content directory. Your book can have two levels of hierarchy: chapters and subchapters.

Each chapter should be a section within the Gutenberg site and should have an _index.md file that sets its weight front-matter variable to its chapter number. For example, chapter 2 should have weight = 2. Additionally, each chapter should also set the sort_by = "weight" in its front matter.

Each subchapter should be a page and should have its weight variable set to the subchapter number. For example, subchapter 3.4 should have weight = 4.

Finally, you should create an _index.md file and set the redirect_to front-matter variable to redirect to the first section of your content. For example, if your first section has the slug introduction, then you would set redirect_to = "introduction".

Options

Numbered chapters

By default, the book theme will number the chapters and pages in the left menu. You can disable that by setting the book_numbered_chapters in extra:

book_numbered_chapters = false

book's People

Contributors

keats avatar codesections avatar iptq avatar

Watchers

James Cloos avatar Joy Gao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.