Skip to content

Commit

Permalink
Different approach to hiding captions
Browse files Browse the repository at this point in the history
  • Loading branch information
willgearty committed Oct 28, 2023
1 parent 2e41289 commit 346e67d
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 21 deletions.
10 changes: 7 additions & 3 deletions vignettes/a-getting-started.Rmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: "Getting started with rphylopic"
output:
rmarkdown::html_vignette:
css: vignettes.css
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Getting started with rphylopic}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -267,3 +265,9 @@ Now that you've learned the ropes of **rphylopic**, how about you check out some
- [Advanced examples in base R](c-advanced-base.html)

</div>

<style type="text/css">
p.caption {
display: none;
}
</style>
10 changes: 7 additions & 3 deletions vignettes/a-getting-started.Rmd.orig
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: "Getting started with rphylopic"
output:
rmarkdown::html_vignette:
css: vignettes.css
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Getting started with rphylopic}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -197,3 +195,9 @@ Now that you've learned the ropes of **rphylopic**, how about you check out some
- [Advanced examples in base R](c-advanced-base.html)

</div>

```{css echo = FALSE}
p.caption {
display: none;
}
```
10 changes: 7 additions & 3 deletions vignettes/b-advanced-ggplot.Rmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: "Advanced examples in ggplot"
output:
rmarkdown::html_vignette:
css: vignettes.css
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Advanced examples in ggplot}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -396,3 +394,9 @@ revts(ggtree(vertebrate.tree, size = 1)) %<+% vertebrate_data +
Beautiful!

</div>

<style type="text/css">
p.caption {
display: none;
}
</style>
10 changes: 7 additions & 3 deletions vignettes/b-advanced-ggplot.Rmd.orig
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: "Advanced examples in ggplot"
output:
rmarkdown::html_vignette:
css: vignettes.css
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Advanced examples in ggplot}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -307,3 +305,9 @@ revts(ggtree(vertebrate.tree, size = 1)) %<+% vertebrate_data +
Beautiful!

</div>

```{css echo = FALSE}
p.caption {
display: none;
}
```
10 changes: 7 additions & 3 deletions vignettes/c-advanced-base.Rmd
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: "Advanced examples in base R"
output:
rmarkdown::html_vignette:
css: vignettes.css
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Advanced examples in base R}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -390,3 +388,9 @@ add_phylopic_base(img = vertebrate_data$svg,
Beautiful!

</div>

<style type="text/css">
p.caption {
display: none;
}
</style>
10 changes: 7 additions & 3 deletions vignettes/c-advanced-base.Rmd.orig
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
---
title: "Advanced examples in base R"
output:
rmarkdown::html_vignette:
css: vignettes.css
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{Advanced examples in base R}
%\VignetteEngine{knitr::rmarkdown}
Expand Down Expand Up @@ -306,3 +304,9 @@ add_phylopic_base(img = vertebrate_data$svg,
Beautiful!

</div>

```{css echo = FALSE}
p.caption {
display: none;
}
```
3 changes: 0 additions & 3 deletions vignettes/vignettes.css

This file was deleted.

0 comments on commit 346e67d

Please sign in to comment.