From 88278dbe198d6c8ff0507b761f105ea7b2dc19a2 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Wed, 27 Jun 2018 23:17:57 -0400 Subject: [PATCH] [mathjax] Add addon config - Update mentions of .htconfig.php --- mathjax/README.md | 14 ++++++++------ mathjax/config/mathjax.ini.php | 12 ++++++++++++ mathjax/mathjax.php | 7 +++++++ 3 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 mathjax/config/mathjax.ini.php diff --git a/mathjax/README.md b/mathjax/README.md index 9647a986..7108639a 100644 --- a/mathjax/README.md +++ b/mathjax/README.md @@ -13,21 +13,23 @@ This addon for friendica includes the [MathJax][1] CDN to enable rendering of Configuration ------------- -All you need to do is provide friendica with the base URL of MathJax. This can +All you need to do is provide Friendica with the base URL of MathJax. This can be either the URL of the CDN of MathJax or your own installation. In case you want to use the CDN you can try the following URL as a quick start http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML -In case you don't want or can use the admin panel of firneidca you can activate -the addon by adding _mathjax_ to the +In case you don't want or can use the admin panel of Friendica you can activate +the addon by adding _mathjax_ to the - $a->config['system']['addon'] + [system] + addon = ...,mathjax -list in your .htconfig.php file and then providing the base URL after that +list in your config/local.ini.php file and then providing the base URL after that - $a->config['mathjax']['baseurl'] = 'the URL to your MathJax installation'; + [mathjax] + baseurl = [the URL to your MathJax installation]; Usage ===== diff --git a/mathjax/config/mathjax.ini.php b/mathjax/config/mathjax.ini.php new file mode 100644 index 00000000..d89ea69c --- /dev/null +++ b/mathjax/config/mathjax.ini.php @@ -0,0 +1,12 @@ +loadConfigFile(__DIR__. '/config/mathjax.ini.php'); +} + function mathjax_template_vars($a, &$arr) { if (!array_key_exists('addon_hooks',$arr['vars']))