Git Product home page Git Product logo

Comments (6)

lctrt avatar lctrt commented on May 23, 2024

is this prompted by the docstrings? regardless, I was thinking we should be able to display them in an helpful way- and use similar technique for javascript implemented functions

const fn = a => a + 1;
fn.help = "some docstring"
console.log(fn.help) // some docstring

non tested possible implementation:

function withDocs = (docstring, function) => {
function.docstring = docstring
return function
}

from ronin.

neauoire avatar neauoire commented on May 23, 2024

Someone asked me if there was a documentation of the library and there isn't it would be nice if the readme had a list of the functions and their parameters.

from ronin.

lctrt avatar lctrt commented on May 23, 2024

Ah yes! I'm thinking too far for now, a static doc would be essential

from ronin.

lctrt avatar lctrt commented on May 23, 2024

https://github.com/hundredrabbits/Ronin/blob/master/documentation.md

from ronin.

lctrt avatar lctrt commented on May 23, 2024

There's now a list of current existing functions, would be great to add more details and examples

from ronin.

neauoire avatar neauoire commented on May 23, 2024

Added documentation tool :)

ronin.commander.docs.toMarkdown()

We'll need to make sure that all functions are following the same format tho, that'll mean wrapping everything within () => {}.

from ronin.

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.