Giter Club home page Giter Club logo

dtsdoc's People

Contributors

kontan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

diullei

dtsdoc's Issues

Help to use your doc generator on my site

Hi! @kontan,

I would like to use your dtsdoc in my site to provide online docs to each TypeScript definition (http://www.tsdpm.com). To do it I would like to have a function to get an html code(string) from a TypeScript code(string).

Something like:

...
var code = '...[my typescript code]...';
var html = dtsdoc.toHtml(code);
...

I would like to use this code with nodejs to generate all docs as static pages with my build process. could you help-me?

A suggestion

A good approach can be made with the separation of concerns on your API, like:

                                 API module                            API module
                            +-------------------+                  +-------------------+
                            |                   |                  |                   | 
(input) TypeScript code --> | PARSE TO METADATA | --> metadata --> | TRANSFORM TO HTML | --> html (output)
                            |                   |                  |                   | 
                            +-------------------+                  +-------------------+

with this we will have a parse to metadata module that do not have external dependencies. The transform to html module can't have DOM dependencies, this module only get the metadata to generate html code.

This allows us to create other transformations types with the metadata.

What do you think about this design?

About use your doc generator on my site, could you help-me?

Thank you!

Update for TS > 0.9.5 and collaborate on site?

I found dtsdoc and noticed you once generated docs for many of DefinitelyTyped definition files (on http://phyzkit.net/docs), that is really nice!

I'm a DefinitelyTyped member and am collecting content to create a nice DT organisation website (for the community, on the definitelytyped.github.io page).

Would you be interested in looking into if dtsdoc could work somewhat reliable for recent TS versions and collaborating on this part of the (future) website?

This is still a very preliminary idea but could be a cool side project.

Re: DefinitelyTyped/DefinitelyTyped#1571

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.