Commit graph

901 commits

Author SHA1 Message Date
Translation updater bot 90e13ecb0a Localisation updates from https://translatewiki.net.
Change-Id: I1f47b6da0269a199f3b1a85dafdd9534837d3106
2017-06-03 22:51:32 +02:00
Translation updater bot 6c1a07d1dd Localisation updates from https://translatewiki.net.
Change-Id: I0e68611f93005aeed40aaadb532e00f4e6c6733b
2017-05-25 22:54:42 +02:00
Kunal Mehta 8db92c2d0c Remove RejectParserCacheValue hook for old GeSHi parser cache
SyntaxHighlight migrated to Pygments nearly 2 years ago, and was
included in the 1.26 release. By now everyone should have cleared their
parser caches, so this hook isn't useful.

Change-Id: Ia267a648ce9188232dd55c6ed3bb2c2fa65223a9
2017-05-21 16:17:18 +02:00
jenkins-bot ca16b1a04a Merge "Remove 'GeSHi' name from composer and npm manifests" 2017-05-21 13:35:16 +00:00
Derk-Jan Hartman e908a9ef43 Remove 'GeSHi' name from composer and npm manifests
Both of these seem to be private, and are therefore easily renamed.

Bug: T164939
Change-Id: I09be0ef0131d31182ed8bb6be221c76dba2c1a53
2017-05-21 13:26:40 +00:00
Translation updater bot b52803dfc6 Localisation updates from https://translatewiki.net.
Change-Id: Idadbb2fb10cdae7c0555bb17bcdfa2ac9e7c642e
2017-05-20 22:54:21 +02:00
jenkins-bot ac1610cbf6 Merge "Remove GeSHi from class and filenames" 2017-05-20 15:18:31 +00:00
Derk-Jan Hartman 45e3085a59 Remove GeSHi from class and filenames
Remove the GeSHi name from filenames and classes where possible. We no
longer actually use GeSHi, and though we cannot rename the extension or
repo atm, we can rename these.

Bug: T164939
Change-Id: I02bc3304d88103c5302f203e788fc73ff20e1050
2017-05-20 14:47:23 +00:00
Ed Sanders 28b480ca0a Pass dataElement type to parent's toDataElement
Ensures the rendering is cached with the correct hash.

Bug: T151130
Depends-On: I80e2f2587cff8e9d9fe6ded5d8581263268deaa8
Change-Id: I64466cc342f7ab7f9d4539f935688d167853a662
2017-05-19 16:06:44 +02:00
Translation updater bot e08865087c Localisation updates from https://translatewiki.net.
Change-Id: I6bc88751e47502ddd1b16004c35ff6dab47efb72
2017-05-18 22:58:04 +02:00
jenkins-bot 09cf5ade29 Merge "GeSHi: Make sure the autoload of Compat doesn't load GeSHi" 2017-05-17 17:40:20 +00:00
jenkins-bot 20bcb7699b Merge "VE: Support editing start line parameter" 2017-05-15 08:52:10 +00:00
Ed Sanders f53d8c2e6e VE: Support editing start line parameter
Change-Id: I869ac413f4d7581026353e2d54f9d22c6b6290f5
2017-05-15 09:49:42 +01:00
Translation updater bot ec5ab37b56 Localisation updates from https://translatewiki.net.
Change-Id: I43c9494e6840aa6b6745138ea84427410cb376fe
2017-05-14 22:44:47 +02:00
Translation updater bot 1e94d9d74a Localisation updates from https://translatewiki.net.
Change-Id: If9fbe83386e16b6474a7f8ab9595fbd1d0f71eb8
2017-05-13 22:43:21 +02:00
Derk-Jan Hartman 0fa395c72d GeSHi: Make sure the autoload of Compat doesn't load GeSHi
Bug: T139594
Change-Id: Ib8c78f6f1da9750e0429f7bcf29b8dcb5ecca8a1
2017-05-13 15:14:05 +02:00
Translation updater bot b45d5f7797 Localisation updates from https://translatewiki.net.
Change-Id: Ie1e535b3582a7a0c9b8d1a3a747d5e57fdb27c24
2017-05-12 23:15:53 +02:00
Translation updater bot 32c09c63c5 Localisation updates from https://translatewiki.net.
Change-Id: I7771fea861d4146b7f9f089d1716634a5e4e4913
2017-05-11 23:33:36 +02:00
Derk-Jan Hartman 39f0b85229 Do not extend GeSHi class with private modifications
Our GeSHi class is intended for other extensions making use of GeSHi.
However other libraries or extensions can bring their own GeSHi to the
classloader. In those cases, we cannot find our private modifications
like $compatibleLexers on this class. Instead use
SyntaxHighlightGeSHiCompat for our privact modifications and keep GeSHi
closer to the original implementation.

