I am working on my
language-unix-shell package, adding features from the
autocomplete-bash-builtins package, as I want it to do autocompletions for commands it syntax-highlights. Currently it hyperlinks “more” to a man page for the command in question hosted by my GitHub Pages website, The Hornery and I would rather it opened up a new tab (in Atom itself, I don’t want it to open up the default web browser) with the man page (hosted in the package’s own folder and not on The Hornery) in it. I know that HTML can be rendered in Atom as a web page (e.g., look at the core
about package), but I don’t know how to implement this so that I specify the HTML file (stored in the
/man subfolder of my package) to be opened when the user clicks the “more” hyperlink and it’s opened in a new tab in Atom. If the structure of my package’s repository is causing some confusion (using descriptive language has never been my strong suit) feel free to look at it yourself, you can see the
man subfolder in its top-level directory.
I’ve looked at the About’s packages
lib/about-view.coffee file and based on it I would think I would have to convert each man HTML page into a CoffeeScript file like it (which as you can appreciate would be rather tedious, seeing how I’ve got ~ 100 man pages to do this for). I was hoping there might be a less painful solution available…
Here’s a screenshot showing the “more” hyperlink in the autocompletions my package provides, in case my mention of it is causing some confusion.
**EDIT**: If it is likely I will have to convert all my HTML files into CoffeeScript files like the about package's `lib/about-view.coffee` file, I think I will go the simpler route of getting the user's web browser to open the man page. To do so, I would appreciate it if you could tell me how I could create a hyperlink to open the man page (in the package's `/man` subfolder, **not** in *The Hornery*) in one's browser. I want this hyperlink to work even without an Internet Connection, so I don't want it to open the man page in its GitHub repo.
Thanks for your time,