Finishing up with help.html
parent
55f46957af
commit
bbd8c8cb89
|
@ -63,11 +63,11 @@ M: topic browser-link-href topic>filename ;
|
||||||
|
|
||||||
: all-topics ( -- topics )
|
: all-topics ( -- topics )
|
||||||
[
|
[
|
||||||
! articles get keys [ >link ] map %
|
articles get keys [ >link ] map %
|
||||||
! all-words [ >link ] map %
|
all-words [ >link ] map %
|
||||||
! all-authors [ <vocab-author> ] map %
|
all-authors [ <vocab-author> ] map %
|
||||||
all-tags [ <vocab-tag> ] map %
|
all-tags [ <vocab-tag> ] map %
|
||||||
! all-vocabs-really %
|
all-vocabs-really %
|
||||||
] { } make ;
|
] { } make ;
|
||||||
|
|
||||||
: serialize-index ( index file -- )
|
: serialize-index ( index file -- )
|
||||||
|
@ -79,9 +79,19 @@ M: topic browser-link-href topic>filename ;
|
||||||
all-words [ dup name>> ] { } map>assoc "words.idx" serialize-index
|
all-words [ dup name>> ] { } map>assoc "words.idx" serialize-index
|
||||||
all-vocabs-really [ dup vocab-name ] { } map>assoc "vocabs.idx" serialize-index ;
|
all-vocabs-really [ dup vocab-name ] { } map>assoc "vocabs.idx" serialize-index ;
|
||||||
|
|
||||||
: generate-help ( -- )
|
: generate-help-files ( -- )
|
||||||
all-topics [ help>html ] each ;
|
all-topics [ help>html ] each ;
|
||||||
|
|
||||||
|
: generate-help ( -- )
|
||||||
|
{ "resource:core" "resource:basis" "resource:extra" } vocab-roots [
|
||||||
|
load-everything
|
||||||
|
|
||||||
|
"/tmp/docs/" [
|
||||||
|
generate-indices
|
||||||
|
generate-help-files
|
||||||
|
] with-directory
|
||||||
|
] with-variable ;
|
||||||
|
|
||||||
MEMO: load-index ( name -- index )
|
MEMO: load-index ( name -- index )
|
||||||
binary file-contents bytes>object ;
|
binary file-contents bytes>object ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue