Commit eda12845 authored by Marie Bisson's avatar Marie Bisson
Browse files

proposition de réorganisation du début de la doc avec des couleurs plus belles et une page daccueil

parent 74059f2e
Loading
Loading
Loading
Loading
+77
Changes for documentation/docs/css/mermaid.css: 77 added lines, 0 removed lines.
Original line number Diff line number Diff line
/* Flowchart variables */


/* Sequence Diagram variables */


/* Gantt chart variables */

.mermaid .label {
    color: #333;
    text-align: center;
}

.node rect,
.node circle,
.node ellipse,
@@ -12,157 +19,205 @@
    stroke: #CCCCFF;
    stroke-width: 1px;
}

.edgePath .path {
    stroke: #333333;
}

.edgeLabel {
    background-color: #e8e8e8;
}

.cluster rect {
    fill: #ffffde !important;
    rx: 4 !important;
    stroke: #aaaa33 !important;
    stroke-width: 1px !important;
}

.cluster text {
    fill: #333;
}

.actor {
    stroke: #CCCCFF;
    fill: #ECECFF;
}

text.actor {
    fill: black;
    stroke: none;
}

.actor-line {
    stroke: grey;
}

.messageLine0 {
    stroke-width: 1.5;
    stroke-dasharray: "2 2";
    marker-end: "url(#arrowhead)";
    stroke: #333;
}

.messageLine1 {
    stroke-width: 1.5;
    stroke-dasharray: "2 2";
    stroke: #333;
}

#arrowhead {
    fill: #333;
}

#crosshead path {
    fill: #333 !important;
    stroke: #333 !important;
}

.messageText {
    fill: #333;
    stroke: none;
}

.labelBox {
    stroke: #CCCCFF;
    fill: #ECECFF;
}

.labelText {
    fill: black;
    stroke: none;
}

.loopText {
    fill: black;
    stroke: none;
}

.loopLine {
    stroke-width: 2;
    stroke-dasharray: "2 2";
    marker-end: "url(#arrowhead)";
    stroke: #CCCCFF;
}

.note {
    stroke: #aaaa33;
    fill: #fff5ad;
}

.noteText {
    fill: black;
    stroke: none;
    font-family: 'trebuchet ms', verdana, arial;
    font-size: 14px;
}


/** Section styling */

.section {
    stroke: none;
    /* below commented out because it conflicts with the readthedocs theme */
    /*  opacity: 0.2; */
}

.section0 {
    fill: rgba(102, 102, 255, 0.49);
}

.section2 {
    fill: #fff400;
}

.section1,
.section3 {
    fill: white;
    opacity: 0.2;
}

.sectionTitle0 {
    fill: #333;
}

.sectionTitle1 {
    fill: #333;
}

.sectionTitle2 {
    fill: #333;
}

.sectionTitle3 {
    fill: #333;
}

.sectionTitle {
    text-anchor: start;
    font-size: 11px;
    text-height: 14px;
}


/* Grid and axis */

.grid .tick {
    stroke: lightgrey;
    opacity: 0.3;
    shape-rendering: crispEdges;
}

.grid path {
    stroke-width: 0;
}


/* Today line */

.today {
    fill: none;
    stroke: red;
    stroke-width: 2px;
}


/* Task styling */


/* Default task */

.task {
    stroke-width: 2;
}

.taskText {
    text-anchor: middle;
    font-size: 11px;
}

.taskTextOutsideRight {
    fill: black;
    text-anchor: start;
    font-size: 11px;
}

.taskTextOutsideLeft {
    fill: black;
    text-anchor: end;
    font-size: 11px;
}


/* Specific task settings for the sections*/

.taskText0,
.taskText1,
.taskText2,
.taskText3 {
    fill: white;
}

.task0,
.task1,
.task2,
@@ -170,15 +225,20 @@ text.actor {
    fill: #8a90dd;
    stroke: #534fbc;
}

.taskTextOutside0,
.taskTextOutside2 {
    fill: black;
}

.taskTextOutside1,
.taskTextOutside3 {
    fill: black;
}


/* Active task */

.active0,
.active1,
.active2,
@@ -186,13 +246,17 @@ text.actor {
    fill: #bfc7ff;
    stroke: #534fbc;
}

.activeText0,
.activeText1,
.activeText2,
.activeText3 {
    fill: black !important;
}


/* Completed task */

.done0,
.done1,
.done2,
@@ -201,13 +265,17 @@ text.actor {
    fill: lightgrey;
    stroke-width: 2;
}

.doneText0,
.doneText1,
.doneText2,
.doneText3 {
    fill: black !important;
}


/* Tasks on the critical line */

.crit0,
.crit1,
.crit2,
@@ -216,6 +284,7 @@ text.actor {
    fill: red;
    stroke-width: 2;
}

.activeCrit0,
.activeCrit1,
.activeCrit2,
@@ -224,6 +293,7 @@ text.actor {
    fill: #bfc7ff;
    stroke-width: 2;
}

