Commit graph

1274 commits

Author SHA1 Message Date
libraryupgrader a3a2e5a060 build: Updating npm dependencies
* grunt-stylelint: 0.19.0 → 0.20.0
* stylelint-config-wikimedia: 0.16.1 → 0.17.1

Change-Id: Iee3227463ce4544d7a2ea7d3bf3b4fb0f3e77df9
2024-06-08 04:58:42 +00:00
Ed Sanders cd421a4b1d build: Update eslint-config-wikimedia to 0.28.0
Change-Id: Ia565bd4d314b7b512a46c4bb2af74784d5c2edc1
2024-06-06 16:33:02 +01:00
jenkins-bot 780b3baf13 Merge "JSDoc: @mixins -> @mixes" 2024-06-03 21:11:47 +00:00
Translation updater bot c4ce195386 Localisation updates from https://translatewiki.net.
Change-Id: I0891fa3810ca390e8778fc8ed4ae8ac488de1a83
2024-06-03 09:33:08 +02:00
Novem Linguae 859db0ef3d JSDoc: @mixins -> @mixes
Convert old JSDuck syntax to new JSDoc syntax

Bug: T366230
Change-Id: If1103a5945f6be02f9f6d81ec361e873e40d0192
2024-05-31 15:38:02 +00:00
Steven Rawson 8662badc21 SyntaxHighlight: Add color to override skin
Bug: T356956
Bug: T365774
Change-Id: I968aa7c9fe28ee83cb62dfd78575e426da5daf5e
2024-05-25 23:32:36 +00:00
jenkins-bot 4688fe720a Merge "Apply background to pre tags" 2024-05-20 19:25:47 +00:00
jenkins-bot ce65160b40 Merge "Pygmentize: report stderr when exit code != 0 and stdout is empty" 2024-05-20 13:31:10 +00:00
libraryupgrader 8edabdced1 build: Updating grunt-banana-checker to 0.13.0
Change-Id: I9ccd09b18e0f89bd5a2a6be83dbb62a925041ed0
2024-05-19 04:06:16 +00:00
Bryan Davis ee1a6c20d7 Pygmentize: report stderr when exit code != 0 and stdout is empty
Most python error messages are reported to stderr rather than stdout. In
the event of a catastrophic failure executing the Pygments binary we are
likely to need to report stderr so that folks can debug the problem with
the executable.

Bug: T364249
Change-Id: Id5e5dbc515fdcdeb6eec61aacbbb9cbeddc79fab
2024-05-17 11:01:28 -06:00
Jon Robson 9ecaf3bd13 Apply background to pre tags
This overrides the default skin rule for pre elements as seen
on [[mw:MediaWiki-Docker%2FExtension%2FWikiLambda]]

Bug: T356956
Change-Id: I0a28323f4269e7afb89dce78927e048734f15a49
2024-05-17 14:37:43 +00:00
Novem Linguae e96144ff92 eslint: remove redundant ruleset wikimedia/jsdoc
The ruleset wikimedia/client-es6 already contains
the ruleset wikimedia/jsdoc. So wikimedia/jsdoc
doesn't need to be declared.

Bug: T365047
Change-Id: I59c8f9a244ff727273783b4a3104929232801819
2024-05-15 18:08:16 +00:00
Translation updater bot 0ed68b8c60 Localisation updates from https://translatewiki.net.
Change-Id: Ie7d2a6e57581284fb13bf39c6b124f3dbb88a265
2024-05-14 09:27:20 +02:00
libraryupgrader ac48cdaa71 build: Updating grunt-banana-checker to 0.12.0
Change-Id: I29142c3edc4c0839d0e35e615b72ced962282530
2024-05-11 00:20:44 +00:00
libraryupgrader af69aef865 build: Updating composer dependencies
* mediawiki/minus-x: 1.1.1 → 1.1.3
* php-parallel-lint/php-parallel-lint: 1.3.2 → 1.4.0

Change-Id: I0b7c50835b030cd73f1ea947bf73116fe5463777
2024-05-06 07:07:38 +00:00
James D. Forrester 5e92671865 eslint: Configure to lint against JSDoc, not old JSDuck
Bug: T138401
Change-Id: I82ae6840c1a37ce9b71e946674eb078c98f84c4b
2024-05-01 08:15:32 +01:00
Ed Sanders e69f76ffc8 Use ES6 syntax (arrow callbacks and let/const)
Change-Id: I494f8ee3ab3d805aafbc1c95a5b19b34de598d2b
2024-04-29 21:09:27 +01:00
Ed Sanders 596981f4ef build: Update linter config
Change-Id: I9c02dbfb7ccb1c50676f940357abbd6fbadede73
2024-04-29 21:09:27 +01:00
libraryupgrader a0478fa896 build: Updating eslint-config-wikimedia to 0.27.0
Change-Id: If1214446c8011d643fb359db9f0e8a469aba3a5a
2024-04-20 01:17:47 +00:00
Jon Robson dda5d1e788 Adjust colors for remaining color contrast issues in night mode
Fixes the remaining issues on
https://en.m.wikipedia.beta.wmflabs.org/wiki/SyntaxHighlight?minervanightmode=1

