Giter Club home page Giter Club logo

Comments (4)

tessalt avatar tessalt commented on June 15, 2024

hm that's probably going to be a significant update to the hacky way we're doing docs. @m-ux have you done any more investigation into documentation solutions?

from js-buy-sdk.

mcpatten avatar mcpatten commented on June 15, 2024

only really know about jsdoc at the moment, but jsdoc generates to a subfolder based on the version number specified in your package.json

When you rev the version number & regenerate the docs, it will go in a new folder.

One thing you can do (lodash docs used to do this, but are slightly different now) is have a dropdown to select version numbers that link to the appropriate code.

There's also the version, since and deprecated properties, which could theoretically be used to more dynamically showcase stuff... but that could be a lot more complicated.

We've got a simple implementation of jsdoc outputting to raw json data which we'd like to use at some point in the future for a more robust solution - you'd likely need to approach the problem that way to take advantage of the version/since/deprecated properties.

from js-buy-sdk.

lopugit avatar lopugit commented on June 15, 2024

do it, I'll help

from js-buy-sdk.

mikkoh avatar mikkoh commented on June 15, 2024

You can now generate docs for specific versions. It's documented here:
https://github.com/Shopify/js-buy-sdk/blob/master/CONTRIBUTING.md#documentation

from js-buy-sdk.

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.