Comments (4)
No? There are no interactive examples on the website. We only have them in https://github.com/crystal-lang/crystal-book (but it shouldn't be hard to copy that feature over)
from crystal-website.
It's not even necessary to run the samples with the new compiler during generation. So there are options if the compiler version used for each sample in the playground was more flexible. Maybe there could be an option to make a sample depend on the latest available compiler. When a new version is released, the old results would be deleted and executed again on demand. That would need to be implemented in the playground.
Alternatively, there could be an indirection between the link in the docs and the playground link. A microservice sits in between and every time there is a new release, it invalidates the old redirects, extracts the source code from the previous playground link and creates a new sample in the playground which is then cached until a new version is released.
The first option would be more flexible, though.
from crystal-website.
There's kind of a chicken and egg problem here. I cannot put a new version in the playground until it's released and the docs can't be build until there's the new version in the playground, right?
What if we build a command like crystal docs serve
which augments the examples with crystal playground
like functionality?
from crystal-website.
We can consider this solved, right @straight-shoota ?
from crystal-website.
Related Issues (20)
- [RFC] Collection of learning materials for Crystal
- Consistent navigation between independent website systems HOT 1
- Add support for contribute to new locales HOT 7
- Missing installation for windows HOT 1
- Remove the newsletter HOT 2
- Move `media` to Community
- Improve visuals of used in prod
- Wrong example in blog post for 1.2.0 release
- The layout of the main page is off a bit
- Clearing landing page path at `/conference`
- Pretty URLs: Problems with `.html` extension in file names HOT 7
- Install Page Layout is Broken
- @Sakkkert
- Add mention of installing `shards` when compiling from source
- installation on windows(preview) need update. HOT 3
- Sponsor's logos have all the same size
- Meta-issue: TODOs for the relaunch HOT 1
- OC Sponsors: GIFTCARD users are duplicated added
- Changes in certain files do not trigger a rebuild
- Oddity when a sponsor change their name
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crystal-website.