feat(all): Move to mdBook for the docs

This commit is contained in:
Alexis Mousset
2019-05-05 19:45:51 +02:00
parent 4f470a2c3f
commit c33de49fbb
13 changed files with 18 additions and 17 deletions

View File

@@ -3,7 +3,7 @@ rust:
- stable
- beta
- nightly
- 1.26.0
- 1.30.0
matrix:
allow_failures:
- rust: nightly
@@ -19,11 +19,9 @@ addons:
- gcc
- binutils-dev
- libiberty-dev
- npm
before_script:
- smtp-sink 2525 1000&
- sudo chgrp -R postdrop /var/spool/postfix/maildrop
- sudo npm set strict-ssl false && sudo npm install -g gitbook-cli
script:
- cargo test --verbose --all --all-features
after_success:

1
website/.gitignore vendored
View File

@@ -1,2 +1 @@
node_modules
/_book

View File

@@ -1,13 +1,16 @@
all: depends _book
depends:
gitbook install
cargo install --force mdbook --vers "^0.2"
cargo install --force mdbook-linkcheck --vers "^0.2"
serve:
gitbook serve
mdbook serve
_book:
gitbook build
mdbook build
clean:
rm -rf _book/
.PHONY: _book

View File

@@ -1,10 +0,0 @@
{
"root": "./content",
"plugins": [ "-sharing", "edit-link" ],
"pluginsConfig": {
"edit-link": {
"base": "https://github.com/lettre/lettre/edit/master/website/content",
"label": "Edit"
}
}
}

11
website/book.toml Normal file
View File

@@ -0,0 +1,11 @@
[book]
title = "Lettre"
author = "Alexis Mousset"
description = "The user documentation of the Lettre crate."
[build]
build-dir = "_book"
[output.html]
[output.linkcheck]