Uses the MobileFrontend extension. Done with Grant looking over my shoulder.
+ mediawiki_extension "Mantle" do
+ site new_resource.name
+ update_site false
+ end
+
+ mediawiki_extension "MobileFrontend" do
+ site new_resource.name
+ template "mw-ext-MobileFrontend.inc.php.erb"
+ update_site false
+ end
+
cookbook_file "#{site_directory}/cc-wiki.png" do
cookbook "mediawiki"
owner node[:mediawiki][:user]
cookbook_file "#{site_directory}/cc-wiki.png" do
cookbook "mediawiki"
owner node[:mediawiki][:user]
--- /dev/null
+<?php
+# DO NOT EDIT - This file is being maintained by Chef
+require_once( $IP.'/extensions/MobileFrontend/MobileFrontend.php' );
+
+// Enable detection in PHP. Disable this if you put MW behind a caching layer
+$wgMFAutodetectMobileView = true;