File tree Expand file tree Collapse file tree 2 files changed +68
-0
lines changed
Expand file tree Collapse file tree 2 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ # Documentation en Français
2+
3+ [ Site de la documentation en français] ( https://lnp2pbot.com/apprendre/ )
4+
5+ ## Pour les contributeurs
6+
7+ ### Prérequis
8+
9+ * Installer [ Just] ( https://github.com/casey/just )
10+ ``` bash
11+ cargo install just
12+ ```
13+
14+ ### Procédures
15+
16+ #### Initialiser le projet
17+
18+ Initialise le projet de documentation mdBook avec les dépendances requises.
19+
20+ ``` bash
21+ just init
22+ ```
23+
24+ #### Servir localement
25+
26+ Démarre un serveur de développement local avec rechargement en direct pour prévisualisation.
27+
28+ ``` bash
29+ just serve
30+ ```
31+
32+ #### Compiler la documentation
33+
34+ Génère le site de documentation statique pour le déploiement en production.
35+
36+ ``` bash
37+ just build
38+ ```
Original file line number Diff line number Diff line change 1+ # Documentation management tasks
2+ # Usage:
3+ # just init - Install required tools
4+ # just build - Build the documentation
5+ # just serve - Serve the documentation locally
6+
7+ # Set the default recipe to print help
8+ default :
9+ @ just --list
10+
11+ init :
12+ #!/usr/bin/env sh
13+ command -v cargo >/ dev/ null 2 >&1 || { echo " Error: cargo is required but not installed. Please install Rust toolchain first." >&2 ; exit 1 ; }
14+ echo " Installing/updating mdbook..."
15+ cargo install mdbook --version 0.4.37 || { echo " Error: Failed to install mdbook" >&2 ; exit 1 ; }
16+ echo " Installing/updating mdbook-admonish..."
17+ cargo install mdbook-admonish --version 1.15.0 || { echo " Error: Failed to install mdbook-admonish" >&2 ; exit 1 ; }
18+ echo " Setup completed successfully!"
19+
20+ serve :
21+ #!/usr/bin/env sh
22+ port=" 3000"
23+ echo " Starting documentation server on http://localhost:${port}"
24+ mdbook serve --port ${port} || { echo " Error: Failed to start server" >&2 ; exit 1 ; }
25+
26+ build :
27+ #!/usr/bin/env sh
28+ echo " Building documentation..."
29+ mdbook build || { echo " Error: Build failed" >&2 ; exit 1 ; }
30+ echo " Build completed successfully!"
You can’t perform that action at this time.
0 commit comments