Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
314 views
in Technique[技术] by (71.8m points)

.net - SandCastle Help File Builder: Search not working

I have just downloaded the latest version of Sancastle Help File Builder 2017.1.28.0. According to the answers and comments from this post, I expected the search to work but it doesn't. No matter what I am trying to search for, I will get a "Nothing found" message. BTW, I do not have any aspx file generated.

I tried using Google Chrome browser

Do I miss any project configuration?

How can I make the search working?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The described behaviour seems to depend on the used browser. Following snapshots show a working and a NOT working case:

enter image description here

enter image description here

I generated a dummy help including some conceptual topics for testing. Trying a search for e.g. CHM ends up with following results:

(1) Open index.html local by “Open with” or double click:

  • Browser FireFox: Search is working
  • Browser Microsoft Internet Explorer: Search is working
  • Browser Microsoft Edge: Search NOT working
  • Browser Google Chrome: Search NOT working

(2) Open uploaded files from server (https://www.help-info.de/help-sandcastle)

  • All browsers: Search is working

So, search is working but at this stage there are restrictions on locally stored file structure.

Edit: (after contacting Eric Woodruff as the creator of Sandcastle Help File Builder)

When opened from the local file system, extra security kicks in and some of the script gets blocked and can’t run. As such, certain features like search and the expandable TOC don’t work as expected.

Using the local web dev server or IIS Express also works if you don’t want to upload them to a server to test the website output. There’s an option in SHFB to run it with the local server.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...