Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions .markdownlint.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,7 @@
"punctuation": ".,;:!"
},
"MD033": {
"allowed_elements": [
"br",
"details",
"summary",
"sup",
"sub"
]
"allowed_elements": ["br", "details", "summary", "sup", "sub"]
},
"MD034": false,
"MD036": false,
Expand Down
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ repos:
- id: mixed-line-ending
args: ["--fix=lf"]

# Markdown linting
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
args: ["--fix", "--config", ".markdownlint.json"]
exclude: ^docs/std/collections/index\.md$ # TODO: fix MD013 line-length issues
# Markdown linting (optional - won't block commits)
# - repo: https://github.com/igorshubovych/markdownlint-cli
# rev: v0.39.0
# hooks:
# - id: markdownlint
# args: ["--fix", "--config", ".markdownlint.json"]
# exclude: ^docs/std/collections/index\.md$ # TODO: fix MD013 line-length issues

# Python code quality (for mkdocs and scripts)
- repo: https://github.com/psf/black
Expand All @@ -48,6 +48,6 @@ repos:
hooks:
- id: codespell
args:
- --ignore-words-list=crate,crates,ect,mut,nd,ser,te,ue,alle,tre,possibile,nome,rende,sequenze,strutture,accessibile,categorie,limite,serie,valide,stati,copie,implicite,normale,contro,succede,ignora,classe,momento,ore,allo,distribuite,vai,accelerare,compatibile
- --ignore-words-list=crate,crates,ect,mut,nd,ser,te,ue,alle,tre,possibile,nome,rende,sequenze,strutture,accessibile,categorie,limite,serie,valide,stati,copie,implicite,normale,contro,succede,ignora,classe,momento,ore,allo,distribuite,vai,accelerare,compatibile,distintive
- --skip="*.pyc,*.svg,*.json,site/*"
exclude: ^(docs/GLOSSARY\.md|CHANGELOG\.md)$
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Questo progetto si propone di tradurre in italiano la documentazione ufficiale d
- [x] Collections - Vec\<T\>
- [x] Collections - HashMap, HashSet
- [x] String e &str
- [x] Iterators
- [ ] Option e Result
- [ ] Iterators
- [ ] I/O e File System
- [ ] **The Rust Programming Language Book**
- [ ] Capitoli introduttivi (1-5)
Expand Down
9 changes: 4 additions & 5 deletions dev-setup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ dev-setup\setup-dev.bat
2. Crea un ambiente virtuale Python (`venv/`)
3. Installa le dipendenze da `requirements.txt`
4. Installa pre-commit hooks
5. Copia i file di configurazione nella root (se non esistono)
6. Installa markdownlint-cli (se npm è disponibile)
5. Verifica disponibilità markdownlint (richiede Node.js >= 20)

## Configurazioni

Expand Down Expand Up @@ -110,11 +109,11 @@ source venv/bin/activate
venv\Scripts\activate.bat
```

### Markdownlint non installato
### Markdownlint non disponibile

Se npm non è disponibile, markdownlint-cli non verrà installato. Gli hook funzioneranno comunque, ma il linting markdown sarà saltato.
Se npm non è disponibile, markdownlint non funzionerà. Gli hook funzioneranno comunque, ma il linting markdown sarà saltato.

Soluzione: Installa [Node.js](https://nodejs.org/) e riesegui lo script.
Soluzione: Installa [Node.js](https://nodejs.org/) >= 20 e usa `npx markdownlint-cli '**/*.md'`

### Errori di permessi (Linux/macOS)

Expand Down
10 changes: 5 additions & 5 deletions dev-setup/setup-dev.bat
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,14 @@ echo 🪝 Installing pre-commit hooks...
pip install pre-commit
pre-commit install

REM Install markdownlint (requires npm/node)
REM Check markdownlint availability (requires npm/node)
where npm >nul 2>&1
if %errorlevel% == 0 (
echo 📝 Installing markdownlint-cli...
npm install -g markdownlint-cli
echo 📝 markdownlint disponibile via npx
echo Usa: npx markdownlint-cli "**/*.md"
) else (
echo ⚠️ npm not found. Skipping markdownlint-cli installation.
echo Install Node.js to enable markdown linting.
echo ⚠️ npm non trovato. Markdownlint non disponibile.
echo Installa Node.js >= 20 per abilitare markdown linting.
)

echo.
Expand Down
10 changes: 5 additions & 5 deletions dev-setup/setup-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ echo "🪝 Installing pre-commit hooks..."
pip install pre-commit
pre-commit install

# Install markdownlint (requires npm/node)
# Check markdownlint availability (requires npm/node)
if command -v npm &> /dev/null; then
echo "📝 Installing markdownlint-cli..."
npm install -g markdownlint-cli
echo "📝 markdownlint disponibile via npx"
echo " Usa: npx markdownlint-cli '**/*.md'"
else
echo "⚠️ npm not found. Skipping markdownlint-cli installation."
echo " Install Node.js to enable markdown linting."
echo "⚠️ npm non trovato. Markdownlint non disponibile."
echo " Installa Node.js >= 20 per abilitare markdown linting."
fi

echo ""
Expand Down
15 changes: 7 additions & 8 deletions docs/std/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,18 @@ La **Standard Library** di Rust è la libreria fornita con ogni installazione di

- **[Collections](collections/vec.md)**
- **[Vec\<T\>](collections/vec.md)** - Array dinamico ridimensionabile
- **[HashMap\<K,V\>](collections/hashmap.md)** - Mappe chiave-valore
- **[HashSet\<T\>](collections/hashset.md)** - Insiemi di valori unici

### 📝 In Traduzione
- **[Stringhe](string/string.md)**
- **[String](string/string.md)** - Stringhe UTF-8 heap-allocated

Le seguenti sezioni sono nella roadmap e verranno tradotte prossimamente:

- **HashMap** e **HashSet** - Strutture dati basate su hash
- **String** - Stringhe heap-allocated
- **Option\<T\>** e **Result\<T, E\>** - Gestione valori opzionali ed errori
- **I/O** - Input/output e gestione file
- **[Iterators](iterators/index.md)** - Pattern e trait degli iteratori

### 📅 Pianificate

- Iterators - Pattern e trait degli iteratori
- **Option\<T\>** e **Result\<T, E\>** - Gestione valori opzionali ed errori
- **I/O** - Input/output e gestione file
- Smart Pointers - Box, Rc, Arc, Cell, RefCell
- Concurrency - Thread, canali, sincronizzazione
- Async - Programmazione asincrona
Expand Down
Loading