docfx icon indicating copy to clipboard operation
docfx copied to clipboard

Search service worker error

Open glararan opened this issue 4 years ago • 3 comments

Operating System: Windows

DocFX Version Used: 2.59.0

Template used: default

Steps to Reproduce:

  1. Download newest version
  2. docfx init -q
  3. enable search
  4. docfx docfx_project\docfx.json --serve

Expected Behavior: working search

Actual Behavior: search crash

search-worker.js:39 
        
       Uncaught TypeError: Cannot read properties of undefined (reading 'search')
    at onmessage (search-worker.js:39:26)

image

glararan avatar Feb 11 '22 15:02 glararan

Ok so there was actually problem search index.json is not generated if noFollow is set to true.

Should be noted in docs.

glararan avatar Feb 14 '22 11:02 glararan

Where was noFollow set to true?

KalleOlaviNiemitalo avatar Feb 14 '22 11:02 KalleOlaviNiemitalo

image

I thought its google search :) meta tag no index no follow

glararan avatar Feb 14 '22 18:02 glararan