Cheat Sheet Docset with your own Applet

If you know what cheat sheet and docset is… https://kapeli.com/dash
You maybe like to make your own… its not so difficult.

Here is my idea of AppleScript Applet, and it use some of samples from dash.
But you could have your own docset inside the bundle of your applet.

You need WebKit Utilities:
http://piyocast.com/as/wp-content/uploads/2020/03/WebKit-Utilities_archive.zip

Save the script as Applet stay open.

use AppleScript version "2.4"
use framework "CoreImage"
use scripting additions
use webLib : script "WebKit Utilities"

(**
* Reference URL:
* https://kapeli.com/cheat_sheets/Mac_Startup_Keys.docset/Contents/Resources/Documents/index
* https://kapeli.com/cheat_sheets/iOS_Design.docset/Contents/Resources/Documents/index
**
* https://kapeli.com/cheat_sheets/NSDateFormatter.docset/Contents/Resources/Documents/index
* https://kapeli.com/cheat_sheets/NSPredicate.docset/Contents/Resources/Documents/index
**
* https://kapeli.com/cheat_sheets/Unix_File_Permissions.docset/Contents/Resources/Documents/index
**
* https://kapeli.com/cheat_sheets/Emoji.docset/Contents/Resources/Documents/index
**
* https://kapeli.com/cheat_sheets/Bash_Test_Operators.docset/Contents/Resources/Documents/index
* https://kapeli.com/cheat_sheets/Regular_Expressions.docset/Contents/Resources/Documents/index
* https://kapeli.com/cheat_sheets/YAML.docset/Contents/Resources/Documents/index
***
* To make your own cheat sheet.
***
* You need cheatset, sudo gem install cheatset
* Go here to find samples: https://github.com/Kapeli
* To build your own cheat sheet docset: cheatset generate nameOfYourCheat.rb 
* Inside the bundle you will find html refrence to use in your AppleScript Applet.
*)

property domain : "https://kapeli.com/cheat_sheets/"

set theNames to {"NSDateFormatter", "NSPredicate", "iOS_Design", "Mac_Startup_Keys", "Unix_File_Permissions", "Emoji", "Bash_Test_Operators", "Regular_Expressions", "YAML"}
set theItem to (choose from list theNames with title "Choose the reference") as text
set theURL to domain & theItem & ".docset/Contents/Resources/Documents/index"
try
	return display URL theURL window size {1024, 850}
end try