You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was @ http://www.nodegit.org/api/ and noticed that the release version and the doc version don't match.
Investigating further the issue, I discovered that the problem lies in .travis.yml.
Would you guys accept a PR to fix this or is it something done deliberately?
@JimiC As far as I know, there is nothing intentional about this. I think the maintainers just forgot to update this. Note that the website itself is hosted in the nodegit/nodegit.github.com repository.
@johnhaley81 updated the website in the past so perhaps he can comment on this.
Both. It should be possible to view the documentation of what's in master as well as the latest release. I don't know how libgit2 does their documentation but that's what happens. It defaults to the documentation of HEAD but you can also look at the documentation of a previous release. This would of course require changes to the website in its current form.
They should be updated when a new release happens. Generally speaking, people that are looking up API expects it to match a release version instead of a moving target.
They should be updated every time master changes. This is likely the simplest but can be confusing for readers. It's better than being outdated though in my opinion.
Before any of this can proceed, the GH_TOKEN environment variable would have to be defined first though. Please see #793 for the original pull request that introduced this the deploy-docs.sh script.
@rcjsuen Thanks for clarifying. I see that there are a lot of moving parts in this. Indeed I noticed that the automation never got activated. I'll do my best to have this working.
Activity
rcjsuen commentedon Nov 26, 2017
@JimiC As far as I know, there is nothing intentional about this. I think the maintainers just forgot to update this. Note that the website itself is hosted in the nodegit/nodegit.github.com repository.
@johnhaley81 updated the website in the past so perhaps he can comment on this.
Croydon commentedon Feb 27, 2018
Auto generated documentation can, and properly should, be updated automatically via Travis. Advantages: Always up-to-date and no manually work.
JimiC commentedon Feb 27, 2018
To provide further info, currently
travisconfiguration states:In line 101
but the
env.matrixdoesn't contain aNODE_VERSIONof 6.Proposing the condition to be switched to
[ $NODE_VERSION =~ ^6 ]Croydon commentedon Feb 27, 2018
The coveralls check is similar broken. I will create a pull request if my CI is running green.
rcjsuen commentedon Feb 27, 2018
It doesn't like your suggestion, @JimiC. I guess we'll just have to stick to
==.JimiC commentedon Feb 27, 2018
Ah yes the binary operator issue, it's easily resolved by using
[[ $NODE_VERSION =~ ^6 ]]Croydon commentedon Feb 27, 2018
Or Croydon@0603658
Croydon commentedon Feb 27, 2018
The tests are currently failing.
I'm not familar with this stuff, but a quick search suggests that the --coverage flags needs to get passed along to gcc
https://travis-ci.org/inexorgame/nodegit/jobs/346897748#L9359
Has someone an idea how to fix this?
rcjsuen commentedon Feb 27, 2018
@Croydon Let's fix the documentation and then address the coverage in another issue.
JimiC commentedon Feb 27, 2018
I'll have a look at it in the morning.
JimiC commentedon Feb 28, 2018
@Croydon @rcjsuen Should the docs be updated on every change or on a release?
rcjsuen commentedon Feb 28, 2018
@JimiC In order of best to worse, I would say:
masteras well as the latest release. I don't know how libgit2 does their documentation but that's what happens. It defaults to the documentation ofHEADbut you can also look at the documentation of a previous release. This would of course require changes to the website in its current form.masterchanges. This is likely the simplest but can be confusing for readers. It's better than being outdated though in my opinion.Before any of this can proceed, the
GH_TOKENenvironment variable would have to be defined first though. Please see #793 for the original pull request that introduced this thedeploy-docs.shscript.JimiC commentedon Feb 28, 2018
@rcjsuen Thanks for clarifying. I see that there are a lot of moving parts in this. Indeed I noticed that the automation never got activated. I'll do my best to have this working.
JimiC commentedon Feb 28, 2018
@rcjsuen Looking at the docs, for starters I'll target option 2, as currently the way docs are generated do not support
releaseandlatestversions.rcjsuen commentedon Mar 20, 2018
I'm not sure if the tag build (Travis CI build #3120) deployed the documentation.