Skip to content

Commit b89f4ff

Browse files
committed
Generating static pages for distro
1 parent 3c194d3 commit b89f4ff

2 files changed

Lines changed: 108 additions & 62 deletions

File tree

generate/staticpages_local.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?
2+
3+
require('../config.php');
4+
$benchmark_start = microtime_float();
5+
6+
7+
// make troubleshooting page
8+
$source = CONTENTDIR."static/";
9+
#$path = BASEDIR;
10+
11+
#$source = CONTENTDIR."/api_$lang/troubleshooting/";
12+
#$path = DISTDIR."/troubleshooting/";
13+
#make_necessary_directories($path."images/file");
14+
#$page = new LocalPage('Troubleshooting \\ Processing 1.0 (BETA)', 'Troubleshooting', 'Troubleshooting', '../');
15+
#$page->content(file_get_contents($source."index.html"));
16+
#$page->language($lang);
17+
#writeFile('distribution/troubleshooting/index.html', $page->out());
18+
#copydirr($source.'/images', $path.'/images');
19+
20+
$page = new LocalPage('FAQ \\ Processing 1.0 (BETA)', "FAQ", "FAQ", './');
21+
$page->content(file_get_contents($source."faq.html"));
22+
writeFile('faq.html', $page->out());
23+
#copydirr($source.'/images', $path.'/images');
24+
25+
$page = new LocalPage('Contribute \\ Processing 1.0 (BETA)', "Contribute", "Contribute", '../');
26+
$page->content(file_get_contents($source."contribute.html"));
27+
writeFile('distribution/contribute/index.html', $page->out());
28+
29+
$page = new LocalPage('Copyright \\ Processing 1.0 (BETA)', "Copyright", "Copyright", './');
30+
$page->content(file_get_contents($source."copyright.html"));
31+
writeFile('distribution/copyright.html', $page->out());
32+
33+
$page = new LocalPage('People \\ Processing 1.0 (BETA)', "People", "People", './');
34+
$page->content(file_get_contents($source."people.html"));
35+
writeFile('distribution/people.html', $page->out());
36+
37+
38+
$benchmark_end = microtime_float();
39+
$execution_time = round($benchmark_end - $benchmark_start, 4);
40+
41+
?>
42+
43+
<h2>Static page generation Successful</h2>
44+
<p>Generated files in <?=$execution_time?> seconds.</p>
45+
<!--<p>Page put here: <?=$source."faq.html"?></p>-->
46+
<!--<p>Page put here: <?=$path.'faq.html'?></p>-->

templates/template.local.html

