jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/348855 )
Change subject: Allow editors to exclude navigation items from search indices
......................................................................
Allow editors to exclude navigation items from search indices
When you perform a particular search, the results can be polluted by
navigation elements that are not supposed to be displayed. This gives
editors the ability to mark sections of the document that should not
be indexed.
Bug: T162905
Change-Id: Iab2b83c3778cd5f7f44736c0da569fd938ae2968
---
M includes/content/WikiTextStructure.php
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
jenkins-bot: Verified
DCausse: Looks good to me, approved
diff --git a/includes/content/WikiTextStructure.php
b/includes/content/WikiTextStructure.php
index 9f79aa8..afa03b8 100644
--- a/includes/content/WikiTextStructure.php
+++ b/includes/content/WikiTextStructure.php
@@ -37,6 +37,9 @@
'h1', 'h2', 'h3', 'h4', 'h5', 'h6',
// Collapsed fields are hidden by default so we don't want them
showing up.
'.autocollapse',
+ // Content explicitly decided to be not searchable by editors
such
+ // as custom navigation templates.
+ '.navigation-not-searchable'
];
/**
--
To view, visit https://gerrit.wikimedia.org/r/348855
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Iab2b83c3778cd5f7f44736c0da569fd938ae2968
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
Gerrit-Reviewer: DCausse <[email protected]>
Gerrit-Reviewer: Smalyshev <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits