feat(all): Move to mdBook for the docs
This commit is contained in:
@@ -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
1
website/.gitignore
vendored
@@ -1,2 +1 @@
|
||||
node_modules
|
||||
/_book
|
||||
|
||||
@@ -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
|
||||
@@ -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
11
website/book.toml
Normal 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]
|
||||
Reference in New Issue
Block a user