Skip to content

Commit 57e632f

Browse files
committed
Première version.
1 parent 2ade6b7 commit 57e632f

File tree

5 files changed

+632
-1
lines changed

5 files changed

+632
-1
lines changed

LICENSE

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
This program is free software; you can redistribute it and/or modify
2+
it under the terms of the GNU General Public License as published by
3+
the Free Software Foundation; either version 2 of the License, or
4+
(at your option) any later version.
5+
6+
This program is distributed in the hope that it will be useful,
7+
but WITHOUT ANY WARRANTY; without even the implied warranty of
8+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9+
GNU General Public License for more details.
10+
11+
For the complete terms of the GNU General Public License, please see this URL:
12+
http://www.gnu.org/licenses/gpl-2.0.html

README.md

+48-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,51 @@
11
dokuwiki-plugin-microalg
22
========================
33

4-
Embed MicroAlg snippets http://microalg.info
4+
Pitch
5+
-----
6+
7+
Incorporez des échantillons interactifs de code [MicroAlg](http://microalg.info)
8+
dans votre installation de [Dokuwiki](http://dokuwiki.org/). Voir
9+
[la galerie MicroAlg](http://galerie.microalg.info/)).
10+
11+
Contenu
12+
-------
13+
14+
Le plugin est constitué de :
15+
16+
* `syntax.php`, qui transforme le contenu des balises `(MicroAlg)` en
17+
échantillon interactif (lors du rendu html) ;
18+
* `render.php`, qui apporte un rendu `microalg` pour l’export des pages vers
19+
des fichiers `.malg`. Son travail est de mettre la page à plat (voir le
20+
[plugin:text](https://www.dokuwiki.org/plugin:text)) et d’ajouter un `#`
21+
devant chaque ligne (commentaire PicoLisp) qui ne serait pas du code MicroAlg.
22+
23+
Installation
24+
------------
25+
26+
En plus d’une installation classique d’un plugin Dokuwiki, il vous faudra :
27+
28+
**1)** Ajouter un fichier `meta.html` à votre template :
29+
30+
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
31+
<script src="emulisp/emulisp_core.js" type="text/javascript"></script>
32+
<link rel="stylesheet" type="text/css" href="web/style.css" />
33+
<script type="text/javascript" src="web/ide_injections.js"></script>
34+
<script type="text/javascript" src="web/parenedit.js"></script>
35+
<link type="text/css" href="web/parenedit.css" rel="stylesheet" />
36+
<script type="text/javascript" src="web/showdown.js"></script>
37+
38+
**2)** Pour l’export des pages en `.malg`, ajouter ceci quelque part :
39+
40+
<div class="docInfo">
41+
<a href="<?php echo exportlink($ID, 'microalg')?>">Télécharger le .malg</a>
42+
</div>
43+
44+
(qui ne fait rien d’autre qu’ajouter `?do=export_microalg` à l’URL).
45+
46+
Communication
47+
-------------
48+
49+
Merci aux auteurs du [plugin:text](https://www.dokuwiki.org/plugin:text).
50+
51+
Si jamais vous vous servez de ce plugin, merci de faire un signe !

plugin.info.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
base microalg
2+
author ProfGra
3+
4+
date 2014-10-04
5+
name microalg plugin
6+
desc Embed MicroAlg snippets
7+
url https://github.com/Microalg/dokuwiki-plugin-microalg

0 commit comments

Comments
 (0)