From 06c67d9c30caa79608b42da350c635e3a389840d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolf-Martell=20Montwe=CC=81?= Date: Wed, 12 Feb 2025 11:07:03 +0100 Subject: [PATCH] Add last-changed and pagetoc preprocessors and add the editing link --- .gitignore | 3 +++ docs/book.toml | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3535fdedf51..8fe66b93a4a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,9 @@ local.properties # Kotlin .kotlin/ +# mdBook +book/ + # Generated folders bin/ build/ diff --git a/docs/book.toml b/docs/book.toml index 4089ac28682..796c4648ac4 100644 --- a/docs/book.toml +++ b/docs/book.toml @@ -10,11 +10,12 @@ src = "." edition = "2018" [build] -build-dir = "book" +build-dir = "book/docs/latest" create-missing = false [output.html] git-repository-url = "https://github.com/thunderbird/thunderbird-android" +edit-url-template = "https://github.com/thunderbird/thunderbird-android/edit/main/{path}" git-branch = "main" fold.enable = true theme = "assets/theme" @@ -31,3 +32,5 @@ renderer = ["html"] [preprocessor.mermaid] command = "mdbook-mermaid" + +[preprocessor.pagetoc]