From: Max Semenik Date: Sun, 7 Jun 2015 15:02:32 +0000 (-0400) Subject: Add mobile interface to wiki X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/d1aaa91efdb8ce6731d80943b9696d1538909f5f?ds=sidebyside Add mobile interface to wiki Uses the MobileFrontend extension. Done with Grant looking over my shoulder. --- diff --git a/cookbooks/mediawiki/providers/site.rb b/cookbooks/mediawiki/providers/site.rb index 4fd84ca94..7357e7d94 100644 --- a/cookbooks/mediawiki/providers/site.rb +++ b/cookbooks/mediawiki/providers/site.rb @@ -376,6 +376,17 @@ action :create do update_site false end + 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] diff --git a/cookbooks/mediawiki/templates/default/mw-ext-MobileFrontend.inc.php.erb b/cookbooks/mediawiki/templates/default/mw-ext-MobileFrontend.inc.php.erb new file mode 100644 index 000000000..01c4ffdb0 --- /dev/null +++ b/cookbooks/mediawiki/templates/default/mw-ext-MobileFrontend.inc.php.erb @@ -0,0 +1,6 @@ +