Git Product home page Git Product logo

Comments (6)

ashb avatar ashb commented on August 19, 2024

Taking a quick look it seems that the current docs are written in the pdoc style which has the advantage of being markdown - which seems appropriate for a markdown module.

That being said there is nothing currently rendering these docs so they are essentially just free-form comments right now. Having them asa browsable webpage might be useful.

Can you show me a sample of the output for a few of the methods for this module?

from markdown-js.

jshirley avatar jshirley commented on August 19, 2024

Of course, I haven't finished everything but I fixed up the docs at the top and formatted it in yuidoc format (it's a quick change).

This is the default skin which inherits from the rest of the YUI modules, but is customizable: http://j.shirley.im/tech/yui/gallery-markdown/docs/classes/Markdown.html

Also, yuidoc has full Markdown support as well, which I made usage of to format the synopsis.

Thanks!

On Jun 17, 2012, at 11:27 AM, Ash Berlin wrote:

Taking a quick look it seems that the current docs are written in the pdoc style which has the advantage of being markdown - which seems appropriate for a markdown module.

That being said there is nothing currently rendering these docs so they are essentially just free-form comments right now. Having them asa browsable webpage might be useful.

Can you show me a sample of the output for a few of the methods for this module?


Reply to this email directly or view it on GitHub:
#53 (comment)

from markdown-js.

ashb avatar ashb commented on August 19, 2024

Can YUIDoc support params of variable types? i.e. the dialect param to parse is either the dialect name (well the key in Markdown.dialects) or a dialect object (with the right methods - we don't check validity of them at the moment, just blindly assume any object is 'correct')

from markdown-js.

jshirley avatar jshirley commented on August 19, 2024

It's more or less free-form, http://yui.github.com/yuidoc/syntax/index.html#param

What I typically see is something like @param dialect {String | Object} $description (and what I used in some places). The neat thing about @param is that they're nested, so when you have an object you can nest it down (the example in the link above shows that).

On Jun 17, 2012, at 12:00 PM, Ash Berlin wrote:

Can YUIDoc support params of variable types? i.e. the dialect param to parse is either the dialect name (well the key in Markdown.dialects) or a dialect object (with the right methods - we don't check validity of them at the moment, just blindly assume any object is 'correct')


Reply to this email directly or view it on GitHub:
#53 (comment)

from markdown-js.

jshirley avatar jshirley commented on August 19, 2024

By the way, it sounds like you are at least interested.

Shall I fork and submit a pull request with the documentation formatting changes? Then we can comment on actual code :)

On Jun 17, 2012, at 12:00 PM, Ash Berlin wrote:

Can YUIDoc support params of variable types? i.e. the dialect param to parse is either the dialect name (well the key in Markdown.dialects) or a dialect object (with the right methods - we don't check validity of them at the moment, just blindly assume any object is 'correct')


Reply to this email directly or view it on GitHub:
#53 (comment)

from markdown-js.

ashb avatar ashb commented on August 19, 2024

Sure go for it.

Its a little bit javadoc for my linking but that's just my old hangup against Java.

from markdown-js.

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.