Skip to content

Commit

Permalink
Document it
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed May 29, 2024
1 parent 032c3de commit ccf7f5c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions vignettes/customise.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,15 @@ template:
code-bg: "#2b2b2b"
```

### Math rendering

By default, pkgdown will render math using mathml. mathml is the official standard for rendering math on the web, and requires no additional javascript or css dependencies. However, browser support for complex math is not always that good, so if you are including complex equations in your documentation, you may want to switch to either [`katex`](https://katex.org) or [`mathjax`](https://www.mathjax.org) by using the `template.math-rendering` field:

```yaml
template:
math-rendering: katex
```

### Navbar style

The primary navbar colours are determined by HTML classes, not CSS, and can be customized using the `navbar` fields `bg` and `type` which control the background and foreground colours respectively.
Expand Down

0 comments on commit ccf7f5c

Please sign in to comment.