relecture
This commit is contained in:
parent
c4b91fc727
commit
003a1f781f
|
@ -1,16 +1,24 @@
|
||||||
---
|
---
|
||||||
categories: git
|
categories: git wiki
|
||||||
title: Howto GitIt
|
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
|
## Installation
|
||||||
|
|
||||||
### Paquet Debian (version 0.10)
|
### Paquet Debian
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
# apt install gitit
|
# 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
|
### Manuellement
|
||||||
|
@ -25,17 +33,28 @@ title: Howto GitIt
|
||||||
$ cabal update
|
$ cabal update
|
||||||
$ cabal install gitit
|
$ cabal install gitit
|
||||||
$ echo PATH="$HOME/.cabal/bin:$PATH" > ~/.profile
|
$ echo PATH="$HOME/.cabal/bin:$PATH" > ~/.profile
|
||||||
|
|
||||||
|
$ gitit --version
|
||||||
|
gitit version 0.12.2 -plugins
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
Note : `/tmp` doit être en EXEC pendant l'installation
|
Note : `/tmp` doit être en EXEC pendant l'installation
|
||||||
|
|
||||||
|
Pour la mise à jour :
|
||||||
|
|
||||||
|
~~~
|
||||||
|
$ cabal update
|
||||||
|
$ cabal install gitit
|
||||||
|
~~~
|
||||||
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
$ gitit --print-default-config > gitit.conf
|
$ gitit --print-default-config > gitit.conf
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
`gitit.conf` :
|
Exemple de configuration pour `gitit.conf` :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
address: 127.0.0.1
|
address: 127.0.0.1
|
||||||
|
@ -49,7 +68,7 @@ no-delete: index, Help
|
||||||
use-cache: yes
|
use-cache: yes
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
`/etc/nginx/sites-available/gitit.conf` :
|
Exemple de configuration [Nginx](HowtoNginx) `/etc/nginx/sites-available/gitit.conf` :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
server {
|
server {
|
||||||
|
@ -75,11 +94,37 @@ server {
|
||||||
|
|
||||||
## Lancement
|
## Lancement
|
||||||
|
|
||||||
|
On peut lancer manuellement :
|
||||||
|
|
||||||
~~~
|
~~~
|
||||||
$ gitit -f gitit.conf
|
$ 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
|
$ pandoc -v
|
||||||
|
|
Loading…
Reference in a new issue