Follow up to Ic58482b73e520505bde26a47e74f131dd8a51671

Bug: T356956
Change-Id: I71e74980a1ff276d61d2320cfedd92a55b659c7f
2024-04-17 16:52:26 +00:00
Jon Robson 92f155db14 Make syntax highlighting readable in night mode
The existing color of background if set to inherit will not work
in night mode. There does seem to be a background set in pygments.generated
so this probably doesn't need to be defined at all, but I erred on the side
of caution.

When defining a background that is not using a Codex design token
we also want to define a color to avoid the status quo of unreadable
text.

Note: this is a short term fix for making the content readable.
We can theme this in night mode later after further analysis.

Bug: T356956
Change-Id: Ic58482b73e520505bde26a47e74f131dd8a51671
2024-04-16 00:10:42 +00:00
Isabelle Hurbain-Palatin 3bc2ef11b5 Re-enable and fix tests for Parsoid CI
Bug: T214241
Depends-On: I022501851ea45cfd2554f9e914aa6f4fe2b07548
Change-Id: I34e32192047aaf268001b04bb936b3562686118b
2024-04-08 12:00:23 +00:00
jenkins-bot 2eb3bc3633 Merge "Disable a test for Parsoid CI" 2024-04-04 15:48:44 +00:00
Isabelle Hurbain-Palatin 2550f53d9c Disable a test for Parsoid CI
Bug: T214241
Needed-By: I022501851ea45cfd2554f9e914aa6f4fe2b07548
Change-Id: Ie3985837bc3fa679cf9b64cd6ab15b482402c18a
2024-04-03 03:01:10 +00:00
Umherirrender c0703d33ec build: Upgrade mediawiki/mediawiki-codesniffer to v43.0.0
Change-Id: If2acd67c6275e74e487a2e0ce8d34277a70782ca
2024-03-12 20:48:18 +01:00
jenkins-bot cae456cda1 Merge "Allow linelinks prefix to be any character(s)" 2024-03-11 19:15:03 +00:00
jenkins-bot e3cfcbd571 Merge "Allow line ranges to be selected using shift+click" 2024-03-11 19:14:46 +00:00
Ed Sanders d6cc861de7 Allow line ranges to be selected using shift+click
Change-Id: I224de2d2d72525b61608d7b6d0f13ce84a699ef7
2024-03-06 22:30:51 +00:00
Ed Sanders f5dd12e83b Allow linelinks prefix to be any character(s)
Old HTML IDs had to start with Latin letters, but
in HTML5 IDs can use any characters.

Bug: T359214
Change-Id: I6b6733eb07267faca1990bb7445a967405f9327e
2024-03-06 21:32:48 +00:00
Ed Sanders 963859f8c9 VE integration: Remove copyright dates
Change-Id: I424e7bb7ac64297b55a47db058605f528084c35e
2024-02-29 15:13:03 +00:00
Translation updater bot b5628f6dd7 Localisation updates from https://translatewiki.net.
Change-Id: Iba291d3f4b561155cc2057b6b4135a2770cbf863
2024-02-26 08:37:09 +01:00
Translation updater bot 661543164d Localisation updates from https://translatewiki.net.
Change-Id: Iee3cfcfb2d8e0c2c55001fe2bd3bf903a4fb2abe
2024-02-14 08:19:25 +01:00
libraryupgrader 7e6a675a6c build: Updating dependencies
composer:
* mediawiki/mediawiki-phan-config: 0.12.1 → 0.14.0

npm:
* eslint-config-wikimedia: 0.25.0 → 0.26.0
* grunt-banana-checker: 0.11.0 → 0.11.1

Change-Id: Ief4ab2a9dbc1183629342d1cdd9d681e7172e377
2024-02-10 23:26:57 +00:00
Translation updater bot 1cca390380 Localisation updates from https://translatewiki.net.
Change-Id: Ie4f9ac51d153e8941c876fe3393e22583f63cafe
2024-02-09 08:44:20 +01:00
libraryupgrader 74364d4901 build: Updating npm dependencies
* grunt-eslint: 24.0.1 → 24.3.0
* grunt-stylelint: 0.18.0 → 0.19.0
* stylelint-config-wikimedia: 0.15.0 → 0.16.1

