From 076029d15730fe5e8353f27bfd3970a39db396d8 Mon Sep 17 00:00:00 2001
From: blavenie <benoit.lavenier@e-is.pro>
Date: Sat, 25 Nov 2017 12:34:03 +0100
Subject: [PATCH] fix doc

---
 pom.xml                                   |  5 +--
 src/site/markdown/build.md                | 41 +++++++++++++++++++----
 src/site/markdown/development_tutorial.md | 21 +++++++++---
 3 files changed, 55 insertions(+), 12 deletions(-)

diff --git a/pom.xml b/pom.xml
index aa0b9e6b..954dffee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -118,8 +118,9 @@
     <!-- distribution management -->
     <projectId>${project.artifactId}</projectId>
     <site.server>eis-public-reports</site.server>
-    <distribution.site.host>doc.e-is.pro</distribution.site.host>
-    <site.repository>scpexe://${distribution.site.host}/var/www/doc.e-is.pro/duniter4j</site.repository>
+    <site.host>doc.e-is.pro</site.host>
+    <site.path>/var/www/doc.e-is.pro/duniter4j</site.path>
+    <site.repository>scpexe://${site.host}${site.path}</site.repository>
     <release.server>eis-nexus-deploy</release.server>
     <release.repository>http://nexus.e-is.pro/nexus/content/repositories/duniter4j-releases</release.repository>
     <snapshot.server>eis-nexus-deploy</snapshot.server>
diff --git a/src/site/markdown/build.md b/src/site/markdown/build.md
index 96d192aa..f96d926f 100644
--- a/src/site/markdown/build.md
+++ b/src/site/markdown/build.md
@@ -2,20 +2,49 @@
 # Build from source
 
 ## Get source and compile
+
+### Install Java JDK
+
+- Linux (Debian, Ubuntu): 
+
+```bash
+sudo apt-get install openjdk-8-jdk
+```
+
+- Windows: download then unzip  JDK (8 ou +) from [Oracle web site](http://oracle.com/java/index.html)
+
+
+### Install LibSodium
+
  
-Install required dependencies:
- 
-- Install Java JDK (8 or more) 
+- Linux : follow [this instructions](https://download.libsodium.org/doc/installation/index.html) (anglais).
+
+   * After install, check that the file `libsodium.so` exists inside directory `/usr/local/lib` or `/opt/local/lib`.
 
-- Install [libsodium](http://doc.libsodium.org/installation/index.html)
+   * If not exists, but at another location, please create a symbolic link under directory `/usr/local/lib` or `/opt/local/lib`.
 
-   * Linux: after [installation](http://doc.libsodium.org/installation/index.html), make sure the file 'libsodium.so' exists on: `/usr/local/lib` or `/opt/local/lib`.
-     If not, create a symbolic link.
+- Windows : Aucune instalation nécessaire (fichier `sodium.dll` déjà présent dans `duniter4j-core-shared/lib`);
 
    * Windows: copy the file 'sodium.dll' into directory 'duniter4j-core/lib/'
 
+
+### Installer Apache Maven 3
+
+Install [Apache Maven 3](http://maven.apache.org):
+
+- Linux (Debian, Ubuntu): 
+
+```bash
+    sudo apt-get install maven
+```
+
+- Windows : [download here](http://maven.apache.org/download.cgi) (version 3.x) then install using [this instructions](http://maven.apache.org/install.html).
+
+
 - Install [Maven 3](http://maven.apache.org/): `sudo apt-get install maven`
 
+### Get source the compile
+
 - Get the source code, then compile using Maven:
 
 ```
diff --git a/src/site/markdown/development_tutorial.md b/src/site/markdown/development_tutorial.md
index 10bacf00..cee4419b 100644
--- a/src/site/markdown/development_tutorial.md
+++ b/src/site/markdown/development_tutorial.md
@@ -200,12 +200,14 @@ La compilation du projet utilise Maven, par la commande  `mvn` (à ne pas confon
 
 #### Tout compiler
 
-Executez la commande suivante pour compiler l'ensemble du projet : 
+Executez la commande suivante pour compiler l'ensemble du projet :
+
 ```bash
 mvn install
 ```
 
-Si tout c'est bien passé, vous devriez obtenir quelque chose qui ressemble à cela : 
+Si tout c'est bien passé, vous devriez obtenir quelque chose qui ressemble à cela :
+
 ```bash
 (...)
 [INFO] Building zip: /home/eis/git/duniter/duniter4j/duniter4j-es-assembly/target/duniter4j-es-0.3.5-SNAPSHOT-standalone.zip
@@ -243,6 +245,7 @@ Par la suite, vous pourrez **ignorer les tests unitaires**, de cette manière :
 ```bash
 mvn install -DskipTests
 ```
+
 Cela permet une compilation plus rapide.
  
 ### Lancer un noeud ElasticSearch
@@ -338,11 +341,21 @@ En utilisant un navigateur, vous allez requêter .
 - [GET-1] Visualisez un bloc quelconque (par exemple le premier #0): http://localhost:9200/g1-test/block/0
   
 Etudiez ensuite le format du résultat : 
+
 ```json
-{"_index":"g1-test","_type":"block","_id":"0","_version":1,"found":true,"_source":{
- ...
+{
+  "_index":"g1-test",
+  "_type":"block",
+  "_id":"0",
+  "_version":1,
+  "found":true,
+  "_source": {
+    "number": 0,
+    "...": "..."
+  }
 }
 ```
+
 > Observez qu'ElasticSeach a ajouté des informations : `_index`, `_type`, etc.
 
 - [GET-2] Pour éviter d'avoir les informations additionnelles, ajoutez `/_source` : http://localhost:9200/g1-test/block/0/_source
-- 
GitLab