📝 docs: add code language to bash code blocks
This commit is contained in:
parent
ee6a54b3f9
commit
33cfe77344
@ -1,7 +1,7 @@
|
|||||||
+++
|
+++
|
||||||
title = "Optimitza la càrrega amb un subconjunt de font personalitzat"
|
title = "Optimitza la càrrega amb un subconjunt de font personalitzat"
|
||||||
date = 2023-04-29
|
date = 2023-04-29
|
||||||
updated = 2023-06-22
|
updated = 2023-07-08
|
||||||
description = "Aprèn com crear un subconjunt personalitzat que només inclogui els glifs necessaris."
|
description = "Aprèn com crear un subconjunt personalitzat que només inclogui els glifs necessaris."
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
@ -144,13 +144,13 @@ Guarda l'script a algun lloc com `~/bin/subset_font`. Fes-lo executable amb `chm
|
|||||||
|
|
||||||
Ara pots executar-lo amb les opcions requerides `--config` i `--font`:
|
Ara pots executar-lo amb les opcions requerides `--config` i `--font`:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
~/bin/subset_font --config path/to/config.toml --font path/to/font.woff2
|
~/bin/subset_font --config path/to/config.toml --font path/to/font.woff2
|
||||||
```
|
```
|
||||||
|
|
||||||
De forma predeterminada, això generarà un fitxer `custom_subset.css` al directori actual. Utilitza `-o` o `--output` per especificar una ruta diferent:
|
De forma predeterminada, això generarà un fitxer `custom_subset.css` al directori actual. Utilitza `-o` o `--output` per especificar una ruta diferent:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
~/bin/subset_font -c path/to/config.toml -f path/to/font.woff2 -o path/to/output
|
~/bin/subset_font -c path/to/config.toml -f path/to/font.woff2 -o path/to/output
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
+++
|
+++
|
||||||
title = "Optimiza la carga con un subconjunto de fuente personalizado"
|
title = "Optimiza la carga con un subconjunto de fuente personalizado"
|
||||||
date = 2023-04-29
|
date = 2023-04-29
|
||||||
updated = 2023-06-22
|
updated = 2023-07-08
|
||||||
description = "Aprende cómo crear un subconjunto personalizado que solo incluya los glifos necesarios."
|
description = "Aprende cómo crear un subconjunto personalizado que solo incluya los glifos necesarios."
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
@ -144,13 +144,13 @@ Guarda el script en algún lugar como `~/bin/subset_font`. Hazlo ejecutable con
|
|||||||
|
|
||||||
Ahora puedes ejecutarlo con las opciones requeridas `--config` y `--font`:
|
Ahora puedes ejecutarlo con las opciones requeridas `--config` y `--font`:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
~/bin/subset_font --config path/to/config.toml --font path/to/font.woff2
|
~/bin/subset_font --config path/to/config.toml --font path/to/font.woff2
|
||||||
```
|
```
|
||||||
|
|
||||||
De forma predeterminada, esto generará un archivo `custom_subset.css` en el directorio actual. Usa `-o` o `--output` para especificar una ruta diferente:
|
De forma predeterminada, esto generará un archivo `custom_subset.css` en el directorio actual. Usa `-o` o `--output` para especificar una ruta diferente:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
~/bin/subset_font -c path/to/config.toml -f path/to/font.woff2 -o path/to/output
|
~/bin/subset_font -c path/to/config.toml -f path/to/font.woff2 -o path/to/output
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
+++
|
+++
|
||||||
title = "Optimise loading times with a custom font subset"
|
title = "Optimise loading times with a custom font subset"
|
||||||
date = 2023-04-29
|
date = 2023-04-29
|
||||||
updated = 2023-06-22
|
updated = 2023-07-08
|
||||||
description = "Learn how to create a custom subset that only includes the necessary glyphs."
|
description = "Learn how to create a custom subset that only includes the necessary glyphs."
|
||||||
|
|
||||||
[taxonomies]
|
[taxonomies]
|
||||||
@ -147,12 +147,12 @@ Save the script somewhere like `~/bin/subset_font`. Make it executable with `chm
|
|||||||
|
|
||||||
Now you can run it with the required `--config` and `--font` options:
|
Now you can run it with the required `--config` and `--font` options:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
~/bin/subset_font --config path/to/config.toml --font path/to/font.woff2
|
~/bin/subset_font --config path/to/config.toml --font path/to/font.woff2
|
||||||
```
|
```
|
||||||
By default, this generates a `custom_subset.css` file in the current directory. Use `-o` or `--output` to specify a different path:
|
By default, this generates a `custom_subset.css` file in the current directory. Use `-o` or `--output` to specify a different path:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
~/bin/subset_font -c path/to/config.toml -f path/to/font.woff2 -o path/to/output
|
~/bin/subset_font -c path/to/config.toml -f path/to/font.woff2 -o path/to/output
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user