I've compiled the seed project locally and ran it using docfx --serve and was able to successfully use the search function there. I took the contents of the _site folder and uploaded to Azure Websites and the search function doesn't return anything.
I'm unable to use the search function throughout the entire site.
docfx build_site folder to Azure Websites via FTP.docfx as an example.Live demo: http://docfxseed.azurewebsites.net
I expected a page of results for the phrase docfx to show up.
The search only displays the following message:
Search Results for "docfx"
The Azure Website I'm uploading the contents to doesn't have any extra configurations. I simply created a Web App, downloaded the FTP information, and uploaded the contents of the _site folder.
Cannot download https://docfxseed.azurewebsites.net/index.json, you need add web.config, see How to serve static .json files from a Windows Azure Website
xml <?xml version="1.0"?> <configuration> <system.webServer> <staticContent> <mimeMap fileExtension=".json" mimeType="application/json" /> </staticContent> </system.webServer> </configuration>
Thanks, that solved my problem 馃槃
Most helpful comment
Cannot download https://docfxseed.azurewebsites.net/index.json, you need add web.config, see How to serve static .json files from a Windows Azure Website