Lines changed: 62 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
1-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<!--*-->lang<!--*-->" lang="<!--*-->lang<!--*-->">
3-
<head>
4-
<title><!--*-->title<!--*--></title>
5-
6-
<link rel="icon" href="img/processing-beta.ico" type="image/x-icon" />
7-
<link rel="shortcut icon" href="img/processing-beta.ico" type="image/x-icon" />
8-
9-
<meta http-equiv="Content-Type" content="text/html; charset=<!--*-->charset<!--*-->" />
10-
<meta name="Author" content="Casey Reas &amp; Ben Fry" />
11-
<meta name="Publisher" content="Processing" />
12-
<meta name="Keywords" content="Processing, Processing, Interactive Media, Electronic Arts, Programming, Java, Ben Fry, Casey Reas" />
13-
<meta name="Description" content="Processing is an electronic sketchbook for developing
14-
ideas. It is a context for learning fundamentals of computer programming
15-
within the context of the electronic arts." />
16-
<meta name="Copyright" content="All contents copyright Ben Fry, Casey Reas, MIT Media Laboratory" />
17-
18-
<script src="<!--*-->relpath<!--*-->javascript/MM_functions.js" type="text/javascript"></script>
19-
20-
<link href="<!--*-->relpath<!--*-->css/style.css" rel="stylesheet" type="text/css" />
21-
</head>
22-
<body id="<!--*-->bodyid<!--*-->" onload="" >
23-
24-
<!-- ==================================== PAGE ============================ -->
25-
<div id="container">
26-
27-
<!-- ==================================== HEADER ============================ -->
28-
<div id="header">
29-
<!--*-->header<!--*-->
30-
<form name="search" method="get" action="http://www.google.com/search">
31-
<label>Search processing.org:</label>
32-
<p><input type="hidden" name="as_sitesearch" value="processing.org" />
33-
<input type="text" name="as_q" value="" size="20" class="text" />
34-
<input type="image" src="<!--*-->relpath<!--*-->img/search_button.gif" value="Submit" alt="Submit" /></p>
35-
</form>
36-
</div>
37-
<!--*-->navigation<!--*-->
38-
39-
<a id="TOP" name="TOP"></a>
40-
41-
<!-- ==================================== CONTENT - Headers ============================ -->
42-
<div class="content">
43-
44-
<!--*-->content_for_layout<!--*-->
45-
46-
</div>
47-
48-
<!-- ==================================== FOOTER ============================ -->
49-
<div id="footer">
50-
<div id="copyright"> Processing is an open project initiated by <a href="http://benfry.com/">Ben Fry</a> and <a href="http://reas.com">Casey Reas</a> </div>
51-
<div id="colophon">
52-
53-
<a href="http://processing.org/copyright.html">&copy; Info</a> \
54-
55-
<span>Site hosted by <a href="http://www.mediatemple.net">Media Temple!</a></span>
56-
57-
</div>
58-
</div>
59-
60-
</div>
61-
</body>
62-
</html>
1+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<!--*-->lang<!--*-->" lang="<!--*-->lang<!--*-->">
3+
<head>
4+
<title><!--*-->title<!--*--></title>
5+
6+
<link rel="icon" href="img/processing-beta.ico" type="image/x-icon" />
7+
<link rel="shortcut icon" href="img/processing-beta.ico" type="image/x-icon" />
8+
9+
<meta http-equiv="Content-Type" content="text/html; charset=<!--*-->charset<!--*-->" />
10+
<meta name="Author" content="Casey Reas &amp; Ben Fry" />
11+
<meta name="Publisher" content="Processing" />
12+
<meta name="Keywords" content="Processing, Processing, Interactive Media, Electronic Arts, Programming, Java, Ben Fry, Casey Reas" />
13+
<meta name="Description" content="Processing is an electronic sketchbook for developing
14+
ideas. It is a context for learning fundamentals of computer programming
15+
within the context of the electronic arts." />
16+
<meta name="Copyright" content="All contents copyright Ben Fry, Casey Reas, MIT Media Laboratory" />
17+
18+
<script src="<!--*-->relpath<!--*-->javascript/MM_functions.js" type="text/javascript"></script>
19+
20+
<link href="<!--*-->relpath<!--*-->css/style.css" rel="stylesheet" type="text/css" />
21+
</head>
22+
<body id="<!--*-->bodyid<!--*-->" onload="" >
23+
24+
<!-- ==================================== PAGE ============================ -->
25+
<div id="container">
26+
27+
<!-- ==================================== HEADER ============================ -->
28+
<div id="header">
29+
<!--*-->header<!--*-->
30+
<form name="search" method="get" action="http://www.google.com/search">
31+
<label>Search processing.org:</label>
32+
<p><input type="hidden" name="as_sitesearch" value="processing.org" />
33+
<input type="text" name="as_q" value="" size="20" class="text" />
34+
<input type="image" src="<!--*-->relpath<!--*-->img/search_button.gif" value="Submit" alt="Submit" /></p>
35+
</form>
36+
</div>
37+
<!--*-->navigation<!--*-->
38+
39+
<a id="TOP" name="TOP"></a>
40+
41+
<!-- ==================================== CONTENT - Headers ============================ -->
42+
<div class="content">
43+
44+
<!--*-->content_for_layout<!--*-->
45+
46+
</div>
47+
48+
<!-- ==================================== FOOTER ============================ -->
49+
<div id="footer">
50+
<div id="copyright">Processing was initiated by <a href="http://benfry.com/">Ben Fry</a> and <a href="http://reas.com">Casey Reas</a>. It is developed by a <a href="http://processing.org/people.html">small team of volunteers</a>.</div>
51+
<div id="colophon">
52+
53+
<a href="http://processing.org/copyright.html">&copy; Info</a> \
54+
55+
<span>Site hosted by <a href="http://www.mediatemple.net">Media Temple!</a></span>
56+
57+
</div>
58+
</div>
59+
60+
</div>
61+
</body>
62+
</html>

0 commit comments

Comments
 (0)