This repository contains all common themes from the official mdbook developers along with some other hand crafted themes.
Another advantage of using this repository is that when some new themes are added/updated or some bugs/glitches in the theme is fixed. It can be easily tracked and updated.
- Space
- Sustain
- Eco-Friend
- Game [in future ..]
-
Make this repository as git submodule by using the following command.
git submodule add https://github.com/hari-vickey/mdbook-themes.git
-
Open
book.toml
and change the followingtheme
value to the folder/sub-repository name. Change thedefault-theme
to your favourite theme.[output.html] theme = "mdbook-themes" default-theme = "space"
-
Now, you are free to delete previous theme directory.
-
Build the mdbook using
mdbook build
and see the changes.Pro:
mdbook serve --open
can be used to build and track changes automatically. Saves one commnad to type :P .
mdBook.zip is attached to get the base files for building. Extract it to the root folder for building.
-
To change the header, modify the
header.hbs
file -
To change the styling, modify
variables.css
file -
To add functionalities, modify
book.js
(carefully)
Feel free to create/update themes and add a pull request.