From cecb978bae17cfda6701194d6e7739d5d041f039 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Sun, 25 Sep 2022 10:35:40 -0700 Subject: [PATCH] help.html: implement "/" for making search box active. --- basis/help/html/html.factor | 23 +++++++++++++++++++++-- extra/webapps/help/search.js | 11 +++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/basis/help/html/html.factor b/basis/help/html/html.factor index d179b3ef3a..4cd0f8c889 100644 --- a/basis/help/html/html.factor +++ b/basis/help/html/html.factor @@ -91,12 +91,31 @@ M: pathname url-of /> XML] ; +: help-script ( -- xml ) + [XML + + XML] ; + +: help-header ( stylesheet -- xml ) + help-stylesheet help-meta swap help-script 3append ; + : help-nav ( -- xml ) "conventions" >link topic>filename [XML