-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.php
83 lines (82 loc) · 2.56 KB
/
build.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?php
/**
* Génère les formats détachés et le site statique basique sur Œuvres
*/
set_time_limit(-1);
include( dirname(dirname(__FILE__))."/Teinte/Build.php" );
$build = new Teinte_Build (
array(
"sets" => array(
"dumas" => array(
"glob" => '../dumas/*_*.xml',
"publisher" => 'Œuvres',
"source" => "http://oeuvres.github.io/dumas/%s.xml",
),
"baudelaire" => array(
"glob" => '../baudelaire/*_*.xml',
"publisher" => 'Œuvres',
"source" => "http://oeuvres.github.io/baudelaire/%s.xml",
),
"flaubert" => array(
"glob" => '../flaubert/*_*.xml',
"publisher" => 'Œuvres',
"source" => "http://oeuvres.github.io/flaubert/%s.xml",
),
"hugo" => array(
"glob" => '../hugo/*_*.xml',
"publisher" => 'Œuvres',
"source" => "http://oeuvres.github.io/hugo/%s.xml",
),
"maupassant" => array(
"glob" => '../maupassant/*_*.xml',
"publisher" => 'Œuvres',
"source" => "http://oeuvres.github.io/maupassant/%s.xml",
),
"poesie" => array(
"glob" => '../poesie/*_*.xml',
"publisher" => 'Œuvres',
"source" => "http://oeuvres.github.io/poesie/%s.xml",
),
"proust" => array(
"glob" => '../proust/*_*.xml',
"publisher" => 'Œuvres',
"source" => "http://oeuvres.github.io/proust/%s.xml",
),
"stendhal" => array(
"glob" => '../stendhal/*_*.xml',
"publisher" => 'Œuvres',
"source" => "http://oeuvres.github.io/stendhal/%s.xml",
),
"textes" => array(
"glob" => '../textes/*_*.xml',
"publisher" => 'Œuvres',
// "identifier" => "http://obvil.paris-sorbonne.fr/corpus/moliere/%s",
"source" => "http://oeuvres.github.io/textes/%s.xml",
),
"verlaine" => array(
"glob" => '../verlaine/*_*.xml',
"publisher" => 'Œuvres',
"source" => "http://oeuvres.github.io/verlaine/%s.xml",
),
"verne" => array(
"glob" => '../verne/*_*.xml',
"publisher" => 'Lille III',
"source" => "http://oeuvres.github.io/verne/%s.xml",
),
"zola" => array(
"glob" => '../zola/*_*.xml',
"publisher" => 'Œuvres',
"source" => "http://oeuvres.github.io/zola/%s.xml",
),
),
"sqlite" => "oeuvres.sqlite",
"formats" => "article, epub, kindle, html, iramuteq, markdown",
)
);
$build->sets( );
ob_start();
include( 'index.php' );
$html = ob_get_contents();
ob_end_clean();
file_put_contents( "index.html", $html );
?>