Bug: T139594
Change-Id: I5c2ba9dfb08ec31f6b5cfd90083cbae0ae0ac3c4
2017-05-11 18:11:25 +00:00
Antoine Musso 5ee2deb6d8 build: add jakub-onderka/php-console-highlighter
Highlight PHP code when parallel-lint fails

Change-Id: Ie7582baa805457a0445a119bfd5fb859f693e51f
2017-05-05 21:40:02 +02:00
Ed Sanders cd179bd702 build: Update eslint to 0.4.0
Change-Id: I0ea71dce95df6836c3a1dfecf4adedc7b1ae9f2f
2017-05-04 21:59:49 +01:00
Translation updater bot 57d57b541d Localisation updates from https://translatewiki.net.
Change-Id: If590bed3ba822edd1849a57f38da7573419c00a3
2017-04-29 23:28:19 +02:00
jenkins-bot 011d537f75 Merge "Add fix phpcbf command to composer.json" 2017-04-29 07:14:16 +00:00
Umherirrender ed7f1f6dc4 Add fix phpcbf command to composer.json
This allows to use the phpcbf easily

Change-Id: I76b14ace9fb95bf2ae30bfd56c41019c88c862ac
2017-04-28 23:57:37 +02:00
jenkins-bot 9c35a4cd08 Merge "Avoid background when the content is narrow" 2017-04-28 21:07:45 +00:00
Translation updater bot 042c17d77e Localisation updates from https://translatewiki.net.
Change-Id: Ie8ea410ec517dbf863de46319a13a57999d184d5
2017-04-27 22:56:21 +02:00
Derk-Jan Hartman 9638ee20c3 Avoid background when the content is narrow
All our highlight content is inside a <pre> block. When this block is
more narrow that the page (due to being pushed aside by floating
context for instance), then the background of this parent element will
extend beyond the contents.

An alternative could be setting overflow:hidden; and then setting
margin:0 on the included <pre> element (which has UA default margins)

Bug: T126010
Change-Id: Id3c9544ea8fa379c7c640afa692d6184ad9c550f
2017-04-27 18:38:55 +02:00
jenkins-bot 1ac67b6ee6 Merge "Remove no longer needed tsql->sql mapping" 2017-04-27 15:21:30 +00:00
Derk-Jan Hartman ab167e5fee Remove no longer needed tsql->sql mapping
This is a follow-up to I4dc1782f19881ba1294308e1cdea1b2e063f438a

Bug: T156573
Change-Id: I5a1756a8db97aa336c810fb44bb108d77b8f89c7
2017-04-27 15:11:43 +00:00
jenkins-bot af7c31d229 Merge "Update pygments to 2.2" 2017-04-27 13:15:46 +00:00
Kunal Mehta db681d158b Update pygments to 2.2
Notable changes:

* Added new token types and lexing for magic methods and variables in
  Python and PHP.
* Added a new token type for heredoc (and similar) string delimiters and
  lexing for them in C++, Perl, PHP, Postgresql and Ruby lexers.
* Improved the CSS lexer.
* Added Varnish config lexer

Full changelog is found at:
<bc45808f83/CHANGES>

Bug: T156573
Change-Id: I4dc1782f19881ba1294308e1cdea1b2e063f438a
2017-04-27 15:10:16 +02:00
Translation updater bot 04a627ff01 Localisation updates from https://translatewiki.net.
Change-Id: I56b19a01f95f053b308c42c8b21456e5c879110c
2017-04-16 10:38:20 +02:00
Reedy fbd45b4ee0 SECURITY: Escape start argument before passing to pygments
Issue identified by Yorick Koster

