-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.php
More file actions
34 lines (25 loc) · 858 Bytes
/
build.php
File metadata and controls
34 lines (25 loc) · 858 Bytes
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
<?php
require "vendor/autoload.php";
require "context.php";
require "functions.php";
KawapureSiteContext::$workingDir = realpath(dirname(__FILE__));
// Begin site building:
echo "Building website...\n";
// Register all standard pages:
require "registry/standard_page_registry.php";
// Register all MSD pages:
require "registry/msd_registry.php";
// Build MSD-related pages:
// In order to avoid dependency issues, this page is simply built last so that it can access the
// MSD registry.
buildPage("mozilla_simple_docs/index", "msd", "templates/msd");
MSD::buildAll();
echo "Building static resources...\n";
/*
* Build Gulp resources (CSS, JS).
*
* We disable the PHP time limit here, since this could realistically take longer
* than the time limit, and we're waiting on an external script.
*/
set_time_limit(0);
echo shell_exec("gulp build");