Cours d'initiation à XML.
Plate-forme de test : Ubuntu 14.04.2
node.js
npm
reveal.js
(Cf. ci-dessous)pandoc
(Cf. ci-dessous)
Pour cloner complètement ce projet :
$ git clone --recursive https://github.com/dgricci/xml-1a
- Installation de Grunt :
$ sudo http_proxy=host:port https_proxy=host:port npm install -g grunt-cli
# certains répertoires de $HOME/.npm appartiennent à root avec l'installation
# de grunt-cli en global, les re-donner à $USER :
$ sudo chown -R $USER:$(groups $USER | sed -e 's/^.* : //' | cut -d\ -f1) $HOME/.npm/{nopt,minimatch,glob,lodash,inherits}
Dans le répertoire du projet :
$ cd externals/reveal.js
$ http_proxy=host:port https_proxy=host:port npm install grunt
$ http_proxy=host:port https_proxy=host:port npm install grunt-contrib-qunit \
grunt-contrib-jshint grunt-contrib-cssmin grunt-contrib-uglify \
grunt-contrib-watch grunt-sass grunt-contrib-connect grunt-autoprefixer \
grunt-zip
$ grunt cssmin uglify
Il faut installer le paquet libghc-highlighting-kate-dev
:
$ sudo apt-get install libghc-highlighting-kate-dev
Il est possible de tester la génération d'un diaporama avec :
$ pandoc -s -t revealjs -i --slide-level=1 --self-contained -o README.html README.md
Puis d'ouvrir le fichier README.html
dans un navigateur.
- Ouvrir le ficher
README.html
dans un navigateur en ajoutant?print-pdf
dans l'URL ; - Imprimer :
- Paysage
- A4
- Pas de marge
- Impression des images de fond
- Enregistrer dans un fichier