Commit graph

1692 commits

Author SHA1 Message Date
DannyS712
2e3bdb3498 Miscellaneous documentation updates
Update references from .txt to .md when files have moved, a few other
tweaks, no changes to code.

Change-Id: I0bfd38c47b9fb0fc11ae98a0a674af66fb4c5a84
2020-02-16 04:38:38 +00:00
DannyS712
0c303967b1 Remove double newline in hooks.txt
Change-Id: Ib2bb7ead4e4f514c9561ca050014a4582eb34d11
2020-02-13 07:54:58 +00:00
jenkins-bot
4dbc276487 Merge "Remove ArticleContentViewCustom hook, deprecated and unused" 2020-02-13 05:13:11 +00:00
Volker E
3fa38ae795 Drop the abandoned, replaced 'KSS' styleguide and references in MWUI
KSS is no longer in use anywhere. The only official style guide is
at https://design.wikimedia.org/style-guide.

Change-Id: I688a78e9a71a082c499af55bd01e8fd615130486
2020-02-11 15:38:53 -08:00
James D. Forrester
cafe286e2b Deprecate the ArticleEditUpdates hook
Change-Id: Ie85a46846315999ebaab1e1b38265937f4b2c79e
2020-02-08 20:29:35 +00:00
James D. Forrester
6a7ab1ed04 Deprecate the ArticleEditUpdatesDeleteFromRecentchanges hook
Bug: T244613
Change-Id: I2bb1645a8b5d99a5a3c4425f2bc0e8c3f524d4e8
2020-02-07 15:35:08 -08:00
DannyS712
f14fad3538 Remove ArticleContentViewCustom hook, deprecated and unused
Bug: T241351
Change-Id: Ie37ed9265511e3051ea60c6898febb567d5283df
2020-02-06 19:55:16 +00:00
Timo Tijhof
bc1f601382 docs: Improve "Entry points" documentation page
Turn this into a doc group, and let the descriptions come
directly from the files in question. This makes the list easier
to maintain, and alsom means that the overview page becomes
discoverable whenever one is looking at the entry point file
as well. Previously the doc page pointed to the entry points,
but not the other way around. This is also fixed.

Bug: T244294
Change-Id: I891c5a37e17592edc1136d7367949927121c8bc8
2020-02-04 21:44:38 +00:00
Thiemo Kreuz
ea01e7cfbb parser: Remove unused ParserAfterUnstrip hook
Introduced in 2015 via If83b062. Unfortunately the patch fails to mention
why the hook was introduced. A review comment asking for the missing
information was ignored.

The hook was introduced exclusively for the Cite extension, see I0e136f9.
The Cite change got reverted a few days later via I1a71854. As far as I
can tell the hook (oddly specific and underspecified anyway) was never
used again, neither for Cite nor for anything else.

Now unused: https://codesearch.wmflabs.org/search/?q=ParserAfterUnstrip

I suggest to just remove it with no deprecation phase.

My team is currently working on Cite, essentially turning it upside down.
I'm not aware of a need for this hook.

Change-Id: If68a88d7afff60385ff1e33fd13716b20d01a313
2020-01-25 09:20:52 +01:00
James D. Forrester
9082d22754 Drop ContentHandler::makeParserOptions(), deprecated in 1.32
Change-Id: I2d22cc8cd8fee9d8bb8b8dcdd050b64da17ac5ad
2020-01-16 16:57:21 -08:00
DannyS712
0bbe0b8fe6 Docs: Update hooks.txt to remove usage of global $wgUser
Also remove 2 refernces to $wgOut and $wgRequest

Bug: T159299
Bug: T160810
Bug: T160812
Change-Id: I267dece08d6a2224091cbcb5d29e29bd9e9d3f07
2020-01-07 19:06:04 +00:00
jdlrobson
5b044bb928 resourceloader: Introduce hooks in ResourceLoaderSiteModule
This will allow extensions/skins to alter the wiki pages that editors
can use to control styles

Bug: T237050
Change-Id: I329415b787136fcf9422a9deebfcd34f83b40f12
2020-01-06 22:52:27 +00:00
mainframe98
297a89069a Add LinkBatchFactory to inject services into LinkBatch
All services required by LinkBatch are now injected by the
LinkBatchFactory. The constructor for LinkBatch has been
soft-deprecated, but the required services are still optional.

Bug: T239855
Depends-On: If49cbb730d4ac48586b891908cf24601efbc5d6a
Change-Id: I93d931ab60305ad49a6e419f8269c77791a3938d
2020-01-06 17:02:31 +01:00
jenkins-bot
cf92c2dc44 Merge "Use namespaced IPUtils class" 2020-01-01 23:56:22 +00:00
jenkins-bot
89dbf5c1dc Merge "Convert docs/skin.txt and docs/title.txt to Markdown" 2020-01-01 23:31:42 +00:00
Kunal Mehta
99007e96c7 Use namespaced IPUtils class
Change-Id: I047e099a93203a59093946d336a143d899d0271f
2020-01-01 02:36:49 -08:00
Manuel Alcaraz Zambrano
328f78b711
docs: convert pageupdater and sitelist to markdown
Change-Id: I465831ad1fe0f05c32a44d2b47f3f19b78ba65d7
2019-12-21 19:30:58 +01:00
jenkins-bot
3a1823daf2 Merge "docs: Fix link on intro page" 2019-12-12 01:11:11 +00:00
mainframe98
ac48c84224 Allow specifying autoloaded classes for tests
This introduces two new keys to the extension schema, analogous to
the existing autoloader keys: TestAutoloadNamespaces and
TestAutoloadClasses.

