radare2-book icon indicating copy to clipboard operation
radare2-book copied to clipboard

Convert book into "literate radare"

Open XVilka opened this issue 6 years ago • 6 comments

There is a concept of literate programming, and running the code from the documentation. We should make a scripts/change the book to do exactly the same. So what we need:

  • [ ] Change the code examples into being reproducible and self contained
  • [ ] Allow to run the code examples on some external binary files
  • [ ] Script to "build"/"run" the book like we do for the testcase.
  • [ ] Ideally provide a way to run also r2pipe scripts the same way.

XVilka avatar Nov 15 '17 06:11 XVilka

Like rustdoc does: https://doc.rust-lang.org/beta/rustdoc/documentation-tests.html

XVilka avatar Nov 15 '17 07:11 XVilka

👍

On 15 Nov 2017, at 02:04, Anton Kochkov [email protected] wrote:

Like rustdoc does: https://doc.rust-lang.org/beta/rustdoc/documentation-tests.html

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

radare avatar Nov 19 '17 04:11 radare

After it is done - we may be even can add the checks into the radare2 PR/master to check every commit automatically.

XVilka avatar Apr 21 '18 06:04 XVilka

Or this https://github.com/realworldocaml/mdx

XVilka avatar Jul 17 '18 06:07 XVilka

Started a PoC here: https://gist.github.com/XVilka/12faa18643e66a184699aa717d8f6f2e

XVilka avatar Sep 08 '20 05:09 XVilka

👍 I made a POC too of this looooong time ago

Maijin avatar Sep 08 '20 11:09 Maijin