diff --git a/.gitignore b/.gitignore index 362c1756..d54dec1b 100755 --- a/.gitignore +++ b/.gitignore @@ -29,3 +29,5 @@ vignettes/*.html vignettes/*.md tests/testthat/_snaps/**/*.new.md tests/testthat/_snaps/**/*.new.svg +/doc/ +/Meta/ diff --git a/vignettes/_setup.Rmd b/vignettes/_setup.Rmd deleted file mode 100644 index 745980fa..00000000 --- a/vignettes/_setup.Rmd +++ /dev/null @@ -1,10 +0,0 @@ - -```{css, echo=FALSE} -pre.mermaid { - background: transparent; -} -``` - -```{r, echo=FALSE} -shiny::tags$script(type = "module", "import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/+esm'") -``` diff --git a/vignettes/teal-reporter-blocks-overview.Rmd b/vignettes/teal-reporter-blocks-overview.Rmd index 388cd151..0fbd1b2a 100644 --- a/vignettes/teal-reporter-blocks-overview.Rmd +++ b/vignettes/teal-reporter-blocks-overview.Rmd @@ -29,8 +29,17 @@ along with descriptions and usage examples: These blocks form the building blocks of a `ReportCard`, each serving a specific function that contributes to the overall layout and content of the report. The `ReportCard` object utilizes `append_*` methods to integrate various blocks such as `TextBlock`, `PictureBlock`, `RcodeBlock`, and `TableBlock`. The following diagram illustrates the inheritance relationship between the different blocks: -```{r, child="_setup.Rmd"} + +```{css mermaid, echo=FALSE} +pre.mermaid { + background: transparent; +} +``` + +```{r load_mermaid, echo=FALSE} +shiny::tags$script(type = "module", "import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid/+esm'") ``` + ```{r actors_mermaid2, echo=FALSE} shiny::pre( class = "mermaid",