relecture

This commit is contained in:
gcolpart 2017-01-20 15:07:07 +01:00
parent c4b91fc727
commit 003a1f781f

View file

@ -1,16 +1,24 @@
---
categories: git
categories: git wiki
title: Howto GitIt
---
...
* Dépôt officiel : <https://github.com/jgm/gitit/tree/master/>
* Site/dépôt officiel : <https://github.com/jgm/gitit/tree/master/>
**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. <https://wiki.evolix.org> 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