Skip to content

Commit f079935

Browse files
Copilotjtemporal
andcommitted
Migrate Portuguese card 008 to Mermaid format
Co-authored-by: jtemporal <6595551+jtemporal@users.noreply.github.com>
1 parent 2c41929 commit f079935

File tree

4 files changed

+66
-12
lines changed

4 files changed

+66
-12
lines changed

_posts/2021-08-04-008.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
---
22
layout: post
3-
title: '#008 git add -p'
4-
image: "https://res.cloudinary.com/jesstemporal/image/upload/f_auto/v1642878671/gitfichas/pt/008/full_dtc6zn.jpg"
5-
permalink: "/projects/008"
3+
pretitle:
4+
title: Adicionando arquivos para commit
5+
subtitle: interativamente
6+
command: git add -p
7+
descriptors:
8+
- command: comando para adicionar um ou<br>mais arquivos em staging
9+
- part1: flag para escolher interativamente<br>alterações específicas para commit
10+
author: "@jtemporal"
11+
number: "008"
12+
mermaid: true
13+
use_static_image: true
614
translations:
715
- lang: en
816
url: /en/008
17+
permalink: "/projects/008"
918
lang: "pt"
1019
pv:
1120
url: "/projects/007"
@@ -14,12 +23,5 @@ nt:
1423
url: "/projects/009"
1524
title: "#009 git branch nome"
1625
---
17-
##### Adicionando arquivos para commit interativamente
18-
19-
<img alt="Para commitar apenas uma partezinha da alteração use git add -p e siga escolhendo quais partes você que colocar no commit" src="https://res.cloudinary.com/jesstemporal/image/upload/v1642878671/gitfichas/pt/008/full_dtc6zn.jpg"><br><br>
2026

21-
| Comando | Descrição |
22-
|---------|-------------|
23-
| `add` | Comando para adicionar um ou mais arquivos em staging |
24-
| `-p` | Flag para escolher interativamente alterações específicas para commit |
25-
{: .styled-table}
27+
{% include mermaid-graphs.html %}

assets/img/mermaid/008.svg

Lines changed: 47 additions & 0 deletions
Loading

puppeteer.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"executablePath": "/usr/bin/chromium-browser",
3+
"args": ["--no-sandbox", "--disable-setuid-sandbox"]
4+
}

scripts/config_manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ def get_mermaid_cli_command(self, temp_file: Path, output_path: Path) -> list:
101101
'--height', '675',
102102
'-e', 'svg',
103103
'--configFile', str(self.theme_path),
104-
'--cssFile', str(self.combined_css_path)
104+
'--cssFile', str(self.combined_css_path),
105+
'--puppeteerConfigFile', str(self.root_dir / 'puppeteer.config.json')
105106
]
106107

107108
def get_image_path(self, front_matter: Dict[str, Any], file_path: Path) -> Path:

0 commit comments

Comments
 (0)