From 3cc514a301c9a9dfc4ded5b2f47485d155f42eec Mon Sep 17 00:00:00 2001 From: Filip Tibell Date: Mon, 1 May 2023 12:20:42 +0200 Subject: [PATCH] Fix gitbook formatting --- .justfile | 2 +- packages/cli/src/gen/gitbook_dir.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.justfile b/.justfile index f3e20cd..b2f904a 100644 --- a/.justfile +++ b/.justfile @@ -30,5 +30,5 @@ generate-gitbook: cargo run -- --generate-gitbook-dir # Publish gitbook directory to gitbook branch -publish-gitbook: +publish-gitbook: generate-gitbook npx push-dir --dir=gitbook --branch=gitbook diff --git a/packages/cli/src/gen/gitbook_dir.rs b/packages/cli/src/gen/gitbook_dir.rs index 2304d1a..d6aa410 100644 --- a/packages/cli/src/gen/gitbook_dir.rs +++ b/packages/cli/src/gen/gitbook_dir.rs @@ -255,6 +255,7 @@ fn post_process_docs(contents: String) -> String { .collect::>() .join("\n"); no_empty_lines + .replace("\n\n---", "\n---") .replace("\n\n\n", "\n\n") .replace("\n\n\n", "\n\n") }