Change-Id: Ibcdf5387e580fae80ba20ed79e4db948f6554a4c
2024-02-08 01:29:09 +00:00
Ed Sanders e350f10a7e Don't let native scroll happen when clicking on line links
Update the page hash with history.replaceState instead.

Change-Id: I9d7bc25876aaae929646cd7e5960a8f76ede94f3
2024-02-06 16:33:46 +00:00
libraryupgrader 1e52564851 build: Updating npm dependencies
* eslint-plugin-compat: 4.0.2 → 4.2.0
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* postcss: 8.4.21 → 8.4.33
  * https://github.com/advisories/GHSA-7fh5-64p2-3v2j
* semver: 7.3.5 → 7.5.4
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
  * https://github.com/advisories/GHSA-c2qf-rxjj-qqgw
* word-wrap: 1.2.3 → 1.2.5
  * https://github.com/advisories/GHSA-j8xg-fqg3-53r7

Change-Id: I015d0a2ece4d59a26db5501dd48423d9ec5e2b2d
2024-02-04 12:47:46 +00:00
Translation updater bot 5cf5ee307d Localisation updates from https://translatewiki.net.
Change-Id: I0b7904c13320ea624487e2717e7461b1600207a3
2024-01-31 08:29:44 +01:00
thiemowmde 040f45302b Fix GeSHi support, update PHP/JSDocs, use modern PHP
The PHPDoc/JSDoc updates are mostly about generic "array" types that
can be made more specific.

In PHP we can remove documentation when it is 100% identical to the
type declarations in the code.

A few mistakes are fixed as well, e.g. a missing "null".

This patch also made a major mistake visible. It looks like the
$geshi2pygments compatibility map was broken since 2018. The array was
changed from values to keys via I7a852dd and some usages updated, but
one was forgotten.

Change-Id: I480999d21f2f69cba84166bb877aa75882778966
2024-01-22 20:10:04 +01:00
jenkins-bot 73e1073108 Merge "Add a few missing type declarations to properties and methods" 2024-01-22 14:21:55 +00:00
thiemowmde 006455ec37 Add a few missing type declarations to properties and methods
Most of the code in this codebase already uses language-level types.

Change-Id: I1df9439c69eec5ad0b2a9a608729975027a04172
2024-01-22 09:39:30 +01:00
thiemowmde 7a4d59accc Replace preg_replace() with more simple trim()
This does the same as before. Only newlines are trimmed from the
left, but all whitespace from the right.

Change-Id: I6b7c860d8a2fc2a1f28428447ee8f18ab4bbe46c
2024-01-22 09:37:01 +01:00
James D. Forrester ba1962b3ca extension.json: Drop RL targets definitions, no longer honoured
Bug: T328497
Change-Id: I6e8bed27247949b78cf8a8fcfe7097889a285fd0
2024-01-12 08:52:57 -05:00
Umherirrender 890a260032 Use namespaced classes
This requires 1.42 for some new names

Change-Id: I3821d2bca4aa8e7c0fce2a730c070b597c526247
2024-01-05 19:29:59 +01:00
Translation updater bot cdaaa6bfef Localisation updates from https://translatewiki.net.
Change-Id: I7d9c1bd86e813dec2ca3b35123be5fd7f202144d
2023-12-26 14:43:38 +01:00
Translation updater bot af417e2dbc Localisation updates from https://translatewiki.net.
Change-Id: I6daa1319f6242aa18895ea99159ffd0328ecee15
2023-12-21 19:45:59 +01:00
Translation updater bot 1315f06012 Localisation updates from https://translatewiki.net.
Change-Id: Iab33446a14cded3b1610d29c30be66f6081d4f98
2023-12-20 14:05:36 +01:00
Bryan Davis f8d8b55c8b Update Pygments to 2.17.2
Bump embedded Pygments version from 2.16.1 to 2.17.2. Changes
<https://github.com/pygments/pygments/compare/2.16.1...2.17.2>.

New lexers: bazel, jsx, kql, kusto, ldappconf, ldaprc, ldif, lean3, prql,
react, starlink, visualprolog, visualprologgrammar, vyper

Bug: T351744
Change-Id: Idcb40a211c051e74bdfb7c4ee642be64e0dde5ac
2023-12-01 15:43:32 -07:00
Translation updater bot b4b0c0c337 Localisation updates from https://translatewiki.net.
Change-Id: I774c58369eaa49898bf1da0a557706be2c6afbb2
2023-11-27 08:33:34 +01:00
Translation updater bot 9e333b5643 Localisation updates from https://translatewiki.net.
Change-Id: I2db9086f83ada1dd6433067d7adbacd440abab40
2023-11-23 11:57:37 +01:00