Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor documentation (currently, only for NodeJS SDK) #26

Closed
22 tasks done
maxkoryukov opened this issue Jan 27, 2017 · 2 comments
Closed
22 tasks done

Refactor documentation (currently, only for NodeJS SDK) #26

maxkoryukov opened this issue Jan 27, 2017 · 2 comments
Assignees

Comments

@maxkoryukov
Copy link
Contributor

maxkoryukov commented Jan 27, 2017

Convenient and clear documentation is very important for SDK, bcz the main purpose of SDK - to make it easier to integrate service. If SDK is entangled - nobody want to use it. If SDK is clear - everybody wants to use it;)

There are jsdoc-comments for functions, methods, namespaces...

But right now the documentation is not ready for end-user (SDK user), because this doc doesn't cover all a lot of questions.

Doc-layout proposal

  1. main page (readme option in jsdoc.config should point to the other file, not the main README)
    • several badges
    • introduction
    • how to read this doc
    • TOC (could be in sep. file, if the jsdoc could generate toc automatically)
    • simple example
  2. Core object Route4Me
    • description
    • options
    • links to sections (Optimizations, Routes ...)
    • example (how to create)
  3. Subsections (Optimizations, Routes, Addresses ... )
    • desctiption
    • methods
    • examples
  4. Common objects
    • callback desc
    • all errors
    • Logger
    • Validator
    • ....

All examples should be included to jsdoc.

Overall requirements

  • analytics (google analytics)
  • separated TOC is required (side navigation), since there are more than 10 methods

Examples for API

Examples for API should be written separately: see #31

@maxkoryukov maxkoryukov self-assigned this Jan 27, 2017
@maxkoryukov maxkoryukov modified the milestone: 1.1.0 docs and improvements Jan 27, 2017
@Olman62
Copy link
Contributor

Olman62 commented Jan 28, 2017 via email

@maxkoryukov
Copy link
Contributor Author

@Olman62 , currently, this issue is about JS (I will fix title).

Right now the description of issue is just a draft for doc-requirements (for me). As you could see - this ticket is attached to the milestone 1.1.0, but right now I am on version 0.1.8, and current target - 1.0.0

Currently I have just scraps of the doc, but I am going to reuse this stuff;)


Current docs

I have published current docs here: https://maxkoryukov.github.io/route4me-nodejs-sdk/

I am sure: if I will ask you to write some code using that documentation - you will stuck))

@Olman62, thank you for review;)

@maxkoryukov maxkoryukov changed the title Refactor documentation Refactor documentation (currently, only NodeJS SDK) Jan 28, 2017
@maxkoryukov maxkoryukov changed the title Refactor documentation (currently, only NodeJS SDK) Refactor documentation (currently, only for NodeJS SDK) Jan 29, 2017
maxkoryukov added a commit to maxkoryukov/route4me-nodejs-sdk that referenced this issue Feb 20, 2017
maxkoryukov added a commit to maxkoryukov/route4me-nodejs-sdk that referenced this issue Feb 20, 2017
maxkoryukov added a commit to maxkoryukov/route4me-nodejs-sdk that referenced this issue Feb 20, 2017
maxkoryukov added a commit that referenced this issue Feb 20, 2017
maxkoryukov added a commit to maxkoryukov/route4me-nodejs-sdk that referenced this issue Feb 20, 2017
maxkoryukov added a commit to maxkoryukov/route4me-nodejs-sdk that referenced this issue Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants