Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

h4sh3d/mdbook-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License: MIT

THIS PROJECT HAS BEEN ARCHIVED

mdbook-api

mdbook-api is a mdBook backend that ports the work of Slate.

Assets in the theme/ folder come from Slate project.

Usage

Install mdbook-api backend with

cargo install --git https://github.com/h4sh3d/mdbook-api.git

and configure your book.toml

[book]
# ...

[output.api]

# A list of links for TOC footer
[[output.api.toc_footer]]
link_url = "https://example.com"
content = "Get in touch"

# A list of languages for constructing the menu
[[output.api.lang]]
# Language id
id = "rust"
# Display name, optional
name = "Rust"

[[output.api.lang]]
id = "go"
name = "Go"

Licence

All the code in this repository is released under the MIT, for more information take a look at the LICENSE file.