Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Indexing help #20

Open
tripledee opened this issue Feb 28, 2019 · 7 comments
Open

Indexing help #20

tripledee opened this issue Feb 28, 2019 · 7 comments

Comments

@tripledee
Copy link

tripledee commented Feb 28, 2019

Hello. Thanks for this nice tool! I try to index the Apple Help created with jekyll-apple-help (using keywords I put in .md pages). When compiling the project, a search.helpindexfile is created in the English.lproj directory but it seems that it is ignored when I search in the Help window of my application. Any idea of what I missed? Thanks

@chuckhoupt
Copy link
Owner

By "keywords", do you mean HTML meta keywords, or just free text in the page's body? Example meta-keywords:

<meta name="keywords" content="dog, cat">

Jekyll-Apple-Help should index both via hiutil, but I'll run some tests to verify that. Possibly the problem is due to the Apple Help system caching or accessing an old version of a help bundle.

@tripledee
Copy link
Author

Thanks for your fast answer!

yes, I use HTML meta keywords. When I compile the help, hiutil is run and a search.helpindex file is well created (and populated with much content, omitting the keywords though). But any search term in Help window returns no result…

I erased all built files and restarted from scratch, but nothing changes. I got the same behaviour with your myApp sample project.

@chuckhoupt
Copy link
Owner

I can reproduce the issue -- when new content is added to help (meta-keywords, body text), the HelpViewer ignores the new .helpindex file. So far the only workaround I can suggest is to logout/login -- that appears to clear some cache, allowing searching for new index terms.

@tripledee
Copy link
Author

Ok. I will try that ASAP

@tripledee
Copy link
Author

I got no change after logout/login, even a computer restart. I just discovered that one topic page seems to be indexed (the content in page and the content of the left menu). But cannot obtain that the dozen other topic pages be indexed…

@chuckhoupt
Copy link
Owner

Ok. You might double-check that the app's Help Book Identifier (CFBundleHelpBookName) correctly matches the Bundle Identifier (CFBundleIdentifier) of the help book. I found a bug in the example app, which causes a mismatch. The result was that search failed. I've committed a fix in d86ced1.

Here is what the Info.plist's should contain:

MyApp.app/Contents/Info.plist:

	<key>CFBundleHelpBookFolder</key>
	<string>MyAppHelp.help</string>
	<key>CFBundleHelpBookName</key>
	<string>com.example.MyApp.help</string>

MyAppHelp.help/Content/Info.plist:

	<key>CFBundleIdentifier</key>
	<string>com.example.MyApp.help</string>

@tripledee
Copy link
Author

I have the same settings, alas... I tried to run hiutil in the Terminal, erase helpd and helpviewer caches, restarted the computer... and still no use of the index file by the Help Viewer application

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants