-
-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[3/?] Add ability to run code examples in the playground: Fetch tutorial snippet from URL by file name #542
base: main
Are you sure you want to change the base?
Changes from all commits
765384b
c1a8a22
58e6599
62a001d
c6b9959
dc86c15
70dad88
2464d02
50e60d2
676f5ee
c0a6b17
003722b
fd48fe3
f983690
27e0623
154c7dc
cc8c939
999c6c4
706c0d0
cc1f53a
bb74be7
2e6bc8a
57bbbeb
5b35814
420d05a
1a22c1a
9046f63
b38ee20
e5680a7
5787880
3339fd2
955e189
469dabf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ FFI | |
filesystem | ||
finaliser | ||
finalisers | ||
fontawesome | ||
forgeable | ||
GC | ||
GDB | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,8 @@ In your file, put the following code: | |
--8<-- "hello-world-main.pony" | ||
``` | ||
|
||
[:fontawesome-solid-play: Run in playground](https://playground.ponylang.io/?snippet=hello-world-main.pony){ .md-button .md-button--primary target="_blank" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there any way we could automatically render this button for every There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes and no. Not with the current setup. But that's why I'm experimenting with #555. |
||
|
||
## Compiling the program | ||
|
||
Now compile it: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks unrelated to the change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kinda. This was because the PR was created alongside previous PRs and when we reverted non-pony examples and cherry-picked them, not everything looked exactly pretty in the commit history 😅