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

Improve API documentation #697

Merged
merged 5 commits into from
May 19, 2017
Merged

Improve API documentation #697

merged 5 commits into from
May 19, 2017

Conversation

jbeezley
Copy link
Contributor

This switches from the default template to https://github.com/davidshimjs/jaguarjs-jsdoc. I had to make some bigger changes to the utils directory so that jsdoc could make sense of the structure. For most of the other classes, we will just have to make some minor changes to the jsdoc tags to make it work. I'll follow up on #448 with a checklist of things that should be done for each file to close the issue.

@codecov-io
Copy link

codecov-io commented May 15, 2017

Codecov Report

Merging #697 into master will decrease coverage by <.01%.
The diff coverage is 88.97%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #697      +/-   ##
==========================================
- Coverage   95.26%   95.25%   -0.01%     
==========================================
  Files          84       83       -1     
  Lines        8994     8985       -9     
==========================================
- Hits         8568     8559       -9     
  Misses        426      426
Impacted Files Coverage Δ
src/camera.js 99.6% <ø> (ø) ⬆️
src/object.js 90.76% <ø> (ø) ⬆️
src/map.js 98.78% <ø> (ø) ⬆️
src/util/mockVGL.js 91.17% <ø> (ø) ⬆️
src/event.js 100% <ø> (ø) ⬆️
src/index.js 100% <ø> (ø) ⬆️
src/sceneObject.js 92.3% <ø> (ø) ⬆️
src/util/throttle.js 100% <100%> (ø) ⬆️
src/util/distanceGrid.js 77.77% <77.77%> (-0.41%) ⬇️
src/util/index.js 86.92% <86.88%> (-13.08%) ⬇️
... and 1 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c0c5a7a...6035e30. Read the comment docs.

@manthey
Copy link
Contributor

manthey commented May 19, 2017

This looks good to me. I'd say we should merge this in and then make additional PRs as we go through @jbeezley's checklist.

Maybe I'm oblivious, but I don't see any point where we build the docs that show up on RTD. I also don't see the typical Sphinx makefile. Is someone manually running sphinx-build to update RTD? Should we have that as part of the CI? Do the API doc references from the docs rst files change with this change?

@jbeezley
Copy link
Contributor Author

The API docs are on gh-pages, which I update when I cut a release. We could automate it somehow with CI, but that's a separate issue. Getting the API docs on RTD is generally difficult. We would be better off just transitioning all the documentation over to markdown and integrating them with these.

@jbeezley jbeezley merged commit 248adae into master May 19, 2017
@jbeezley jbeezley deleted the documentation-refactor branch May 19, 2017 17:51
@aashish24
Copy link
Member

The API docs are on gh-pages, which I update when I cut a release
looks great!

Getting the API docs on RTD is generally difficult. We would be better off just transitioning all the documentation over to markdown and integrating them with these.

I am good with that moving away from rst. I am assuming that this jaguar creates markdown? I believe there tools to convert from rst to md. Should we create an issue for it?

@jbeezley
Copy link
Contributor Author

It doesn't create markdown, but it can ingest it. Jsdoc has a basic hook for rendering a readme as the front page of the documentation as well as a tutorials section. It's possible to do fancier things by modifying the templates.

@aashish24
Copy link
Member

Great, thanks, having API docs out would be awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants