Giter VIP home page Giter VIP logo

Comments (4)

straight-shoota avatar straight-shoota commented on May 24, 2024 2

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.

straight-shoota avatar straight-shoota commented on May 24, 2024 1

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.

jhass avatar jhass commented on May 24, 2024

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.

beta-ziliani avatar beta-ziliani commented on May 24, 2024

We can consider this solved, right @straight-shoota ?

from crystal-website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.