Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration settings to search results (mattermost#5911)
* Add script to dump a doctree to XML-like syntax; Add config-setting extension which exposes a domain to add config settings to the site search; Update searchtools.js to exclude object results from included pages; Update CSS styles to hide definition lists used in config settings * Migrate searchtools.js to ES6 syntax; Move search implementation into a JS class * Add function and class comments to config-setting extension * Remove duplicate object results from search; Attempt to sort all search results by score * Fix result sorting; Improved result display code * Split results into 2 sections * Use an object with JSDoc to hold individual search results instead of an array; Record which results come from object searches and display those results in the configuration section * Fix highlighting in search results; Remove the object name from results matching a config:setting object; Fix styling of config setting search results; Add config:setting directives to a few config settings * Remove unnecessary CSS change * Use a single HTML anchor for multiple config-setting signatures; Remove duplicate search results by favouring the result with the higher score; Remove display of search result score * Code cleanup; Add message stating results are sorted by relevance * Ensure the result with the higher score is favoured when removing duplicate results from text term searches * Rework config setting functionality to produce a separate index that can be fed into lunr.js for searching configuration settings * Fill in config setting search code * Improve Sphinx interaction by removing unnecessary event handlers; Figure out config setting search info before environment is pickled; Load lunr.js as the first script in the scripts block of the search template; Display config setting search results in a different manner than regular Sphinx results * Exclude documents from search where nosearch metadata parameter is defined; Fix incorrect anchor names for search results; Show additional config setting result metadata * Improve display of config setting search results * Improve search result status message; Refactor parts of the query() method into smaller functions * Add highlighting to config setting search result descriptions * Adjust field boosting to give more relevant config setting results; Display config setting results in reverse order so highest score is first; Add config setting directives to the remaining timeout-related settings; Fix a few incorrectly-formatted tables and section headings; Fix a couple incorrect setting descriptions * Add ability to render rST markup in description field of config setting directive; Start adding config:setting directives; Fix a few rST parsing errors * Add more config setting directives to authentication settings doc * Add more config setting directives to authentication settings doc in SAML section * Add config setting directives to authentication settings doc in OAuth section * Fix heading underlines in authentication doc * Finish adding config setting directives to authentication doc * Add config setting directives to compliance configuration doc * Add config setting directives to database configuration doc * Add config setting directives to developer mode configuration doc * Add config setting directives to elasticsearch configuration doc * Start adding config setting directives to experimental configuration doc * Add more config setting directives to experimental configuration doc * Add more config setting directives to experimental configuration doc * Clean up config setting directives after resolving merge conflict * Add more config setting directives to experimental config settings doc * Finish adding config setting directives to experimental config settings doc * Add config setting directives to file storage config settings doc * Start adding config setting directives to high availability config settings doc * Finish adding config setting directives to high availability config settings doc; Add config setting directives to image proxy doc * Add config setting directives to integrations config doc * Add config setting directives to logging config doc * Add config setting directives to performance monitoring config doc * Add config setting directives to plugins config doc * Add config setting directives to push notifications config doc * Add config setting directives to rate limiting config doc * Add config setting directives to session lengths config doc * Start adding config setting directives to site config doc * Finish adding config setting directives to site config doc * Add config setting directives to smtp config doc * Add config setting directives to web server config doc * Remove old config-setting v1 directive; Only highlight search terms longer than one character; Clean up logging in config-setting-v2 * Update Makefile python-deps target to specifically use Python 3.9, to clean its cache before installing, and to abort if the pipfile.lock file is invalid. * Fix typo in Makefile python-deps target * Update Pipfile.lock to try and fix install issue with pipenv 2022.12.19 * Lock down pipenv to v2022.12.19 to prevent further Pipfile.lock issues w.r.t. hashes * Add 2 newlines between short description and long description in config:setting directive
- Loading branch information