Uh oh!
There was an error while loading. Please reload this page.
Add task for building docs only, using existing Node - #3888
Conversation
jasnell
commented
Nov 18, 2015
@nodejs/documentation |
There was a problem hiding this comment.
I think this should probably be FULLVERSION to take into account nightlies and other other versions with prerelease tags
There was a problem hiding this comment.
@rvagg Ah, thank you! I pushed a new commit that corrects that. I realized it was a mistake anyway since I overlooked that process.version is prefixed with v and RAWVER isn't.
rvagg
commented
Nov 18, 2015
nice, I like this. /cc @nodejs/build |
chrisdickinson
commented
Nov 18, 2015
This LGTM once @rvagg's suggestion has been addressed. Great work! |
jasnell
commented
Nov 18, 2015
+1 on this... I haven't gone through the commit myself so I won't sign off but this is quite valuable I think. Thank you! |
tflanagan
commented
Nov 18, 2015
Hmmm, Looks like this is the culprit:
If you are trying, as stated, to |
jmm
commented
Nov 18, 2015
@tflanagan Thanks for taking a look. The issue that I was having is that the |
tflanagan
commented
Nov 18, 2015
@jmm, ah! With that, its working like a charm. Well done, I like it! Just one more issue: Getting blank HTML files. Edit: |
tflanagan
commented
Nov 18, 2015
@jmm Hmm, started from scratch and the HTML files have content now. Not sure what happened, going to chalk it up to a dirty environment. |
jmm
commented
Nov 18, 2015
Thanks @jasnell@rvagg@chrisdickinson! I pushed new commits that fix the issue @rvagg pointed out and I took a crack at updating the |
jmm
commented
Nov 18, 2015
@tflanagan Thanks! Not sure what would've resulted in the blank HTML files, I haven't run into that. Hopefully it is just a fluke like you said. |
There was a problem hiding this comment.
I'd rather this line not be modified, it doesn't add enough value to justify the noise. If someone comes looking for how to build docs they will see the section below.
rvagg
commented
Nov 18, 2015
@jmm squash commits and prefix the message with |
jmm
commented
Nov 18, 2015
@rvagg Ok, thanks for the feedback, I removed that line and squashed, with |
rvagg
commented
Nov 18, 2015
lgtm, thanks for the work on this @jmm |
Fishrock123
commented
Nov 20, 2015
I think part of the slowness of building node is due to not recommending |
orangemocha
commented
Nov 20, 2015
Good point @Fishrock123 . |
Fishrock123
commented
Nov 20, 2015
Huh, didn't know about that. |
jmm
commented
Nov 20, 2015
Thanks @rvagg. @Fishrock123 If there's an easy recommendation that speeds up the build in general that sounds great, but for practical purposes it doesn't help [me at least] with this. With |
MylesBorins
commented
Mar 11, 2016
what is holding this up? @jmm can you do a rebase against master and force push. I'll see about getting this landed 😄 |
jmm
commented
Mar 14, 2016
@thealphanerd Thanks, done 🎉. Slight change: moved this part after the code:
BTW (msg,[offset,length,]port,address[,callback])I can probably fix that if this gets merged and anyone cares about that. |
MylesBorins
commented
Mar 14, 2016
ci: https://ci.nodejs.org/job/node-test-pull-request/1919/ I'm going to test this more manually later today |
Allows building just docs using existing Node instead of building Node first. PR-URL: nodejs#3888 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
These signatures were originally converted to opts hashes in nodejs#3888. That change was misinterpreted as the intrinsic cause of a test failure and reverted in nodejs#6680. PR-URL: nodejs#6690 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Robert Jefe Lindstaedt <robert.lindstaedt@gmail.com>
After the nodejs#3888 it was not possible to "make doc-only" in some situations. This now fallsback to any installed node version and throws "node not found" in error case. Ref: nodejs#3888 PR-URL: nodejs#6906 Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
Allows building just docs using existing Node instead of building Node first. PR-URL: #3888 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Allows building just docs using existing Node instead of building Node first. PR-URL: #3888 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Allows building just docs using existing Node instead of building Node first. PR-URL: #3888 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
Allows building just docs using existing Node instead of building Node first. PR-URL: #3888 Reviewed-By: Chris Dickinson <christopher.s.dickinson@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
This is a WIP attempt to make it easy to build just the docs using an existing Node, instead of having to build Node first, which can be prohibitively slow. Related #3749. The primary reason I call it a WIP is because Make is not my forte :/
/cc @nodejs/documentation @chrisdickinson (per suggestion).
I saw that in
Makefilethere's a conditionally setNODEvar that's used for building the docs (among other things), so I based this on utilizing that:NODE=node make doc-only.Summary of changes:
NODEusingNODE_EXEto reduce duplication.tools/doc/generate.jsto read a--node-versionargument, which will be used to output the version to the docs instead ofprocess.version. Setup the relevant Make recipe to pass it.tools/doc/html.js'stoHTMLandrender()to accept options hashes (the signatures would be getting pretty unwieldy if I'd addednode_version, which I'm propagating to those functions fromgenerate.js).doc-onlyphony target.$(NODE_EXE)anddoc-onlyprerequisites ofdoc.$(NODE_EXE)as a prerequisite of theout/doc/api/%.jsonandout/doc/api/%.htmltargets. I'm hoping that it being a prerequisite ofdoctakes care of it for any case where it's needed by these targets (the only one I'm sure of ismake doc).The changes to the Make targets are the parts I'm least confident about. I'd appreciate if someone who understands Make better can check that it's a sensible setup, and especially that it won't break stuff.