Skip to content

DITA Bootstrap + Lunr Search - How to document it? #75

Closed
@jason-fox

Description

@jason-fox

I have created an extension to DITA Bootstrap for a search box which incorporates a lunr.js search function. You can see the source code here and examples of the result can be seen here and here

I'm now wondering what to do next. 🤷

Screenshot 2023-04-12 at 19 27 07

Thoughts

Although the generation of the lunr search index is generic, the display of the results is currently very tightly bound to the structure of the HTML created by the DITA Bootstrap plugin, and I'm wondering how to incorporate this in a coherent manner.

  1. Lunr.js search shouldn't be part of the main DITA Bootstrap plugin - there are plenty of other sensible options - e.g. Solr, Algolia, Google etc. - this is just one way of doing it.
  2. Since Lunr.js search is so tightly bound, the repo would be better placed somewhere under your account - i.e. infotexture/dita-bootstrap.lunr rather mine jason-fox/dita-bootstrap.lunr - it would be more discoverable that way.
  3. For Documentation, it would be possible to add in another topic in the DITA Bootstrap docs under Extend like Icons or Dark Mode
  4. The CI generated GitHub Action can be altered to add search of course.

Questions

So the question is what should happen next? Would it lie better under your account or mine? Should I cede it over to you and you give me back collaborator access or should I leave it where it is? How should I go about raising a documentation PR?

What are your thoughts?

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions