Two.js: Update Documentation for Two.js

Created on 2 Jul 2018  路  10Comments  路  Source: jonobr1/two.js

This is a multipart issue:

  1. Update documentation based on jsdocs formatting
  2. Render documentation with jsdoc-to-markdown
  3. Style documentation based on https://two.js.org/ and include with dev repository for local development
enhancement

Most helpful comment

@eulertour, the most up-to-date documentation lives in the source files now. This documentation has yet to be generated because I'm still writing it for each class, property, function, etc. Inline above each property there is a jsdoc style comment that describes what it does or expects.

I still have the effects folder and the renderers folder to do before I tackle rendering the documentation into HTML.

All 10 comments

Have currently added documentation to all "top level" src files. Now need to go through src/effects, src/renderer, and src/shapes and add documentation there to complete step one.

Screen Shot 2019-03-28 at 8 36 37 AM

Have currently added documentation to all "top level" src files. Now need to go through src/effects, src/renderer, and src/shapes and add documentation there to complete step one.

Is this true? Looking at the documentation at https://two.js.org/#documentation, it seems that documentation for Two.Matrix, Two.Registry and Two.Shape are missing.

@eulertour, the most up-to-date documentation lives in the source files now. This documentation has yet to be generated because I'm still writing it for each class, property, function, etc. Inline above each property there is a jsdoc style comment that describes what it does or expects.

I still have the effects folder and the renderers folder to do before I tackle rendering the documentation into HTML.

Hey Jono,

Just wanted to let you know that some of the new APIs(such as two.makeArrow) are not part of the documentation.

Is documentation moved away or it isn't updated acc. to latest stable release of 0.7.0?

Thanks for your post @meetzaveri, if you read the thread you'll see that the documentation has been moved to the source code as jsdocs style comments. This issue is to track generating and styling the new documentation for the site.

If you'd like to see what exists so far you can pull the latest dev repository, npm install, run npm run docs:generate, and finally npm run docs:dev.

Got it. This clears out my confusion.

New designs for the Two.js site and documentation by the amazing @yuinchien:

Overview Page
Here's the figma file.

New design looks dope

I think with this new design, API docs looks more accurate than before.

Any idea when will be new design pushed?

No clear timeline on when this will all be implemented. But, slowly making progress!

Thanks for your patience.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

webenters picture webenters  路  6Comments

iandanforth picture iandanforth  路  6Comments

PranjalVyas1507 picture PranjalVyas1507  路  4Comments

Muini picture Muini  路  7Comments

Neglexis picture Neglexis  路  7Comments