-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRunner.php
More file actions
22 lines (18 loc) · 717 Bytes
/
Copy pathRunner.php
File metadata and controls
22 lines (18 loc) · 717 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
/**
* User: maksimdanilchenko
* Date: 25.05.16
* Time: 20:59
*/
require 'MDParser.php';
$filename_prev = 'Chatvdvoem Socket Server API.md';//prev. revision filename
$filename = 'ZaxarGames Browser Documentation.md'; // current revision filename
$output_name = str_replace('.md','.html' ,$filename );
//$file_prev = file_get_contents('documents/test_prev.txt');
$file_prev = file_get_contents('documents/'.$filename_prev);
$file = file_get_contents('documents/'.$filename);
$parser = new MDParser();
$out = $parser->parseToHtml($file,0); //create html for currnt version
//$out = $parser->parseVersionCompare($file_prev,$file,2); //create compared html
file_put_contents('outputs/'.$output_name,$out);
?>