.doneCrit0,
.doneCrit1,
.doneCrit2,
@@ -234,31 +304,38 @@ text.actor {
    cursor: pointer;
    shape-rendering: crispEdges;
}

.doneCritText0,
.doneCritText1,
.doneCritText2,
.doneCritText3 {
    fill: black !important;
}

.activeCritText0,
.activeCritText1,
.activeCritText2,
.activeCritText3 {
    fill: black !important;
}

.titleText {
    text-anchor: middle;
    font-size: 18px;
    fill: black;
}


/*


*/

.node text {
    font-family: 'trebuchet ms', verdana, arial;
    font-size: 14px;
}

div.mermaidTooltip {
    position: absolute;
    text-align: center;
+77
Changes for documentation/docs/css/test.css: 77 added lines, 0 removed lines.
Original line number Diff line number Diff line
        div.wy-side-nav-search {
            z-index: 200;
            background-color: #93A9BE;
            text-align: center;
            padding: 0.809em;
            display: block;
            color: #fcfcfc;
            margin-bottom: 0.809em;
        }
        
        body {
            font-family: "Lato", "proxima-nova", "Helvetica Neue", Arial, sans-serif;
            font-weight: normal;
            background-color: #274868;
        }
        
        body.wy-body-for-nav {
            background-color: #274868;
        }
        
        nav.wy-nav-side {
            position: absolute;
            top: 0;
            left: 0;
            width: 300px;
            overflow: hidden;
            overflow-y: hidden;
            min-height: 100%;
            background: #274868;
            z-index: 200;
        }
        
        .rst-versions {
            background: #274868;
        }
        
        .rst-versions .rst-current-version {
            padding: 12px;
            background-color: #274868;
            display: block;
            text-align: right;
            font-size: 90%;
            cursor: pointer;
            color: #27AE60;
            *zoom: 1;
        }
        
        .wy-menu-vertical li.current {
            background-color: #97AABD;
        }
        
        li.current>a.current {
            background: #6F8199;
        }
        
        .wy-menu-vertical a {
            display: inline-block;
            line-height: 18px;
            padding: 0.4045em 1.618em;
            display: block;
            position: relative;
            font-size: 90%;
            color: #fff;
        }
        
        code,
        .rst-content tt {
            white-space: nowrap;
            max-width: 100%;
            background: #fff;
            border: solid 1px #e1e4e5;
            font-size: 75%;
            padding: 0 5px;
            font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
            color: #0096FF;
            overflow-x: auto;
        }
 No newline at end of file
+32 −4
Changes for documentation/docs/files.md: 32 added lines, 4 removed lines.
Original line number Diff line number Diff line
# Organisation des fichiers

# Organisation des dossiers et des fichiers

<div class="mermaid">
graph LR;
classDef default color:#274868, fill:#fff, stroke:#274868;
    max-->A
    max-->B
    max-->C
    max-->D
    max-->E
    max-->F
    max-->G
    max-->H
    max-->I
    max-->J
    A-->A1
    C-.->C1
    max["projet-MaX"]
    A["configuration"]
    A1("fichiers de configuration<br/>configuration.xml")
    B["documentation"]
    C["editions"]
    C1["un dossier par édition<br/>lien(s) symbolique(s) vers le dossier projets-editions"]
    D["node_modules"] 
    E["plugins"]
    F["rxq"]
    G["tools"]
    H["ui"]
    I("package.json")
    J("max.xq")
</div>

* **configuration**: contient le/les fichiers de configuration
* **documentation**: contient la documentation de MaX
* **editions**: dossier des *éditions* (ou *projets*) hébergées par l'instance de MaX. Chaque édition à son propre dossier dans lequel sont stockés ses ressources HTML, XSLT, CSS, Javascript, XQuery, etc.
* **node_modules**: dossier des dépendances node.js installées. Ce dossier n'est créé qu'a l'initialisation de MaX (ou lors d'un ```npm install```)
* **editions**: dossier des *éditions* hébergées par l’instance de MaX. Chaque édition à son propre dossier dans lequel sont stockés ses ressources propres : HTML, XSLT, CSS, Javascript, XQuery, etc. voir [Creation d’une edition](../script/#creation)
* **node_modules**: dossier des dépendances node.js installées. Ce dossier n'est créé qu’a l’initialisation de MaX (voir étape 6 de la[procédures d'installation](../install/#procedure)) ou lors d'un `npm install`
* **plugins**: dossier des plugins disponibles. Chaque plugin dispose de son propre dossier de ressources: fichiers Javascript, XQuery, XSL, ...
* **rxq**: ensemble des modules RestXQ
* **tools**: outils de déploiement : édition de démonstration, nouvelle édition, activation & désactivation de plugins
−6

File deleted.

+14 −129
Changes for documentation/docs/index.md: 14 added lines, 129 removed lines.
Original line number Diff line number Diff line
# Installation
# Documentation d’utilisation MaX
Certic – Pôle Document numérique

## Prérequis
## Avant-propos

* Java 8+
* NodeJS (et npm) 10+
* xmllint
* BaseX 9.2+
Cette documentation en cours de rédaction concerne la branche [dev de l’application MaX](https://git.unicaen.fr/pdn-certic/MaX/-/tree/dev).

Elle a été rédigée à destination : 

## Recommandations architecture
- d’ingénieurs en analyses de sources historiques et culturelles ;
- d’éditeurs de corpus numériques ;

Par projet, l’éditeur va avoir besoin : 
par : 

- d’une application baseX pouvant être téléchargée [ici](https://basex.org/download/);
- d’une instance du Moteur d’Affichage XML MaX hébergée [ici](https://git.unicaen.fr/pdn-certic/MaX);
- d’autant d’éditions que de *corpus* à traiter différemment graphiquement (sommaire, logos, page statiques, options d’affichage, etc.).
- des développeurs ;
- des ingénieurs en analyses de sources historiques et culturelles ;
- des éditeurs de corpus numériques ;

On recommande donc l’organisation suivante : un dossier *projet* va contenir : 
du 

- un dossier baseX : nommé *projet*-basex ;
- un dossier MaX : nommé *projet*-MaX ;
- un dossier pour les éditions : nommé *projet*-editions.

### Exemple

<div class="mermaid">
graph LR;
classDef default color:#5F9EA0, fill:#fff, stroke:#5F9EA0;
    projet-->A
    projet-->B
    projet-->C
    projet["thecae"]
    A["thecae-basex"]
    B["thecae-MaX"]
    C["thecae-editions"] 
</div>


Les dossiers seront liés les uns aux autres au moyen de liens symboliques.

<div class="mermaid">
graph LR;
classDef default color:#5F9EA0, fill:#fff, stroke:#5F9EA0;
    projet-->A
    projet-->B
    projet-->C
    A-.->B
    B-.->C
    projet["thecae"]
    A["thecae-basex"]
    B["thecae-MaX"]
    C["thecae-editions"] 
</div>

## Commandes

1) Se placer dans le dossier *projet*
 
``cd le/chemin/vers/mon/projet``

2) Dézipper l’application baseX dans le dossier *projet*

``unzip basex.zip``

3) Renommer l’application basex

``mv basex projet-basex`` 

|Nota bene|
|---------|
|Deux bibliothèques sont à ajouter dans le dossier lib de basex|
|1) saxon9he.jar pour utiliser les XSL ; |
|2) FOP.jar pour générer les PDF avec XSL-FO. |

