Skip to content

Improving API search #6

@unlessgames

Description

@unlessgames

While this also relates to the mdbook parts that come into play outside this module, I thought it might be better to keep this issue here as it relates to pretty much any lua api doc you'd want to generate.

There are a couple of issues with the search, some might need fixing here:

  • search is limited to 30, this is not enough for big API results (for example searching for visible on the xrnx repo will be flooded with Views links, and visible_note_columns won't make it), this can be bumped easily in the mdbook config using limit-results in [html.output.search]
  • the order of search results could be better (xrnx docs again, searching visible_ returns functions where an argument name is matching before matching properties). Ideally the order would look something like class > property/function > arguments > description
  • some things are simply not being found, maybe something to do with code-blocks not being searched mid-word? (xrnx docs again, searching DocumentList doesn't return this class at all, but Document.DocumentList does)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions