-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: customize search_data for an extra
This allows configuring the "search data" for any given extra. When you do this, you take over the way that the extra appears both in autocomplete and in search_data. The current system assumes that you give this information in markdown, which I think is a safe assumption, but we could do something like allow for an html_body or markdown_body to be given, etc. This is likely not going to be useful for 99% of people, and as such I think its okay that its not super ergonomic. Specifically, you have to completely manage the search content etc. The way this will be used, however, is in Spark where we generate markdown files for DSL documentation. With this change, we can add a function called Spark.Dsl.search_data_for(Your.Dsl) which will improve the autocomplete experience and the search experience in various ways (by adding more things to autocomplete than just headers, and by customizing the type of the search data nodes
- Loading branch information
1 parent
3139d3f
commit b1ee88b
Showing
8 changed files
with
187 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
formatters/html/dist/html-APUAZXLV.js → formatters/html/dist/html-HDRJYJCE.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.