The classes and namespaces defined by these keys are only loaded by
the registry when ExtensionRegistry::setLoadTestClassesAndNamespaces
is called. The phpunit wrapper does this in PHPUnitMaintClass::setup.
The unit test bootstrap file calls
ExtensionRegistry::exportTestAutoloadClassesAndNamespaces instead,
similar to how it loads the regular classes and namespaces.

Bug: T196090
Change-Id: I88cf69663362fd599c20649b1df641907a02678d
2019-12-10 21:39:30 +00:00
Taavi Väänänen
aa1485cd95 Convert docs/skin.txt and docs/title.txt to Markdown
Bug: T233244
Change-Id: I46806ee578f0b2b5ca9bcfebd9ad554baeae8b34
2019-12-09 20:31:43 +02:00
apaskulin
5223984589 docs: Fix link on intro page
Fixes broken link on intro page and re-adds sentence about
purpose of mediawiki.org.

Bug: T233244
Change-Id: Id164efc81d16083cf51ea180136a050723880e32
2019-12-09 08:44:01 -08:00
jenkins-bot
c0a49f1603 Merge "docs: Update docs/schema.txt and docs/scripts.txt to markdown" 2019-12-07 21:05:29 +00:00
jenkins-bot
df03847077 Merge "Implementation of Doxygen-friendly format" 2019-12-07 20:52:37 +00:00
shcherba
7dc297d34f docs: Update docs/schema.txt and docs/scripts.txt to markdown
Bug: T233244
Change-Id: I2c9604539655183bc4cdc9c570b0c638b5b82e7b
2019-12-07 13:30:38 +00:00
jenkins-bot
715f4ac53e Merge "docs: Change docs/contenthandler.txt and docs/database.txt to markdown" 2019-12-04 21:16:19 +00:00
Arturek1
c11b745435 Implementation of Doxygen-friendly format
Markdown format implemented in docs/magicword.md and docs/memcached.md
A section with helpful resources has been added in docs/Introduction.md

Whitespaces removed, Intoduction.md modified

Unnecessary whitespaces have been removed. Helpful resources section has been modified.

Headings fixed, Title changed in magicword.md

Title changed from "magicword.txt" to "Magic Words" in docs/magicword.md. 
Some H1 headers changed to H2 in docs/memcached.md and docs/Introduction.md. 
An unnecessary sentence removed in docs/Introduction.md.

Change-Id: I5c9e8663c922be4ca5f0eea9d5c2469b1b18281c
Task: T111298
2019-12-04 21:08:15 +00:00
arcayn
2834212cc9 docs: Change docs/contenthandler.txt and docs/database.txt to markdown
Bug: T233244
Change-Id: Ieddd5e8850988b2ee66fd6c2c047000526c16a34
2019-12-04 19:20:54 +00:00
leo60228
ea09f8469e docs: Convert logger.txt and linkcache.txt to Markdown
Indexing on doc.wikimedia.org doesn't work for .txt files.
This was done for Google Code-In 2019.

Bug: T233244
Change-Id: I4c441f92b89c1ab1053c5f16a6e7100f2e5e9492
2019-12-04 00:56:26 +00:00
Taavi Väänänen
94582698c3 docs: Convert docs/language.txt and docs/injection.md to Markdown
Bug: T233244
Change-Id: I101381d134b98c48b83e8e0a8bea0a3c384c30b2
2019-12-03 21:35:23 +02:00
jenkins-bot
2ea3adebc2 Merge "skins: Remove deprecated SkinCopyrightFooter $forContent param" 2019-11-19 21:17:56 +00:00
jenkins-bot
8d240f87a9 Merge "docs: Update hook documentation for PageContentSaveComplete" 2019-11-19 01:45:24 +00:00
jenkins-bot
cad9111aec Merge "hooks: Do not document the Parser object to be passed by ref" 2019-11-18 22:04:41 +00:00
Piotr Miazga
076993c938 skins: Remove deprecated SkinCopyrightFooter $forContent param
The $forContent parameter was deprecated six years ago and looks
like nothing else is using it (verified via codeseach.wmflabs.org)

Change-Id: I7c6093a083845a40b82e39c91006a5a0b223eab6
2019-11-18 16:16:27 -05:00
Thiemo Kreuz
17363ad381 hooks: Do not document the Parser object to be passed by ref
It does not make sense for hook handler functions to *expect* the
Parser to be passed by reference. Hook handlers not only can't do
anything with it being a reference, they should *not* use it to
replace the Parser with another one.

