toolchain: move generate-epub.retro to tools/, fix make-book.retro

FossilOrigin-Name: e7506b632a7289a7b25c3c84332efa243f0c9075a576f7411345a474065c65e2
This commit is contained in:
crc 2020-10-01 16:53:52 +00:00
parent c3a55274ac
commit c38f11224e
4 changed files with 4602 additions and 1 deletions

View file

@ -9,6 +9,7 @@ Tooling
- allow setting the image size, stack sizes when building - allow setting the image size, stack sizes when building
- add Python implementations of retro-unu, retro-muri, retro-extend - add Python implementations of retro-unu, retro-muri, retro-extend
- add support for generating an epub from the documentation - add support for generating an epub from the documentation
- add a tool to locate files using deprecated words
Standard Library Standard Library

File diff suppressed because it is too large Load diff

View file

@ -25,7 +25,7 @@ for me.
:import here swap BOOK-BASE s:prepend file:slurp ; :import here swap BOOK-BASE s:prepend file:slurp ;
:/n ASCII:LF @Out file:write ; :/n ASCII:LF @Out file:write ;
:add-to-book here [ @Out file:write ] s:for-each /n ; :add-to-book here [ @Out file:write ] s:for-each /n ;
:process-files [ import add-to-book $. c:put ] a:for-each nl ; :process-files [ #1 a:fetch import add-to-book $. c:put ] a:for-each nl ;
:open 'doc/RETRO-Book.md file:open-for-writing !Out ; :open 'doc/RETRO-Book.md file:open-for-writing !Out ;
:close @Out file:close ; :close @Out file:close ;
:assemble open process-files close ; :assemble open process-files close ;