Skip to content

Integrate DocSearch x Algolia in a DocFx site #9668

Answered by filzrev
cdervout asked this question in Q&A
Discussion options

You must be logged in to vote

It's need to create custom template for DocSearch.

docfx modern template don't support partial template update.
It need to copy entire template layout file and need to modify contents.

Required steps

  1. Create custom template that clone modern template's layout file.
    filzrev/docfx.samples.docsearch@3ef095e
  2. Add required DocSearch settings.
    filzrev/docfx.samples.docsearch@70d204c

Sample DocSearch enabled site (Using Demo API key)
https://filzrev.github.io/docfx.samples.docsearch

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by cdervout
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants