hammerspoon icon indicating copy to clipboard operation
hammerspoon copied to clipboard

docs.css missing from local help page

Open lhemkendreis opened this issue 2 years ago • 2 comments

My hammerspoon help page seems to be missing its docs.css.

When I call hs.doc.hsdocs.help(), the page opens, but it's all messed up. image

When I display the source code in Safari, it tells me that the docs.css cannot be loaded. image

I already replaced my hammerspoon.app file with a freshly downloaded one, but it didn't help.

Please Help :'-/

Thanks :-)

lhemkendreis avatar Apr 16 '22 21:04 lhemkendreis

Pinging @cmsj - I assume the CSS file was just left out of the new method to copy across files into the app bundle.

As a workaround you can copy manually copy the CSS file across from GitHub.

latenitefilms avatar Apr 17 '22 00:04 latenitefilms

Thank you @latenitefilms. I managed to solve the problem using the workaround you suggested :-)

I'll leave this issue open as a reminder for the devs to fix it.

lhemkendreis avatar Apr 18 '22 17:04 lhemkendreis

@cmsj, during your changes to the build process, I think you left out copying the docs.css file into the hsdocs folder of the doc extension... in the original build process you can see this here: https://github.com/Hammerspoon/hammerspoon/blob/d2eb524a001e251e24d97eb43c1142d5ba7ecce7/scripts/copy_extensions_to_bundle.sh#L127

I'm not in a place to look at Hammerspoon in XCode at the moment... but I seem to recall you migrated these move statements directly into the Hammerspoon build process instead of as a separate script, correct?

asmagill avatar Dec 27 '22 20:12 asmagill