Merge "Allow editors to exclude navigation items from search indices"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 19 Apr 2017 06:57:43 +0000 (06:57 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 19 Apr 2017 06:57:43 +0000 (06:57 +0000)
includes/content/WikiTextStructure.php

index 9f79aa8..afa03b8 100644 (file)
@@ -37,6 +37,9 @@ class WikiTextStructure {
                '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'
        ];
 
        /**