coral-xyz / anchor-book

The Anchor Book
https://book.anchor-lang.com
Apache License 2.0
100 stars 59 forks source link

feat(tic-tac-toe): use anchor includes for code snippets #83

Closed sohrab- closed 1 year ago

sohrab- commented 2 years ago

It's the same as https://github.com/coral-xyz/anchor-book/pull/81. I just had to change the source branch so new PR...

Switch to using code anchors (pun!) for code snippets from the tic-tac-toe program. This way the code in the book remains in sync without having to keep duplicating code into the book.

There were 2-3 snippets, I did not convert since they showed gradual changes before getting to the final version.

It all looks good in my local mdbook but please have a look.

PS. I may have run Prettier over the ts test file. Forgive me!