Vous pouvez télécharger : 

- FOP : [ici](https://files.basex.org/modules/org/basex/modules/fop/FOP.jar)
- Saxon9 : [ici](https://sourceforge.net/projects/saxon/files/Saxon-HE/9.9/)

4) Récupérer le code source de MaX

`git clone -b dev https://git.unicaen.fr/pdn-certic/MaX.git` 

5) Renommer le dossier MaX

``mv MaX projet-MaX``

6) Initialisation de MaX et installation des dépendances

`cd projet-MaX/tools`

``./max.sh -i``

=> Si vous avez le message suivant ``Please install BaseX or set $BASEX_PATH environment variable``, il faut alors indiquer le chemin vers le basex au moyen de la commande suivante :

`export BASEX_PATH=../../projet-BaseX`

7) Création d’un lien symbolique depuis BaseX pointant vers MaX
 
 ``cd ../../projet-basex/webapp``
 
 `sudo ln -s ../../projet-MaX MaX` 

8) Lancement du serveur HTTP de BaseX

`cd ../../projet-basex/bin`

`./basexhttp &`

=> Vous pouvez vérifier l’installation en consultant [http://localhost:8984/max](http://localhost:8984/max)

|Nota Bene pour Jérôme |
|----------------------|
|Quand on saisit ce lien : on a un message d’erreur : ce qui est un peu stressant pour un nouvel utilisateur ;-)|


Si vous voulez configurez vos ports de manière spécifique pour votre projet, faites les étapes suivantes : 

9) Arrêt du serveur HTTP de BaseX

`./basexhttpstop`

10)  Modification des ports START et STOP dans le fichier caché ``.basex``  (qui se trouve à la racine du dossier ``projet-basex``)

* l.  13 et 14  : changer le port START (par défaut 1984)
* l. 38 : changer le port STOP (par défaut 8985)

11) Modification du port dans le fichier jetty.xml (dossier webapp > WEB-INF > jetty.xml)

* l. 13 : changer la contenu de l’élément ``<Set name="port">8994</Set>``

12) Relancer votre serveur http de basex

`./basexhttp&`

=> Vous pouvez vérifier l’installation en consultant [http://localhost:nouveauportdéclarédanslejetty/max](http://localhost:nouveauport/max) 
 No newline at end of file
- [CERTIC](https://www.certic.unicaen.fr/home/)
- [Pôle Document numérique](http://www.unicaen.fr/recherche/mrsh/document_numerique)
 No newline at end of file
Loading