Antora Default UI issueshttps://gitlab.com/antora/antora-ui-default/-/issues2020-09-17T01:13:23Zhttps://gitlab.com/antora/antora-ui-default/-/issues/153Add support for syntax highlighting inline code phrases2020-09-17T01:13:23ZDan AllenAdd support for syntax highlighting inline code phraseshighlight.js, the syntax highlighter loaded by the default UI, has the ability to apply syntax highlighting to any element. This means we could open up syntax highlighting to inline code phrases that have the requisite CSS classes. All w...highlight.js, the syntax highlighter loaded by the default UI, has the ability to apply syntax highlighting to any element. This means we could open up syntax highlighting to inline code phrases that have the requisite CSS classes. All we'd need to do is make the element selector less specific by using the selector `code.hljs` instead of `pre code.hljs` to find elements to highlight. This would allow the author to activate syntax highlighting on an inline code phrase by adding the roles `hljs` and `language-<lang>` (where `<lang>` is the source language) to an inline phrase.
```
You can add [.hljs.language-ruby]`rescue nil` to the end of a statement to suppress errors.
```
For now, these roles would be specific to Antora. Though they could be hidden behind a custom inline macro (e.g., `source:ruby[rescue nil]`) or a postprocessor, thus making the arrangement more portablehttps://gitlab.com/antora/antora-ui-default/-/issues/44Add API-based autocomplete search2023-03-14T00:03:39ZDan AllenAdd API-based autocomplete searchAdd an in-page, API-based search solution (meaning the browser acts as the search client) to the default UI. This means adding a search box somewhere on the page, preferably above the navigation sidebar. When text is entered into the box...Add an in-page, API-based search solution (meaning the browser acts as the search client) to the default UI. This means adding a search box somewhere on the page, preferably above the navigation sidebar. When text is entered into the box, search results should be displayed in an overlay.
Done criteria:
- [x] select an API-based search solution (algolia, swiftype, etc)
- [x] read API key for search (if applicable) from site.keys
- [x] add a search box to the page
- [x] display search results in overlayDan AllenDan Allen