This is an obsolete relict from PHP 3 (?), where objects got passed as a
cloned copy, which was very expensive.

Note we can not update the Hooks::run() calls as long as a single
hook handler still *expects* a reference.

Bug: T193950
Change-Id: I5f9a3f56faec0e90a2839c064844928c3b5c9751
2019-11-18 16:47:08 +00:00
Thiemo Kreuz
210483fc16 hooks: Stop suggesting to pass objects by reference
It looks like the examples section on top of the hooks.txt file still
suggests to pass objects by reference. This is an obsolete relict from
PHP 4 and not needed any more.

Bug: T193950
Change-Id: I61bdc4a313401955943903918ff8167c2bea5aac
2019-11-18 16:45:28 +00:00
jenkins-bot
8aafbfc02f Merge "docs: Update ParserGetVariableValueSwitch documentation" 2019-11-15 04:29:59 +00:00
Umherirrender
1feb04b741 docs: Update hook documentation for PageContentSaveComplete
The hook no longer takes null, as of 4860e1d5ac (I492514413ec9c37c2f9343bb207798fc8e24a5a9).

Change-Id: I31b7768ae5bd2389b59f2aca1c55ca962a75b509
2019-11-12 18:45:21 +00:00
Thiemo Kreuz
abf62c6c78 Fix ApiQuerySiteinfo class name capitalization
Change-Id: I7e522fb34119b62c4fb59590f7ee8a45f5a4954d
2019-11-08 16:58:11 +01:00
jenkins-bot
c2c789cc59 Merge "Remove traling double newlines from text files" 2019-11-07 10:01:02 +00:00
Timo Tijhof
0da1ecfd89 profiler: Remove ProfilerOutputDb and profileinfo.php entry point
Bug: T231366
Change-Id: I211c8192200d9af00914f9847608a6daf2898f91
2019-11-06 15:28:00 -05:00
Bartosz Dziewoński
d50c7f5b56 extension.schema.v2: Fix schemas for 'packageFiles'
The PHP code handling 'packageFiles' looks like it only expects
numeric arrays, and not associative arrays. Therefore in JSON the
value for the 'packageFiles' key should be arrays and not objects.
(And a special case of a string, handled the same as single-element
array, is also accepted.)

Individual items in the array can be not only strings, but also
objects, describing data which is pulled from other sources than a
file.

* ResourceLoaderFileModule: Remove unused variable and tweak docs.

Change-Id: I6c3d186de1877f73d4a4e3fec7d6d632a5d5fa83
2019-10-24 22:30:10 +02:00
Fomafix
d607ef8512 Remove traling double newlines from text files
Performed using:

git ls-files \*.json \*.php \*.xml \*.xsd \*.html \*.txt \*.sql | xargs sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba'

Excluded tests/parser/preprocess.

Change-Id: I513538ff13c942acfe589f15c5128a8df2b3ace9
2019-10-23 21:17:43 +02:00
jenkins-bot
baf3d4b803 Merge "Remove the deprecated GetBlockedStatus hook" 2019-10-21 17:11:27 +00:00
Thalia
3be681e625 Remove the deprecated GetBlockedStatus hook
Change-Id: I19d522ce32f540cc39bf482ab76f71492e4e9fd0
2019-10-21 17:16:20 +01:00
Thalia
e915f9538a Document that the GetUserBlock hook may pass null instead of a block
Change-Id: I776362564b8caff3c4ab0eb38eb5ef63034e0f51
2019-10-21 12:58:42 +01:00
Daimona Eaytoy
ad93e7ca09 Fix docs for GetUserBlock hooks
Change-Id: I93b64fb00477c0632a6fa3573800dd7609d25db0
2019-10-20 10:45:27 +02:00
Timo Tijhof
34bff221ba mediawiki.messagePoster: Introduce 'MessagePosterModule' extension attribute
This allows extensions to add additional files or dependencies to
the 'mediawiki.messagePoster' module bundle.

Bug: T235315
Change-Id: I17c34cbb26e786328d3d99beb0c0fa65e15ea084
2019-10-17 18:00:10 +00:00
jdlrobson
e97f2943f2 registration: QUnitTestModule should support packageFiles and templates
Change-Id: I1a66939d2b596094b419de40b370e79f09c85581
2019-10-04 17:09:39 +00:00
apaskulin
5443e647bf docs: Fix typo on Doxygen main page
This PR fixes a typo and removes a few extra words
from the Doxygen landing page.

Change-Id: Ieb09c0e72129f4c6b0ccd574daf2f9316f580259
2019-09-27 07:45:59 -07:00
jdlrobson
2bb8515286 Make Special:Contributions use OOUI
Changes:
* IP address/username is now a single label & input element combination
* Add page-specific styles in separate LESS file
* Remove no longer necessary CSS rule

Bug: T117736
Bug: T219238
Change-Id: I979078d8937898acae22bc28d5ed51da1d4ed627
2019-09-23 18:50:44 +00:00