HowtoGitit : corrections de syntaxe

This commit is contained in:
Jérémy Lecour 2017-01-20 10:48:10 +01:00 committed by Jérémy Lecour
parent 12da9fd27c
commit 4ab0105c5e

View file

@ -1,4 +1,7 @@
# Howto gitit ---
categories: git
title: Howto GitIt
---
<https://github.com/jgm/gitit/tree/master/> <https://github.com/jgm/gitit/tree/master/>
@ -6,24 +9,33 @@
### Paquet Debian (version 0.10) ### Paquet Debian (version 0.10)
# apt install gitit ~~~
# apt install gitit
~~~
### Manuellement ### Manuellement
# apt install cabal-install ghc zlib1g-dev ~~~
# adduser gitit # apt install cabal-install ghc zlib1g-dev
# sudo -ui gitit # adduser gitit
$ cabal update # sudo -ui gitit
$ cabal install gitit ~~~
$ echo PATH="$HOME/.cabal/bin:$PATH" > ~/.profile
Note : /tmp doit être en EXEC pendant l'installation ~~~
$ cabal update
$ cabal install gitit
$ echo PATH="$HOME/.cabal/bin:$PATH" > ~/.profile
~~~
Note : `/tmp` doit être en EXEC pendant l'installation
## Configuration ## Configuration
$ gitit --print-default-config > gitit.conf ~~~
$ gitit --print-default-config > gitit.conf
~~~
gitit.conf : `gitit.conf` :
~~~ ~~~
address: 127.0.0.1 address: 127.0.0.1
@ -37,7 +49,7 @@ no-delete: index, Help
use-cache: yes use-cache: yes
~~~ ~~~
/etc/nginx/sites-available/gitit.conf : `/etc/nginx/sites-available/gitit.conf` :
~~~ ~~~
server { server {
@ -63,9 +75,12 @@ server {
## Lancement ## Lancement
$ gitit -f gitit.conf ~~~
$ gitit -f gitit.conf
~~~
Pour voir la liste des langages supportés pour le highlighting : Pour voir la liste des langages supportés pour le highlighting :
$ pandoc -v ~~~
$ pandoc -v
~~~