From 003a1f781faf59a086a1a691afc86d8b29485aeb Mon Sep 17 00:00:00 2001 From: gcolpart Date: Fri, 20 Jan 2017 15:07:07 +0100 Subject: [PATCH] relecture --- HowtoGitit.md | 59 +++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 52 insertions(+), 7 deletions(-) diff --git a/HowtoGitit.md b/HowtoGitit.md index dc19c4e4..4e43ed96 100644 --- a/HowtoGitit.md +++ b/HowtoGitit.md @@ -1,16 +1,24 @@ --- -categories: git +categories: git wiki title: Howto GitIt ---- +... -* Dépôt officiel : +* Site/dépôt officiel : + +**Gitit** est un wiki basé sur [Git](HowtoGit) et écrit en [Haskell](https://fr.wikipedia.org/wiki/Haskell). Il permet l'édition de pages en utilisant la syntaxe [Markdown](https://fr.wikipedia.org/wiki/Markdown), directement via _Git_ ou via une interface web. Au niveau rendu, il génère des pages HTML avec un style personnalisable via des templates, et permet aussi l'export en TXT/ODT/etc ; il intègre également un moteur de recherche. utilise fièrement Gitit ! ## Installation -### Paquet Debian (version 0.10) +### Paquet Debian ~~~ # apt install gitit + +$ gitit --version +gitit version 0.10.4 +plugins +Copyright (C) 2008 John MacFarlane +This is free software; see the source for copying conditions. There is no +warranty, not even for merchantability or fitness for a particular purpose. ~~~ ### Manuellement @@ -25,17 +33,28 @@ title: Howto GitIt $ cabal update $ cabal install gitit $ echo PATH="$HOME/.cabal/bin:$PATH" > ~/.profile + +$ gitit --version +gitit version 0.12.2 -plugins ~~~ Note : `/tmp` doit être en EXEC pendant l'installation +Pour la mise à jour : + +~~~ +$ cabal update +$ cabal install gitit +~~~ + + ## Configuration ~~~ $ gitit --print-default-config > gitit.conf ~~~ -`gitit.conf` : +Exemple de configuration pour `gitit.conf` : ~~~ address: 127.0.0.1 @@ -49,7 +68,7 @@ no-delete: index, Help use-cache: yes ~~~ -`/etc/nginx/sites-available/gitit.conf` : +Exemple de configuration [Nginx](HowtoNginx) `/etc/nginx/sites-available/gitit.conf` : ~~~ server { @@ -75,11 +94,37 @@ server { ## Lancement +On peut lancer manuellement : + ~~~ $ gitit -f gitit.conf ~~~ -Pour voir la liste des langages supportés pour le highlighting : +Exemple d'unité [systemd](HowtoSystemd) : + +~~~ +[Unit] +Description=Wiki gitit +After=network.target + +[Service] +User=giti +Group=gitit +UMask=0027 + +WorkingDirectory=/home/gitit +PrivateTmp=true + +ExecStart=/home/gitit/.cabal/bin/gitit -f /home/gitit/gitit.conf +KillMode=process +Restart=on-failure + +[Install] +WantedBy=multi-user.target +Alias=wiki.service +~~~ + +Pour voir la liste des langages supportés pour le _highlighting_ : ~~~ $ pandoc -v