Skip to content

[search] Add support to custom search scorer #38

@gastmaier

Description

@gastmaier

Under vanilla sphinx, this is done with, at conf.py

html_search_scorer = "path/to/scorer.js"

and here is a custom scorer example: https://github.com/zephyrproject-rtos/zephyr/blob/main/doc/_static/js/scorer.js

what can be done is doctools catching html_search_scorer and adding to a metadata file. then the extra.js/search grabs it and applies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions