The Page Bakery! © 2012 alex schenkel

Generate Static HTML Pages

One of the main goals of The Page Bakery pages is the ability to generate an offline, static HTML version of the site. The generate_static.php script does this for you. Just call it with an output directory:

php generate_static.php [output-dir]
That's it.

Remember the following things when writing your pages:

  • All pages / subpages you want in your static version MUST be present in the pages configuration in doc_config.php. Only those pages are processed by the generator script.
  • Don't use any Ajax-Requests to dynamically offer page functions: Those requests won't work in the offline version.

© 2012 alexi.ch
Version 1.0 | 2012-10-13