From f9afc2da846fafa0f89dbd186ba90bc5c6057e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kirill=20M=C3=BCller?= Date: Sun, 29 Sep 2024 09:05:55 +0200 Subject: [PATCH] docs: Strip front matter --- README.Rmd | 3 ++- README.md | 2 +- index.md | 7 +------ 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/README.Rmd b/README.Rmd index 2c783c76..60e8d5a2 100644 --- a/README.Rmd +++ b/README.Rmd @@ -4,7 +4,7 @@ output: html_preview: false --- - + ```{r, include = FALSE} knitr::opts_chunk$set( @@ -25,6 +25,7 @@ clean_output <- function(x, options) { index <- x index <- gsub("─", "-", index) + index <- strsplit(paste(index, collapse = "\n"), "\n---\n")[[1]][[2]] writeLines(index, "index.md") x <- fansi::strip_sgr(x) diff --git a/README.md b/README.md index 6fc7bbd4..564da66b 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ - + # duckplyr diff --git a/index.md b/index.md index 84d6bcc6..febcd0db 100644 --- a/index.md +++ b/index.md @@ -1,10 +1,5 @@ ---- -output: - github_document: - html_preview: false ---- - +