Skip to content

Commit

Permalink
Make 1.5.0 release (#55)
Browse files Browse the repository at this point in the history
* Update RELEASE-NOTES.md
* Update README.md
* Update 00-configurations.md
* Update composer.json
* Update SemanticBreadcrumbLinks.php
** Bump version number
  • Loading branch information
kghbln authored Sep 22, 2018
1 parent a157fb6 commit c490054
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 12 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ The recommended way to install Semantic Breadcrumb Links is by using [Composer][
```json
{
"require": {
"mediawiki/semantic-breadcrumb-links": "~1.4"
"mediawiki/semantic-breadcrumb-links": "~1.5"
}
}
```
1. From your MediaWiki installation directory, execute
`composer require mediawiki/semantic-breadcrumb-links:~1.4`
`composer require mediawiki/semantic-breadcrumb-links:~1.5`
2. Navigate to _Special:Version_ on your wiki and verify that the package
have been successfully installed.

Expand Down
19 changes: 14 additions & 5 deletions RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
This file contains the RELEASE-NOTES of the Semantic Breadcrumb Links (a.k.a. SBL) extension.

### 1.5.0

Released on September 22, 2018.

* Requires PHP 5.6 or later
* #47/#49 Fixed integration with MediaWiki 1.30+ by using `subtitle` to show redirect, revision and display title information
* #50 Added `$egSBLDisableTranslationSubpageAnnotation` to allow for disabling translation subpage annotation
* Localization updates from https://translatewiki.net

### 1.4.0

Released on June 10, 2017.
Expand All @@ -25,9 +34,9 @@ Released on July 9, 2016.
* Requires Semantic MediaWiki 2.4 or later
* Added `onoi/shared-resources` dependency
* Support for `Display title of` provided by SMW 2.4.0
* Added `$GLOBALS['egSBLEnabledSubpageParentAnnotation']` to allow for subpage
* Added `$egSBLEnabledSubpageParentAnnotation` to allow for subpage
parents to be annotated automatically if no other `Has parent page` exists
* Recognize `egSBLPageTitleToHideSubpageParent` / `wgNamespacesWithSubpages`
* Recognize `$egSBLPageTitleToHideSubpageParent` / `$wgNamespacesWithSubpages`
when building the breadcrumb title
* Apply italic styles for "hasChildren" early to avoid JS async display clutter

Expand All @@ -45,13 +54,13 @@ Released on December 19, 2015.
Released on June 2, 2015.

* Fixed unstyled content flashing observed in MW 1.25
* Added `$GLOBALS['egSBLBreadcrumbDividerStyleClass']` to assign styling options such as `sbl-breadcrumb-pipe` or `sbl-breadcrumb-arrow`
* Added `$egSBLBreadcrumbDividerStyleClass` to assign styling options such as `sbl-breadcrumb-pipe` or `sbl-breadcrumb-arrow`
* Localization updates from https://translatewiki.net

### 1.0.0

Released on Februray 14, 2015.

* Initial release
* `ByPropertyHierarchicalLinksFinder` to match a property hierarchy defined by `egSBLPropertySearchPatternByNamespace`
* `BySubpageLinksFinder` to find a subpage hierarchy if `egSBLUseSubpageFinderFallback` is enabled
* `ByPropertyHierarchicalLinksFinder` to match a property hierarchy defined by `$egSBLPropertySearchPatternByNamespace`
* `BySubpageLinksFinder` to find a subpage hierarchy if `$egSBLUseSubpageFinderFallback` is enabled
4 changes: 2 additions & 2 deletions SemanticBreadcrumbLinks.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @defgroup SBL Semantic Breadcrumb Links
*/
if ( !defined( 'MEDIAWIKI' ) ) {
die( 'This file is part of the Semantic Breadcrumb Links extension, it is not a valid entry point.' );
die( 'This file is part of the Semantic Breadcrumb Links extension. It is not a valid entry point.' );
}

if ( defined( 'SBL_VERSION' ) ) {
Expand Down Expand Up @@ -51,7 +51,7 @@ public static function load() {
*/
public static function initExtension() {

define( 'SBL_VERSION', '1.5.0-alpha' );
define( 'SBL_VERSION', '1.5.0' );
define( 'SBL_PROP_PARENTPAGE', 'Has parent page' );

// Register the extension
Expand Down
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mediawiki/semantic-breadcrumb-links",
"type": "mediawiki-extension",
"description": "A Semantic MediaWiki extension to build breadcrumb links from an attributive property filter.",
"description": "An extension to Semantic MediaWiki allowing to build breadcrumb links from an attributive property filter",
"keywords": [
"smw",
"semantic mediawiki",
Expand All @@ -21,7 +21,6 @@
"support": {
"email": "semediawiki-user@lists.sourceforge.net",
"issues": "https://github.com/SemanticMediaWiki/SemanticBreadcrumbLinks/issues",
"irc": "irc://irc.freenode.net/semantic-mediawiki",
"forum": "https://www.semantic-mediawiki.org/wiki/semantic-mediawiki.org_talk:Community_portal",
"wiki": "https://www.semantic-mediawiki.org/wiki/",
"source": "https://github.com/SemanticMediaWiki/SemanticBreadcrumbLinks"
Expand Down
5 changes: 4 additions & 1 deletion docs/00-configurations.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ enabled then SBL will not try to resolve a possible subpage hierarchy.
- `$GLOBALS['egSBLPageTitleToHideSubpageParent']` if enabled SBL will try to hide the parent part
of a subpage title from display when a corresponding namespace entry is found in the
[`wgNamespacesWithSubpages`][mw-nssubp] setting.

- `$GLOBALS['egSBLEnabledSubpageParentAnnotation']` supports the auto-generation of `Has parent page`
annotations for subpages. Yet, it will not create any additional assignment if `Has parent page` is
already part of the `SemanticData`.
- `$GLOBALS['egSBLDisableTranslationSubpageAnnotation']` supports avoiding to create annotations for
pages like e.g. "Example/en" where "en" is identified as translation page by the "Translate" extension. Note
that this works only for any new translation revision but not for revisions in retrospect.

## Default settings

Expand All @@ -50,6 +52,7 @@ $GLOBALS['egSBLBreadcrumbDividerStyleClass'] = 'sbl-breadcrumb-arrow';

$GLOBALS['egSBLPageTitleToHideSubpageParent'] = true;
$GLOBALS['egSBLEnabledSubpageParentAnnotation'] = true;
$GLOBALS['egSBLDisableTranslationSubpageAnnotation'] = true;

$GLOBALS['egSBLTryToFindClosestDescendant'] = true;
$GLOBALS['egSBLUseSubpageFinderFallback'] = true;
Expand Down

0 comments on commit c490054

Please sign in to comment.