Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uptools: build doc/api/all.html by combining generated HTML #21568
Conversation
nodejs-github-bot
added
build
doc
tools
labels
Jun 27, 2018
rubys
changed the title
tools: build doc/api/all.html by combining generated HTML #21544
tools: build doc/api/all.html by combining generated HTML
Jun 27, 2018
vsemozhetbyt
referenced this pull request
Jun 28, 2018
Closed
Produce HTML documentation using unified/remark/rehype #21490
This comment has been minimized.
This comment has been minimized.
rubys
referenced this pull request
Jun 29, 2018
Closed
tools: build doc/api/all.html by combining generated HTML #21544
jasnell
approved these changes
Jun 29, 2018
This comment has been minimized.
This comment has been minimized.
|
@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. |
rubys
force-pushed the
rubys:build_api_all_from_generated_html2
branch
from
338d466
to
0b9ff5f
Jun 30, 2018
This comment has been minimized.
This comment has been minimized.
|
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:
|
This comment has been minimized.
This comment has been minimized.
|
The same results here)
This is OK. Due to this code: Lines 209 to 216 in 1bf42f4 these links were skipped in |
vsemozhetbyt
approved these changes
Jun 30, 2018
| let contents = ''; | ||
| let apicontent = ''; | ||
|
|
||
| // Identify files that should be skipped. As files are processed, they |
This comment has been minimized.
This comment has been minimized.
| .replace('api-section-_toc', 'api-section-all') | ||
| .replace('data-id="_toc"', 'data-id="all"'); | ||
|
|
||
| // clean up the title. |
This comment has been minimized.
This comment has been minimized.
| '<ul>\n' + contents + '</ul>\n' + | ||
| all.slice(tocStart.index + tocStart[0].length); | ||
|
|
||
| // Replace apicontent with the contenated set of apicontents from each source. |
This comment has been minimized.
This comment has been minimized.
rubys
force-pushed the
rubys:build_api_all_from_generated_html2
branch
from
0b9ff5f
to
6dac7db
Jun 30, 2018
This comment has been minimized.
This comment has been minimized.
|
Can somebody spot the CI error for me? I don't see it. I searched for 'error' and 'fail'. |
This comment has been minimized.
This comment has been minimized.
|
You can also search for "not ok" in raw log: https://api.travis-ci.com/v3/job/132202841/log.txt |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Refs: #21605 |
This comment has been minimized.
This comment has been minimized.
|
#21605 is landed. |
This comment has been minimized.
This comment has been minimized.
|
And again... CI: https://ci.nodejs.org/job/node-test-pull-request/15695/ |
This comment has been minimized.
This comment has been minimized.
|
I shall land in some hours if there are no objections. |
This comment has been minimized.
This comment has been minimized.
|
Landed in f85962f |
vsemozhetbyt
closed this
Jul 2, 2018
vsemozhetbyt
added a commit
that referenced
this pull request
Jul 2, 2018
This comment has been minimized.
This comment has been minimized.
|
Maybe we can do the same for the |
This comment has been minimized.
This comment has been minimized.
|
@vsemozhetbyt in the process, we could also get rid of |
This comment has been minimized.
This comment has been minimized.
|
We usually do not require an issue for a PR. Feel free to pace as you feel comfortable) |
This comment has been minimized.
This comment has been minimized.
|
Awesome to see "Contributor" on @rubys's comments etc. everywhere now. |
rubys commentedJun 27, 2018
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