Werdna has uploaded a new change for review.
https://gerrit.wikimedia.org/r/199890
Change subject: Complete renaming of LSG skin to Blueprint
......................................................................
Complete renaming of LSG skin to Blueprint
Change-Id: I2d8c441b77dc97dcb68a72cf15e211ff6d91ea4e
---
A Blueprint.php
M LivingStyleGuide.php
M README.md
M autoload.php
R src/BlueprintSkinTemplate.php
A src/SkinBlueprint.php
D src/SkinLivingStyleGuide.php
7 files changed, 103 insertions(+), 99 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Blueprint
refs/changes/90/199890/1
diff --git a/Blueprint.php b/Blueprint.php
new file mode 100644
index 0000000..cc17dac
--- /dev/null
+++ b/Blueprint.php
@@ -0,0 +1,74 @@
+<?php
+/**
+ * MediaWiki skin: Blueprint
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to
deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * This program is distributed WITHOUT ANY WARRANTY.
+ */
+
+/**
+ *
+ * @file
+ * @ingroup Extensions
+ * @author Andrew Garrett
+ */
+
+# Alert the user that this is not a valid entry point to MediaWiki if they try
to access the special pages file directly.
+if ( !defined( 'MEDIAWIKI' ) ) {
+ echo <<<EOT
+To install this extension, put the following line in LocalSettings.php:
+require_once( "$IP/skins/Blueprint/Blueprint.php" );
+EOT;
+ exit( 1 );
+}
+
+// Extension credits that will show up on Special:Version
+$wgExtensionCredits['skin'][] = array(
+ 'path' => __FILE__,
+ 'name' => 'Blueprint',
+ 'url' => 'http://gerrit.wikimedia.org/r/p/mediawiki/skins/Blueprint',
+ 'author' => array(
+ 'Andrew Garrett',
+ 'Prateek Saxena',
+ ),
+);
+
+$styleguideSkinResourceTemplate = array(
+ 'localBasePath' => __DIR__ . "/resources",
+ 'remoteSkinPath' => 'Blueprint/resources',
+ 'group' => 'skin.blueprint',
+);
+
+$wgResourceModules += array(
+ 'skin.blueprint.styles' => array(
+ 'styles' => 'master.less',
+ 'position' => 'top',
+ ) + $styleguideSkinResourceTemplate,
+ 'skin.blueprint' => array(
+ 'scripts' => 'menu.js',
+ ) + $styleguideSkinResourceTemplate,
+);
+
+$wgResourceModuleSkinStyles['blueprint'] = array(
+ // Apply original Tipsy styles
+ 'jquery.tipsy' => array(
+ 'tipsy.original.less',
+ 'tipsy.override.less',
+ ),
+ 'remoteSkinPath' => 'Blueprint/skinStyles',
+ 'localBasePath' => __DIR__ . '/skinStyles',
+);
+
+require_once __DIR__."/autoload.php";
+require_once __DIR__."/vendor/autoload.php";
+
+$wgValidSkinNames['blueprint'] = 'Blueprint';
diff --git a/LivingStyleGuide.php b/LivingStyleGuide.php
index d392861..d6f0788 100644
--- a/LivingStyleGuide.php
+++ b/LivingStyleGuide.php
@@ -1,73 +1,3 @@
<?php
-/**
- * MediaWiki Extension: LivingStyleGuideSkin
- *
- * Permission is hereby granted, free of charge, to any person obtaining a copy
- * of this software and associated documentation files (the "Software"), to
deal
- * in the Software without restriction, including without limitation the rights
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- * copies of the Software, and to permit persons to whom the Software is
- * furnished to do so, subject to the following conditions:
- *
- * The above copyright notice and this permission notice shall be included in
- * all copies or substantial portions of the Software.
- *
- * This program is distributed WITHOUT ANY WARRANTY.
- */
-/**
- *
- * @file
- * @ingroup Extensions
- * @author Andrew Garrett
- */
-
-# Alert the user that this is not a valid entry point to MediaWiki if they try
to access the special pages file directly.
-if ( !defined( 'MEDIAWIKI' ) ) {
- echo <<<EOT
-To install this extension, put the following line in LocalSettings.php:
-require_once( "$IP/extensions/LightNCandySkin/LightNCandySkin.php" );
-EOT;
- exit( 1 );
-}
-
-// Extension credits that will show up on Special:Version
-$wgExtensionCredits['skin'][] = array(
- 'path' => __FILE__,
- 'name' => 'LivingStyleGuideSkin',
- 'url' => 'URL to extension information',
- 'author' => array(
- 'Andrew Garrett',
- ),
-);
-
-$styleguideSkinResourceTemplate = array(
- 'localBasePath' => __DIR__ . "/resources",
- 'remoteSkinPath' => 'LivingStyleGuide/resources',
- 'group' => 'skin.livingstyleguide',
-);
-
-$wgResourceModules += array(
- 'skin.styleguide.styles' => array(
- 'styles' => 'master.less',
- 'position' => 'top',
- ) + $styleguideSkinResourceTemplate,
- 'skin.styleguide' => array(
- 'scripts' => 'menu.js',
- ) + $styleguideSkinResourceTemplate,
-);
-
-$wgResourceModuleSkinStyles['livingstyleguide'] = array(
- // Apply original Tipsy styles
- 'jquery.tipsy' => array(
- 'tipsy.original.less',
- 'tipsy.override.less',
- ),
- 'remoteSkinPath' => 'LivingStyleGuide/skinStyles',
- 'localBasePath' => __DIR__ . '/skinStyles',
-);
-
-require_once __DIR__."/autoload.php";
-require_once __DIR__."/vendor/autoload.php";
-
-$wgValidSkinNames['livingstyleguide'] = 'LivingStyleGuide';
+die( "LivingStyleGuide skin has been renamed to Blueprint. Please update your
configuration" );
diff --git a/README.md b/README.md
index 29cc0a3..435d9d6 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# LivingStyleGuideSkin
+# Blueprint
MediaWiki skin for the the living styleguide.
@@ -6,14 +6,14 @@
Clone the skin in `mediawiki/skins/` and install dependencies:
```
-$ git clone [email protected]:werdnum/LivingStyleGuideSkin.git LivingStyleGuide
-$ cd LivingStyleGuide
+$ git clone https://gerrit.wikimedia.org/r/mediawiki/skins/Blueprint Blueprint
+$ cd Blueprint
$ composer install
$ bower install
```
Enable and set the skin as default, add this to `LocalSettings.php`:
```php
-require_once "$IP/skins/LivingStyleGuide/LivingStyleGuide.php";
-$wgDefaultSkin = "LivingStyleGuide";
-```
\ No newline at end of file
+require_once "$IP/skins/Blueprint/Blueprint.php";
+$wgDefaultSkin = "blueprint";
+```
diff --git a/autoload.php b/autoload.php
index fed42cd..245c206 100644
--- a/autoload.php
+++ b/autoload.php
@@ -1,9 +1,9 @@
<?php
-// This file is generated by
/Users/andrew/wm-dev/vagrant/mediawiki/skins/LivingStyleGuide, do not adjust
manually
-
+// This file is generated by
/Users/andrew/wm-dev/vagrant/mediawiki/skins/Blueprint, do not adjust manually
+// @codingStandardsIgnoreFile
global $wgAutoloadClasses;
$wgAutoloadClasses += array(
- 'LivingStyleGuideSkinTemplate' => __DIR__ .
'/src/LivingStyleGuideSkinTemplate.php',
- 'SkinLivingStyleGuide' => __DIR__ . '/src/SkinLivingStyleGuide.php',
+ 'BlueprintSkinTemplate' => __DIR__ . '/src/BlueprintSkinTemplate.php',
+ 'SkinBlueprint' => __DIR__ . '/src/SkinBlueprint.php',
);
diff --git a/src/LivingStyleGuideSkinTemplate.php
b/src/BlueprintSkinTemplate.php
similarity index 84%
rename from src/LivingStyleGuideSkinTemplate.php
rename to src/BlueprintSkinTemplate.php
index de9bef8..eab3502 100755
--- a/src/LivingStyleGuideSkinTemplate.php
+++ b/src/BlueprintSkinTemplate.php
@@ -1,6 +1,6 @@
<?php
-class LivingStyleGuideSkinTemplate extends LightNCandyTemplate {
+class BlueprintSkinTemplate extends LightNCandyTemplate {
public function getTemplate() {
$templating = new SimpleLightNCandy( __DIR__ . '/../templates'
);
diff --git a/src/SkinBlueprint.php b/src/SkinBlueprint.php
new file mode 100755
index 0000000..399585b
--- /dev/null
+++ b/src/SkinBlueprint.php
@@ -0,0 +1,17 @@
+<?php
+
+class SkinBlueprint extends SkinTemplate {
+ public $skinname = 'blueprint';
+ public $stylename = 'blueprint';
+ public $template = 'BlueprintSkinTemplate';
+
+ public function initPage( OutputPage $out ) {
+ parent::initPage( $out );
+ $out->addModules( array( 'skin.blueprint' ) );
+ }
+
+ public function setupSkinUserCss( OutputPage $out ) {
+ parent::setupSkinUserCss( $out );
+ $out->addModuleStyles( array( 'skin.blueprint.styles' ) );
+ }
+}
diff --git a/src/SkinLivingStyleGuide.php b/src/SkinLivingStyleGuide.php
deleted file mode 100755
index 6fc5a3d..0000000
--- a/src/SkinLivingStyleGuide.php
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-
-class SkinLivingStyleGuide extends SkinTemplate {
- public $skinname = 'test';
- public $stylename = 'test';
- public $template = 'LivingStyleGuideSkinTemplate';
-
- public function initPage( OutputPage $out ) {
- parent::initPage( $out );
- $out->addModules( array( 'skin.styleguide' ) );
- }
-
- public function setupSkinUserCss( OutputPage $out ) {
- parent::setupSkinUserCss( $out );
- $out->addModuleStyles( array( 'skin.styleguide.styles' ) );
- }
-}
--
To view, visit https://gerrit.wikimedia.org/r/199890
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d8c441b77dc97dcb68a72cf15e211ff6d91ea4e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/Blueprint
Gerrit-Branch: master
Gerrit-Owner: Werdna <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits