Skip to content

Commit

Permalink
docs: increase font size for code (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher authored Oct 20, 2023
1 parent 82d34ac commit 23755d4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/docs/reference_home.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ of contexts:

* select and modify columns with `select()` and `with_columns()`;
* filter rows with `filter()`;
* group and aggregate rows with `groupby()` and `agg()`
* group and aggregate rows with `group_by()` and `agg()`

Inside each context, you can use various **expressions** (aka. `Expr`). Some expressions cannot
be used in some contexts. For example, in `with_columns()`, you can only apply
Expand Down
9 changes: 8 additions & 1 deletion docs/docs/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,16 @@ pre.r-example {
}

.md-typeset pre > code {
font-size: 0.7rem;
font-size: 0.73rem;
}

.md-typeset code {
font-size: 0.8rem;
}

.md-typeset h2 > code {
font-size: 1.2rem;
}

/*
Fonts are the same as pkgdown websites (otherwise tables not properly formatted)
Expand Down
6 changes: 3 additions & 3 deletions vignettes/polars.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Users can find detailed documentation for all objects, functions, and methods
on the Reference page of [this website](https://rpolars.github.io/). This documentation
can also be accessed from the R console using the typical `?` syntax. For
example, we will later use the `DataFrame()` constructor function and apply the
`groupby()` method to a `DataFrame` object. The documentation for these can be
`group_by()` method to a `DataFrame` object. The documentation for these can be
accessed by typing these commands:

```r
Expand All @@ -84,7 +84,7 @@ dataset.

```python
# Python
df.groupby("id").mean()
df.group_by("id").mean()
```

```r
Expand Down Expand Up @@ -270,7 +270,7 @@ dat$with_columns(
```

Similarly, here's how we could have aggregated (i.e., collapsed) the dataset
by groups instead of modifying them. We need simply invoke the `groupby()` and
by groups instead of modifying them. We need simply invoke the `group_by()` and
[`agg()`](https://rpolars.github.io/reference/Expr_agg_groups/) methods.

```{r}
Expand Down

0 comments on commit 23755d4

Please sign in to comment.