How to create .help file for help for Mac?

I am trying to make support for my mac application. I made XHTML, HTML and a .helpIndex file. But I do not know how to make a .help file. My question is what is a .help file? and how to make a .help file?

I am studying in an apple class class for this. Below is the material that I copied this link.

Creating a basic reference book

After creating the HTML files containing your help content, you should organize them in a reference book. To do this, create a help book folder and include the following items:

My question is how to create a directory for a reference book. I can’t figure it out. I just created a folder with somename.help and copied the files there. But that does not work. is this the right way to create a help folder.

+6
source share
1 answer

.help is the top-level folder of your document, not installed as a file. As a Mac application, this is really a folder with the .app extension

At a basic level, you need to create your html-based set of documents, as you did, and then add the meta tag named AppleTitle to your top-level HTML file .html index.html (SurfWriter.html in the examples)

 <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="Content-Style-Type" content="text/css"> <title>Foobar Help</title> <meta name="AppleTitle" content="Foobar Help"> </head> 
  • add CFBundleHelpBookFolder with the value of your folder name (Surfwriter.help) to your plist

  • add CFBundleHelpBookName with the value Foobar Help to your plist (matches the meta tag in your header)

  • add a custom copy phase to put your .help document folder structure in resources

It should just work after that.

+8
source

Source: https://habr.com/ru/post/897956/


All Articles