You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: include methods in search results again (#1692)
This moves the indexing config for elasticlunr search to only use
MarkdownRemark nodes, since everything is being source as markdown files
from `plugin-rest-endpoint-methods.js`.
Now all of the information that was previously available for search
indexing will be available in the frontmatter of each method's markdown
file.
I tried sourcing this information from the htmlAst and headings fields in the
MarkdownRemark nodes, but it appears that gatsby-transformer-remark
doesn't generate that information until it's queried for the first time,
and the config portion for building the search index happens before
that, so that was unavailable.
Placing it in the frontmatter seemed like a good way to have it
available during the build step without modifying the visible content of
the documentation or figuring out how to force that information to build
earlier and then parse an HTML AST for title and example snippets.
0 commit comments