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") }