Repository navigation
Releases
@node-core/doc-kit@2.1.0
Minor Changes
-
#1242
b382b73Thanks @ovflowd! -all.htmlmoves out of thehtmlgenerator into a new Node.js generator,html-all(@node-core/doc-kit), andhtml'sgenerateAllPageoption is removed.html-allis spliced betweenjsx-astandhtml, and addsall.html, every module page's content on one page, as a composed page.htmlrenders a composed page, given withparts, from its parts' compiled content, one part at a time rather than building every part's elements first. Builds that wantall.htmladd thehtml-alltarget. -
#1260
7210fb7Thanks @avivkeller! -man-pagerenders###option groups as subsections and fixes options dropped after nested lists.
Patch Changes
@node-core/doc-kit-legacy@1.1.3
@doc-kit/typedoc@0.1.2
@doc-kit/generator-react@0.6.0
Minor Changes
-
#1242
b382b73Thanks @ovflowd! -all.htmlmoves out of thehtmlgenerator into a new Node.js generator,html-all(@node-core/doc-kit), andhtml'sgenerateAllPageoption is removed.html-allis spliced betweenjsx-astandhtml, and addsall.html, every module page's content on one page, as a composed page.htmlrenders a composed page, given withparts, from its parts' compiled content, one part at a time rather than building every part's elements first. Builds that wantall.htmladd thehtml-alltarget. -
#1240
ad826e4Thanks @ovflowd! -metadataandsection-pagesstream their input: with more than one thread, they start on their dependency's first chunk, so parsing, metadata and section pages overlap. The generated files are unchanged. -
#1241
caba57aThanks @ovflowd! -jsx-astandhtmlstream their input, so with more than one thread, page building and rendering overlap with the generators before them. The generated files are unchanged, butjsx-astnow yields pages in the order their entries arrive, and once every page has arrived, a{ manifest }item listing their heads in the site's order, the synthetic pages last. Bundler adapters'compilecan now be called before and whilebuildServerandbuildClientrun.
Patch Changes
-
#1245
41920cbThanks @adityareddy-dev! - Use a consistent link color for inline type annotations in light and dark themes. -
#1192
ff4d9adThanks @ovflowd! - Replay the presses that hydrate an island, so a code block's first click or tap switches tabs or copies the code, and an island withinteraction: trueruns the click, Enter or Space that started it loading -
#1192
ff4d9adThanks @ovflowd! - Scope the heading layout to API entry headings, mark the selected code tab and let tabs wrap on narrow screens, and add a canonical link andtheme-colorto the default template -
#1251
1655cb5Thanks @btea! - Fix the search modal crashing withCannot read properties of undefined (reading 'split')when a hit has no description, such as headings without a leading paragraph in the generatedorama-db.jsonindex. -
#1256
5db2f94Thanks @btea! - Fix a crash when a table's rows and cells are surrounded by whitespace text nodes, asrehype-raw9.1.1 and later keep them. The transformer now finds the header row and the cells themselves instead of assuming they are the first children, and labels cells by their column. -
Updated dependencies [
b65d7c1,9c36634,b382b73,e1cbd76,3d1c428,265eb17,ad826e4,07858b1]:- @doc-kit/core@1.4.0
@doc-kit/core@1.4.0
Minor Changes
-
#1239
b65d7c1Thanks @ovflowd! -runGeneratorswithdiscardResults: truein its configuration keeps none of the requested generators' output: each still runs to its end, and once nothing else reads its output, its chunks go as they are produced. The CLI'sgenerateandpreviewcommands use it, as they don't read the results. -
#1238
265eb17Thanks @ovflowd! - Generators can setstreamsInput: trueto receive their dependency's output as an async iterable of chunks as they are produced, instead of waiting for all of it. With one thread, the input is collected first and arrives as its only chunk. The cache runs a streamed generator once for every reader, and lets a chunk go once all of them have read it. -
#1240
ad826e4Thanks @ovflowd! -metadataandsection-pagesstream their input: with more than one thread, they start on their dependency's first chunk, so parsing, metadata and section pages overlap. The generated files are unchanged.
Patch Changes
-
#1236
9c36634Thanks @ovflowd! - The nodes ofmetadata's entries no longer keep theirpositionin the source once they are parsed, since nothing aftermetadatareads it. Builds hold less in memory and are faster, and the output ofjson-simpleno longer has them either, now about a third of its size. -
#1242
b382b73Thanks @ovflowd! -all.htmlmoves out of thehtmlgenerator into a new Node.js generator,html-all(@node-core/doc-kit), andhtml'sgenerateAllPageoption is removed.html-allis spliced betweenjsx-astandhtml, and addsall.html, every module page's content on one page, as a composed page.htmlrenders a composed page, given withparts, from its parts' compiled content, one part at a time rather than building every part's elements first. Builds that wantall.htmladd thehtml-alltarget. -
#1232
e1cbd76Thanks @ovflowd! - Keep leading, trailing and repeated hyphens in heading slugs, so anchors match the old Node.js doc tooling again (#-c---checkinstead of#-check). -
#1243
3d1c428Thanks @ovflowd! - Builds use up to 6 threads by default, instead of 4: with generators streaming into each other, more threads now pay off. On the Node.js API docs, the site build is ~15% faster at 6 threads than at 4, for ~20% more memory, while 8 threads were no faster than 6. The CPUs are counted withos.availableParallelism(), so a container or a CPU affinity limit lowers the default.--threadsstill sets any count. -
#1237
07858b1Thanks @ovflowd! -worker.streamalso accepts an async iterable of batches, starting each batch's chunks while earlier ones still run. It keeps only a few chunks per thread in flight so concurrent generators share the worker pool, and still yields results in submission order.
@doc-kit/cli@1.1.2
Patch Changes
- #1239
b65d7c1Thanks @ovflowd! -runGeneratorswithdiscardResults: truein its configuration keeps none of the requested generators' output: each still runs to its end, and once nothing else reads its output, its chunks go as they are produced. The CLI'sgenerateandpreviewcommands use it, as they don't read the results. - Updated dependencies [
b65d7c1,9c36634,b382b73,e1cbd76,3d1c428,265eb17,ad826e4,07858b1]:- @doc-kit/core@1.4.0
@node-core/doc-kit@2.0.8
Patch Changes
- #1202
ccd02e8Thanks @kgeminicdev! - The man page no longer drops the last environment variable when that section ends the input.
@doc-kit/generator-react@0.5.3
Patch Changes
- #1203
0e999dbThanks @helmipradita! - Skip theindexentry when building page URLs in thesitemapgenerator so the index page is only listed once underindexURL.
@node-core/doc-kit@2.0.7
@node-core/doc-kit-legacy@1.1.2
Patch Changes
-
#1186
5598f92Thanks @btea! - Fix template value replacement treating$sequences (such as$$in Makefile snippets) as special replacement patterns, which corrupted the rendered output. -
#1179
b8d7b77Thanks @ovflowd! - Builds use less memory, most of all with few threads: each worker's young generation is limited to 96MB, a single thread processes one chunk at a time and lets go of the pages' code before rendering them, and Vite's native bundler gets as many threads as doc-kit and returns the memory it frees. On the Node.js API docs,--threads 1now builds with Node.js's--max-old-space-size=512, and no longer crashes whenlegacy-htmlis built alongside other targets. -
Updated dependencies [
e49eb52,b8d7b77,92efbbe,9e21017,854a944,0321911]:- @doc-kit/core@1.3.1