Skip to content

Commit

Permalink
fix: force skin=Timeless
Browse files Browse the repository at this point in the history
  • Loading branch information
simontaurus committed May 16, 2023
1 parent 4676ebc commit 023237c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 14 deletions.
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
2 changes: 1 addition & 1 deletion Reveal.hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
];
}
Expand Down
6 changes: 6 additions & 0 deletions extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
"descriptionmsg": "reveal-desc",
"license-name": "AGPL v3",
"type": "other",
"requires": {
"MediaWiki": ">= 1.35",
"skins": {
"Timeless": "*"
}
},
"AutoloadClasses": {
"RevealHooks": "Reveal.hooks.php"
},
Expand Down

0 comments on commit 023237c

Please sign in to comment.