Bug: T158689
Change-Id: Ib55f7a38edbdd39c9587794d250e22d3b26950be
2017-04-06 14:00:02 -07:00
Reedy 370d8750ac Update symfony/process from ~3.0 to ~3.2
Change-Id: Ibf91f004e69a82161d9e567c539dd532c96df336
Depends-On: I78d1459d7f7e980ac4b6c4a6e57b5d8d6f97f3e6
2017-04-04 20:59:34 +01:00
Translation updater bot 0c6c909432 Localisation updates from https://translatewiki.net.
Change-Id: I48fa490bdf259381f7f62d220173492eac865fb8
2017-03-28 23:00:56 +02:00
Reedy 53dee72878 Fixup some parameter documentation
Remove some return documentation as they don't return (yay hooks)

Wrap a long line

Change-Id: Iefd41c666a25779223fbd7fdb19bf8cf56dd9452
2017-03-28 00:25:36 +01:00
Translation updater bot 23793b7bdd Localisation updates from https://translatewiki.net.
Change-Id: I2f1f072e3d54435b2ed2ac84beabe27aa0e6057e
2017-03-05 22:51:27 +01:00
James D. Forrester afdc03b38d build: Bump stylelint and make pass
grunt-stylelint              0.6.0  →   0.7.0
 stylelint-config-wikimedia   0.3.0  →   0.4.1

Change-Id: Id87b8df04d415e1f1058a4042a31408236402037
2017-02-17 16:25:00 -08:00
Translation updater bot 1380a20c78 Localisation updates from https://translatewiki.net.
Change-Id: I2a607150ce6812f1a5420e46b4da259d323227c2
2017-02-16 23:05:33 +01:00
Antoine Musso 47dfb84689 Fix logic in RL module conditional registration
In 4a6ddad I made it to not load VisualEditor resources whenever
VisualEditor is enabled.  Reverse the logic.

Change-Id: I6297f1c8ada84967416f747dbfc7c56084b05c51
2017-02-13 17:18:44 +01:00
jenkins-bot 4a6ddadf73 Merge "Skip registering RL modules depending on VisualEditor" 2017-02-13 10:53:30 +00:00
Translation updater bot 567aa5ec80 Localisation updates from https://translatewiki.net.
Change-Id: Ic11429555419a2d6dafcfd7ff0fd1050d199a0e7
2017-02-07 23:02:54 +01:00
Umherirrender 570c3be65a Fix key for requires in extension.json
Change-Id: Ic6c8422186a74e926e9b1ac28afe612474e1d0e7
2017-02-05 21:06:42 +01:00
Antoine Musso fea05d6859 Skip registering RL modules depending on VisualEditor
When VisualEditor is not installed, there is no point in registering
resource loader modules that depends on it.

A use case is trying to run tests for the MediaWiki tarball. It comes
with SyntaxHighlight_GeSHi but without VisualEditor.

The patch is based on GuidedTour patch by Matthew Flaschen
https://gerrit.wikimedia.org/r/#/c/305691/ for T143297
A similar one has been done for Cite:
https://gerrit.wikimedia.org/r/#/c/316010/

Change-Id: Idf769e0149f93c099a94b1b7a6cb203273dab881
2017-01-30 14:29:38 +01:00
jenkins-bot 06ab98138f Merge "Update create_pygmentize_bundle for package changes" 2017-01-30 10:50:35 +00:00
jenkins-bot b49d427dc2 Merge "Remove non-existent ipython lexers" 2017-01-30 10:50:34 +00:00
jenkins-bot 4056272d1a Merge "Fix typehints for class constants" 2017-01-30 10:50:33 +00:00
Kunal Mehta 50ce659e51 Update create_pygmentize_bundle for package changes
On <https://pypi.python.org/pypi/Pygments/2.2.0>, the python_version
field is now "py2.py3".

Change-Id: I07e615b4b25a79c0b8dde4d3ce07b54a746ddbd8
2017-01-29 01:38:57 -08:00
Kunal Mehta 4dac7d24f0 Remove non-existent ipython lexers
These lexers don't exist in pygments 2.1, I'm not really sure where they
came from. In any case, these are already broken on wikis since pygments
fails, so let's just remove them.

Change-Id: Icd36fc825c7f40db2d5a5a1b1757f9ab31776c9c
2017-01-29 01:37:54 -08:00
Kunal Mehta f2cfc27eb4 Fix typehints for class constants
Change-Id: I6c65f361a2cb830ed92632ef1e04511a7f2eaf5b
2017-01-23 13:32:32 -08:00