From 023237c93e578853bc03f6b2da97c5f37cb5d941 Mon Sep 17 00:00:00 2001 From: SimonTaurus Date: Tue, 16 May 2023 05:03:46 +0200 Subject: [PATCH] fix: force skin=Timeless --- README.md | 15 ++------------- Reveal.hooks.php | 2 +- extension.json | 6 ++++++ 3 files changed, 9 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 5b1a4c3..c63752c 100644 --- a/README.md +++ b/README.md @@ -2,22 +2,11 @@ Transforms wikipages to presentations using reveal.js +Currently only tested with [Skin:Timeless](https://www.mediawiki.org/wiki/Skin:Timeless/de) + ## Features * [Parser hook](https://www.mediawiki.org/wiki/Manual:Parser_functions) (Reveal/Reveal.hooks.php) -## Development on Linux (OS X anyone?) -To take advantage of this automation, use the Makefile: `make help`. To start, -run `make install` and follow the instructions. - -## Development on Windows -Since you cannot use the `Makefile` on Windows, do the following: - - # Install nodejs, npm, and PHP composer - # Change to the extension's directory - # npm install - # composer install - -Once set up, running `npm test` and `composer test` will run automated code checks. diff --git a/Reveal.hooks.php b/Reveal.hooks.php index 97206c5..e682f74 100644 --- a/Reveal.hooks.php +++ b/Reveal.hooks.php @@ -90,7 +90,7 @@ public static function onSidebarBeforeOutput( $skin, &$sidebar ) { $sidebar["TOOLBOX"]["reveal"] = [ 'text' => $skin->msg( 'reveal-menu-entry' )->text(), - 'href' => $skin->makeInternalOrExternalUrl($skin->getTitle()) . '?reveal=true', + 'href' => $skin->makeInternalOrExternalUrl($skin->getTitle()) . '?reveal=true&skin=timeless', 'id' => 't-reveal' ]; } diff --git a/extension.json b/extension.json index b01bb60..2ff3b1e 100644 --- a/extension.json +++ b/extension.json @@ -9,6 +9,12 @@ "descriptionmsg": "reveal-desc", "license-name": "AGPL v3", "type": "other", + "requires": { + "MediaWiki": ">= 1.35", + "skins": { + "Timeless": "*" + } + }, "AutoloadClasses": { "RevealHooks": "Reveal.hooks.php" },