-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
tools: build doc/api/all.html by combining generated HTML #21568
Conversation
@nodejs/documentation It would be a good idea for someone to build all.html with this and compare it to what's in master. The diff should show some broken links being fixed but otherwise there should be no significant changes. |
338d466
to
0b9ff5f
Compare
I've made a few fixes to reduce the differences, rebased to master, and here is a current set of differences: https://gist.github.com/rubys/bae70ed087efec625ac04823aaaf803e Summary:
|
The same results here)
This is OK. Due to this code: Lines 209 to 216 in 1bf42f4
these links were skipped in |
tools/doc/allhtml.js
Outdated
let contents = ''; | ||
let apicontent = ''; | ||
|
||
// Identify files that should be skipped. As files are processed, they |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: extra space before "As".
tools/doc/allhtml.js
Outdated
.replace('api-section-_toc', 'api-section-all') | ||
.replace('data-id="_toc"', 'data-id="all"'); | ||
|
||
// clean up the title. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clean -> Clean ?
tools/doc/allhtml.js
Outdated
'<ul>\n' + contents + '</ul>\n' + | ||
all.slice(tocStart.index + tocStart[0].length); | ||
|
||
// Replace apicontent with the contenated set of apicontents from each source. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
contenated -> concatenated?
Combine the toc and api contents from the generated doc/api/*.html files. This ensures that the single page version of the documentation exactly matches the individual pages. Fixes nodejs#20100
0b9ff5f
to
6dac7db
Compare
Can somebody spot the CI error for me? I don't see it. I searched for 'error' and 'fail'. |
You can also search for "not ok" in raw log: https://api.travis-ci.com/v3/job/132202841/log.txt |
Refs: #21605 |
#21605 is landed. |
And again... CI: https://ci.nodejs.org/job/node-test-pull-request/15695/ |
I shall land in some hours if there are no objections. |
Landed in f85962f |
Combine the toc and api contents from the generated doc/api/*.html files. This ensures that the single page version of the documentation exactly matches the individual pages. PR-URL: #21568 Fixes: #20100 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
Maybe we can do the same for the |
@vsemozhetbyt in the process, we could also get rid of |
We usually do not require an issue for a PR. Feel free to pace as you feel comfortable) |
Awesome to see "Contributor" on @rubys's comments etc. everywhere now. 🎉 |
Combine the toc and api contents from the generated doc/api/*.html files. This ensures that the single page version of the documentation exactly matches the individual pages. PR-URL: #21568 Fixes: #20100 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Vse Mozhet Byt <[email protected]>
Combine the toc and api contents from the generated doc/api/*.html
files. This ensures that the single page version of the documentation
exactly matches the individual pages.
Fixes #20100
This pull request differs from #21544 in that it is implemented using regular expressions and has no dependencies. See #21544 (comment) for more context.
If this pull request is merged, the other will be deleted.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes