Skip to content

Commit

Permalink
Include docs.css in build for built in web help (#3476)
Browse files Browse the repository at this point in the history
* add docs.css to hsminweb for better html rendering of help

* fix compiler error with 14.3
  • Loading branch information
asmagill authored Dec 10, 2023
1 parent e36bceb commit c576c7e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions Hammerspoon.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -586,6 +586,7 @@
D64B03371BA954290006C468 /* webview.h in Headers */ = {isa = PBXBuildFile; fileRef = D64B03361BA9541E0006C468 /* webview.h */; };
D64B03421BA954780006C468 /* webview.h in Headers */ = {isa = PBXBuildFile; fileRef = D64B03361BA9541E0006C468 /* webview.h */; };
D64B03471BA954A20006C468 /* libwebview_usercontent.m in Sources */ = {isa = PBXBuildFile; fileRef = D64B03381BA954660006C468 /* libwebview_usercontent.m */; };
D659EC7429F8468F00A7D103 /* docs.css in Copy hsdocs Files */ = {isa = PBXBuildFile; fileRef = D659EC7329F8468F00A7D103 /* docs.css */; };
D68616081E04D60A0058A4F2 /* imageAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = D68615F41E04D5990058A4F2 /* imageAdditions.m */; };
D68616091E04D60A0058A4F2 /* libcanvas.m in Sources */ = {isa = PBXBuildFile; fileRef = D68615F61E04D5990058A4F2 /* libcanvas.m */; };
D686160A1E04D61C0058A4F2 /* Canvas.h in Headers */ = {isa = PBXBuildFile; fileRef = D68615F31E04D5990058A4F2 /* Canvas.h */; };
Expand Down Expand Up @@ -1303,6 +1304,7 @@
dstPath = extensions/hs/hsdocs;
dstSubfolderSpec = 7;
files = (
D659EC7429F8468F00A7D103 /* docs.css in Copy hsdocs Files */,
4FCA05A2276768DE0089A5FC /* init.lua in Copy hsdocs Files */,
4FCA05A3276768DE0089A5FC /* index.lp in Copy hsdocs Files */,
4FCA05A4276768DE0089A5FC /* gfm.lp in Copy hsdocs Files */,
Expand Down Expand Up @@ -2068,6 +2070,7 @@
D64B03361BA9541E0006C468 /* webview.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = webview.h; path = extensions/webview/webview.h; sourceTree = "<group>"; };
D64B03381BA954660006C468 /* libwebview_usercontent.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = libwebview_usercontent.m; path = extensions/webview/libwebview_usercontent.m; sourceTree = "<group>"; };
D64B03461BA954780006C468 /* libwebviewusercontent.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; path = libwebviewusercontent.dylib; sourceTree = BUILT_PRODUCTS_DIR; };
D659EC7329F8468F00A7D103 /* docs.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; name = docs.css; path = scripts/docs/templates/docs.css; sourceTree = "<group>"; };
D66B763A1DD6FD1400CA12E6 /* location_geocoder.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = location_geocoder.lua; path = extensions/location/location_geocoder.lua; sourceTree = "<group>"; };
D67F1B3C1EA9D65E00FEB411 /* doc_builder.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = doc_builder.lua; path = extensions/doc/doc_builder.lua; sourceTree = "<group>"; };
D684BBFB1DFB72BD00B4D0B8 /* watchable.lua */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = watchable.lua; path = extensions/watchable/watchable.lua; sourceTree = "<group>"; };
Expand Down Expand Up @@ -3965,6 +3968,7 @@
9445CA0219083251002568BB = {
isa = PBXGroup;
children = (
D659EC7329F8468F00A7D103 /* docs.css */,
4FC09F7B19F99ECE007542A6 /* docs.json */,
9445CA1419083251002568BB /* Hammerspoon */,
4F98506D1B722C4100F7E909 /* extensions */,
Expand Down
12 changes: 6 additions & 6 deletions extensions/doc/html_blocks.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ inline
#endif
#endif
static unsigned int
hash_block_tag (str, len)
register const char *str;
register unsigned int len;
hash_block_tag (register const char *str, register unsigned int len)
// register const char *str;
// register unsigned int len;
{
static const unsigned char asso_values[] =
{
Expand Down Expand Up @@ -141,9 +141,9 @@ __attribute__ ((__gnu_inline__))
#endif
#endif
static const char *
find_block_tag (str, len)
register const char *str;
register unsigned int len;
find_block_tag (register const char *str, register unsigned int len)
// register const char *str;
// register unsigned int len;
{
enum
{
Expand Down

0 comments on commit c576c7e

Please sign in to comment.