One-Language / Document

📜 Documentation of One Language 📠
https://one-language.github.io/Document/#/
8 stars 17 forks source link

🚀 `Try code` on the docs pages 🚀 #107

Open jbampton opened 2 years ago

jbampton commented 2 years ago

I really like how Lucee has done their docs with the ability to run the code on the same page

https://docs.lucee.org/reference/functions/abs.html

Not sure what you were thinking for run.onelang.org ??

Crystal gives you a page to play in too

https://play.crystal-lang.org/#/cr

BaseMax commented 2 years ago

Good idea, we can rename run to play. but I think run is a good word too. What is your comment?

BaseMax commented 2 years ago

Good idea john. I think if we create the next generation of onelang website. we can design this feature too

jbampton commented 2 years ago

They have this run box on some pages:

Screen Shot 2022-08-28 at 6 47 00 pm

https://docs.lucee.org/reference/functions/abs.html

jbampton commented 2 years ago

Golang do it well too with the Go Tour

https://go.dev/tour/basics/1