Physikerwelt has uploaded a new change for review.
https://gerrit.wikimedia.org/r/108856
Change subject: Add mathsearch test data
......................................................................
Add mathsearch test data
* Add DRMF test data (one page Generating Functions)
* Enable specific macros.
* Skip sanitazing of TeX input
Change-Id: I23ba647254606d40f003fc881b44f54d5f35eb90
---
A puppet/modules/mathsearch/files/sample.xml.bz2
M puppet/modules/mathsearch/manifests/init.pp
M puppet/modules/mathsearch/templates/MathSearch.php.erb
3 files changed, 9 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/vagrant
refs/changes/56/108856/1
diff --git a/puppet/modules/mathsearch/files/sample.xml.bz2
b/puppet/modules/mathsearch/files/sample.xml.bz2
new file mode 100644
index 0000000..b6d910f
--- /dev/null
+++ b/puppet/modules/mathsearch/files/sample.xml.bz2
Binary files differ
diff --git a/puppet/modules/mathsearch/manifests/init.pp
b/puppet/modules/mathsearch/manifests/init.pp
index ab7b8be..f7bce01 100644
--- a/puppet/modules/mathsearch/manifests/init.pp
+++ b/puppet/modules/mathsearch/manifests/init.pp
@@ -18,6 +18,13 @@
include role::geshi
include role::cirrussearch
+ exec { "import test data":
+ command => "/usr/bin/php importDump.php
/vagrant/puppet/modules/mathsearch/files/sample.xml.bz2 && touch
/home/vagrant/.sample-created",
+ creates => "/home/vagrant/.sample-created",
+ cwd => "/vagrant/mediawiki/maintenance/",
+ require => Class['::mediawiki'],
+ }
+
exec { "switch to dev branch of math":
command => "git checkout -b dev origin/dev",
onlyif => "git status | grep -c 'master'",
diff --git a/puppet/modules/mathsearch/templates/MathSearch.php.erb
b/puppet/modules/mathsearch/templates/MathSearch.php.erb
index 1271fe7..0da583b 100644
--- a/puppet/modules/mathsearch/templates/MathSearch.php.erb
+++ b/puppet/modules/mathsearch/templates/MathSearch.php.erb
@@ -1,2 +1,4 @@
$wgMathValidModes[] = MW_MATH_LATEXML;
$wgDefaultUserOptions[ 'math' ] = MW_MATH_LATEXML;
+$wgMathDefaultLaTeXMLSetting[ 'preload' ][] = 'DLMFmath.sty';
+$wgMathDisableTexFilter = true;
--
To view, visit https://gerrit.wikimedia.org/r/108856
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I23ba647254606d40f003fc881b44f54d5f35eb90
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/vagrant
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits