diff --git a/README.md b/README.md
new file mode 100644
index 0000000..a47f137
--- /dev/null
+++ b/README.md
@@ -0,0 +1,22 @@
+# ĞMarché
+
+Implémentation en Rust du site des ĞMarchés.
+
+## Configuration
+
+Aucun autre logiciel n'est requis. Un webserver (e.g. Apache, Nginx) ou autre (e.g. stunnel, ssl-proxy) peut être utilisé en reverse-proxy, par exemple pour utiliser HTTPS.
+
+Initialisez la configuration :
+
+ gmarche init
+
+Modifiez la configuration dans `~/.config/gmarche/config.json`. Vous pouvez aussi modifier les templates HTML et les fichiers statiques dans ce dossier.
+
+Lancez le serveur :
+
+ gmarche start
+
+L'option `-d
` permet de changer le dossier de données/config (par exemple pour lancer plusieurs instances) :
+
+ gmarche -d mon/autre/dossier/ start|init
+
diff --git a/src/server.rs b/src/server.rs
index 112fa8b..8961357 100644
--- a/src/server.rs
+++ b/src/server.rs
@@ -163,7 +163,9 @@ pub async fn start_server(
.collect::>(),
);
} else {
- return handle_index(&[ErrorTemplate {text: "Le mot de passe de l'annonce est incorrect."}]);
+ return handle_index(&[ErrorTemplate {
+ text: "Le mot de passe de l'annonce est incorrect.",
+ }]);
}
}
}
diff --git a/src/static_files.rs b/src/static_files.rs
index a7844e6..d9f8456 100644
--- a/src/static_files.rs
+++ b/src/static_files.rs
@@ -7,7 +7,10 @@ static STATIC_FILES: &'static [(&str, &[u8])] = &[
("banner.jpg", include_bytes!("../static/banner.jpg")),
("icon.png", include_bytes!("../static/icon.png")),
("Karma-Bold.otf", include_bytes!("../static/Karma-Bold.otf")),
- ("LinBiolinum_R.otf", include_bytes!("../static/LinBiolinum_R.otf")),
+ (
+ "LinBiolinum_R.otf",
+ include_bytes!("../static/LinBiolinum_R.otf"),
+ ),
];
pub fn init_static_files(dir: &Path) {
diff --git a/static/style1.css b/static/style1.css
index c11ac4c..3148854 100644
--- a/static/style1.css
+++ b/static/style1.css
@@ -58,7 +58,7 @@ table {
border-collapse: collapse;
}
-td {
+td, th {
padding: 2px;
border: 1px solid #666;
}
diff --git a/templates/index.html b/templates/index.html
index 637d98a..1a84448 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -30,7 +30,7 @@