Skip to content

Commit

Permalink
Mermaid gitgraph: fix syntax error (#306)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored Sep 21, 2024
1 parent f17ae34 commit 4d16c24
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 46 deletions.
2 changes: 1 addition & 1 deletion content/posts/configuration/sections/projects/index.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ Vous pouvez spécifier les champs suivants pour votre projet:

{{< vs 2 >}}

L'image suivante montre commment les contenus de `projects.yaml` sont cartographiés dans la section `projects.yaml`.
L'image suivante montre comment les contenus de `projects.yaml` sont cartographiés dans la section `projects.yaml`.

{{< img src="images/projects.png" >}}
2 changes: 1 addition & 1 deletion content/posts/quickstart/index.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Maintenant, revenons à notre mission. Suivez simplement les 5 étapes pour comm

#### Etape 1: Forker le dépôt d'exemple et renommer

D'abord, **forkez** ce [dépôt échantillon](https://github.com/hugo-toha/hugo-toha.github.io) sur votre compte. Ensuite, renommez ce dépôt commme vous voulez. Si vous voulez utiliser les [Github Pages](https://pages.github.com/) pour déployer votre site, alors renommez le en `<your username>.github.io`. Ce dépôt échantillon fourni des Github Actions pré-configurés pour publier le site dans Github Pages et Netlify.
D'abord, **forkez** ce [dépôt échantillon](https://github.com/hugo-toha/hugo-toha.github.io) sur votre compte. Ensuite, renommez ce dépôt comme vous voulez. Si vous voulez utiliser les [Github Pages](https://pages.github.com/) pour déployer votre site, alors renommez le en `<your username>.github.io`. Ce dépôt échantillon fourni des Github Actions pré-configurés pour publier le site dans Github Pages et Netlify.

#### Etape 2: Cloner le dépôt forké localement

Expand Down
4 changes: 2 additions & 2 deletions content/posts/writing-posts/math/index.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ En este ejemplo usaremos [KaTeX](https://katex.org/)
{{ partial "math.html" . }}
{{ end }}
```
- Para habilitar Katex globalmente establece el parámetro `math` a `true` en la configuración del proyecto en el archivo `hugo.yaml`.
- Para habilitar Katex en publicaciones concretas, incluye el parámetro `math: true` en los archivos de contenido correspondientes.
- Para habilitar KaTeX globalmente establece el parámetro `math` a `true` en la configuración del proyecto en el archivo `hugo.yaml`.
- Para habilitar KaTeX en publicaciones concretas, incluye el parámetro `math: true` en los archivos de contenido correspondientes.

**Nota:** Usa la referencia online de [Supported TeX Functions](https://katex.org/docs/supported.html)
{{< math.inline >}}
Expand Down
4 changes: 2 additions & 2 deletions content/posts/writing-posts/math/index.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ Dans cet exemple, nous utiliserons [KaTeX](https://katex.org/)
{{ end }}
```
- Pour activer KaText globalement mettez le paramètre `math` à `true` dans la configuration du projet.
- Pour activer KaTex par page, incluez le paramètre `math: true` dans le front matter de votre fichier de contenu.
- Pour activer KaTeX globalement mettez le paramètre `math` à `true` dans la configuration du projet.
- Pour activer KaTeX par page, incluez le paramètre `math: true` dans le front matter de votre fichier de contenu.
**Note:** Utilisez le référentiel en ligne des [Fonctions TeX supportées](https://katex.org/docs/supported.html)
Expand Down
4 changes: 2 additions & 2 deletions content/posts/writing-posts/math/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ In this example we will be using [KaTeX](https://katex.org/)
{{ partial "math.html" . }}
{{ end }}
```
- To enable KaTex globally set the parameter `math` to `true` in a project's configuration
- To enable KaTex on a per page basis include the parameter `math: true` in content files.
- To enable KaTeX globally set the parameter `math` to `true` in a project's configuration
- To enable KaTeX on a per page basis include the parameter `math: true` in content files.

**Note:** Use the online reference of [Supported TeX Functions](https://katex.org/docs/supported.html)
{{< math.inline >}}
Expand Down
29 changes: 13 additions & 16 deletions content/posts/writing-posts/mermaid/index.es.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,12 @@ classDiagram
#### Grafo de Git

```bash
{{</* mermaid background="black" align="right" */>}}
gitGraph:
options
{
"nodeSpacing": 150,
"nodeRadius": 10
}
end
{{</* mermaid background="black" align="center" */>}}
%%{init: { 'themeVariables': {
'commitLabelColor': '#000000',
'commitLabelFontSize': '12px'
} } }%%
gitGraph
commit
branch newbranch
checkout newbranch
Expand All @@ -211,19 +209,18 @@ merge newbranch
{{</* /mermaid */>}}
```

{{< mermaid background="black" align="right" >}}
gitGraph:
options
{
"nodeSpacing": 150,
"nodeRadius": 10
}
end
{{< mermaid background="black" align="center" >}}
%%{init: { 'themeVariables': {
'commitLabelColor': '#000000',
'commitLabelFontSize': '12px'
} } }%%
gitGraph
commit
branch newbranch
checkout newbranch
commit
commit
branch master
checkout master
commit
commit
Expand Down
28 changes: 26 additions & 2 deletions content/posts/writing-posts/mermaid/index.fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ sequenceDiagram

<hr>

#### diagramme de Gantt
#### Diagramme de Gantt

```bash
{{</* mermaid */>}}
Expand Down Expand Up @@ -188,13 +188,37 @@ classDiagram
#### Graphique de Git

```bash
{{< mermaid background="black" align="right" >}}
{{</* mermaid background="black" align="center" */>}}
%%{init: { 'themeVariables': {
'commitLabelColor': '#000000',
'commitLabelFontSize': '12px'
} } }%%
gitGraph:
commit
branch newbranch
checkout newbranch
commit
commit
branch master
checkout master
commit
commit
merge newbranch
{{</* /mermaid */>}}
```

{{< mermaid background="black" align="center" >}}
%%{init: { 'themeVariables': {
'commitLabelColor': '#000000',
'commitLabelFontSize': '12px'
} } }%%
gitGraph
commit
branch newbranch
checkout newbranch
commit
commit
branch master
checkout master
commit
commit
Expand Down
30 changes: 14 additions & 16 deletions content/posts/writing-posts/mermaid/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,39 +188,37 @@ classDiagram
#### Git Graph

```bash
{{</* mermaid background="black" align="right" */>}}
gitGraph:
options
{
"nodeSpacing": 150,
"nodeRadius": 10
}
end
{{</* mermaid background="black" align="center" */>}}
%%{init: { 'themeVariables': {
'commitLabelColor': '#000000',
'commitLabelFontSize': '12px'
} } }%%
gitGraph
commit
branch newbranch
checkout newbranch
commit
commit
branch master
checkout master
commit
commit
merge newbranch
{{</* /mermaid */>}}
```

{{< mermaid background="black" align="right" >}}
gitGraph:
options
{
"nodeSpacing": 150,
"nodeRadius": 10
}
end
{{< mermaid background="black" align="center" >}}
%%{init: { 'themeVariables': {
'commitLabelColor': '#000000',
'commitLabelFontSize': '12px'
} } }%%
gitGraph
commit
branch newbranch
checkout newbranch
commit
commit
branch master
checkout master
commit
commit
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ publish = "public"
[context.production.environment]
HUGO_ENABLEGITINFO = "true"
HUGO_ENV = "production"
HUGO_VERSION = "0.133.1"
HUGO_VERSION = "0.134.3"
NODE_VERSION = "v20.17.0"
NPM_VERSION = "10.8.3"

Expand All @@ -14,23 +14,23 @@ command = "hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --mini

[context.split1.environment]
HUGO_ENV = "production"
HUGO_VERSION = "0.133.1"
HUGO_VERSION = "0.134.3"
NODE_VERSION = "v20.17.0"
NPM_VERSION = "10.8.3"

[context.deploy-preview]
command = "hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify --buildFuture -b $DEPLOY_PRIME_URL"

[context.deploy-preview.environment]
HUGO_VERSION = "0.133.1"
HUGO_VERSION = "0.134.3"
NODE_VERSION = "v20.17.0"
NPM_VERSION = "10.8.3"

[context.branch-deploy]
command = "hugo mod tidy && hugo mod npm pack && npm install && hugo --gc --minify -b $DEPLOY_PRIME_URL"

[context.branch-deploy.environment]
HUGO_VERSION = "0.133.1"
HUGO_VERSION = "0.134.3"
NODE_VERSION = "v20.17.0"
NPM_VERSION = "10.8.3"

Expand Down

0 comments on commit 4d16c24

Please sign in to comment.