help.html: support ui/tools/error-list/icons also.
parent
868d970784
commit
2e2f1d673a
|
@ -151,7 +151,7 @@ M: pathname url-of
|
|||
dup "src" attr
|
||||
|
||||
! use @2x retina images
|
||||
dup "@2x.png" tail? [
|
||||
"@2x" over subseq? [
|
||||
"." split1-last "@2x." glue
|
||||
] unless
|
||||
|
||||
|
@ -159,6 +159,9 @@ M: pathname url-of
|
|||
"vocab:definitions/icons/" ?head
|
||||
[ "/icons/" prepend ] when
|
||||
|
||||
"vocab:ui/tools/error-list/icons/" ?head
|
||||
[ "/icons2/" prepend ] when
|
||||
|
||||
"src" set-attr
|
||||
] [ drop ] if
|
||||
] deep-each
|
||||
|
|
|
@ -41,6 +41,7 @@ TUPLE: help-webapp < dispatcher ;
|
|||
help-dir <search-action> <secure-only> "search" add-responder
|
||||
help-dir <static> <secure-only> "content" add-responder
|
||||
"resource:basis/definitions/icons/" <static> <secure-only> "icons" add-responder ;
|
||||
"resource:basis/ui/tools/error-list/icons/" <static> <secure-only> "icons2" add-responder ;
|
||||
|
||||
: run-help-webapp ( -- )
|
||||
"docs" cache-file <help-webapp>
|
||||
|
|
Loading…
Reference in New Issue