Skip to content

Releases

@node-core/doc-kit@2.1.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 02:00
Immutable release. Only release title and notes can be modified.
8c951de

Minor Changes

  • #1242 b382b73 Thanks @ovflowd! - all.html moves out of the html generator into a new Node.js generator, html-all (@node-core/doc-kit), and html's generateAllPage option is removed. html-all is spliced between jsx-ast and html, and adds all.html, every module page's content on one page, as a composed page. html renders a composed page, given with parts, from its parts' compiled content, one part at a time rather than building every part's elements first. Builds that want all.html add the html-all target.

  • #1260 7210fb7 Thanks @avivkeller! - man-page renders ### option groups as subsections and fixes options dropped after nested lists.

Patch Changes

@node-core/doc-kit-legacy@1.1.3

Choose a tag to compare

@github-actions github-actions released this 29 Nov 02:00
Immutable release. Only release title and notes can be modified.
8c951de

Patch Changes

@doc-kit/typedoc@0.1.2

Choose a tag to compare

@github-actions github-actions released this 29 Nov 02:00
Immutable release. Only release title and notes can be modified.
8c951de

Patch Changes

@doc-kit/generator-react@0.6.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 02:00
Immutable release. Only release title and notes can be modified.
8c951de

Minor Changes

  • #1242 b382b73 Thanks @ovflowd! - all.html moves out of the html generator into a new Node.js generator, html-all (@node-core/doc-kit), and html's generateAllPage option is removed. html-all is spliced between jsx-ast and html, and adds all.html, every module page's content on one page, as a composed page. html renders a composed page, given with parts, from its parts' compiled content, one part at a time rather than building every part's elements first. Builds that want all.html add the html-all target.

  • #1240 ad826e4 Thanks @ovflowd! - metadata and section-pages stream 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 caba57a Thanks @ovflowd! - jsx-ast and html stream their input, so with more than one thread, page building and rendering overlap with the generators before them. The generated files are unchanged, but jsx-ast now 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' compile can now be called before and while buildServer and buildClient run.

Patch Changes

  • #1245 41920cb Thanks @adityareddy-dev! - Use a consistent link color for inline type annotations in light and dark themes.

  • #1192 ff4d9ad Thanks @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 with interaction: true runs the click, Enter or Space that started it loading

  • #1192 ff4d9ad Thanks @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 and theme-color to the default template

  • #1251 1655cb5 Thanks @btea! - Fix the search modal crashing with Cannot read properties of undefined (reading 'split') when a hit has no description, such as headings without a leading paragraph in the generated orama-db.json index.

  • #1256 5db2f94 Thanks @btea! - Fix a crash when a table's rows and cells are surrounded by whitespace text nodes, as rehype-raw 9.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

Choose a tag to compare

@github-actions github-actions released this 29 Nov 02:00
Immutable release. Only release title and notes can be modified.
8c951de

Minor Changes

  • #1239 b65d7c1 Thanks @ovflowd! - runGenerators with discardResults: true in 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's generate and preview commands use it, as they don't read the results.

  • #1238 265eb17 Thanks @ovflowd! - Generators can set streamsInput: true to 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 ad826e4 Thanks @ovflowd! - metadata and section-pages stream 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 9c36634 Thanks @ovflowd! - The nodes of metadata's entries no longer keep their position in the source once they are parsed, since nothing after metadata reads it. Builds hold less in memory and are faster, and the output of json-simple no longer has them either, now about a third of its size.

  • #1242 b382b73 Thanks @ovflowd! - all.html moves out of the html generator into a new Node.js generator, html-all (@node-core/doc-kit), and html's generateAllPage option is removed. html-all is spliced between jsx-ast and html, and adds all.html, every module page's content on one page, as a composed page. html renders a composed page, given with parts, from its parts' compiled content, one part at a time rather than building every part's elements first. Builds that want all.html add the html-all target.

  • #1232 e1cbd76 Thanks @ovflowd! - Keep leading, trailing and repeated hyphens in heading slugs, so anchors match the old Node.js doc tooling again (#-c---check instead of #-check).

  • #1243 3d1c428 Thanks @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 with os.availableParallelism(), so a container or a CPU affinity limit lowers the default. --threads still sets any count.

  • #1237 07858b1 Thanks @ovflowd! - worker.stream also 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

Choose a tag to compare

@github-actions github-actions released this 29 Nov 02:00
Immutable release. Only release title and notes can be modified.
8c951de

Patch Changes

  • #1239 b65d7c1 Thanks @ovflowd! - runGenerators with discardResults: true in 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's generate and preview commands 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

Choose a tag to compare

@github-actions github-actions released this 01 Nov 23:04
Immutable release. Only release title and notes can be modified.
18e90f8

Patch Changes

  • #1202 ccd02e8 Thanks @kgeminicdev! - The man page no longer drops the last environment variable when that section ends the input.

@doc-kit/generator-react@0.5.3

Choose a tag to compare

@github-actions github-actions released this 01 Nov 23:04
Immutable release. Only release title and notes can be modified.
18e90f8

Patch Changes

  • #1203 0e999db Thanks @helmipradita! - Skip the index entry when building page URLs in the sitemap generator so the index page is only listed once under indexURL.

@node-core/doc-kit@2.0.7

Choose a tag to compare

@github-actions github-actions released this 31 Oct 13:19
Immutable release. Only release title and notes can be modified.
6bf909f

Patch Changes

@node-core/doc-kit-legacy@1.1.2

Choose a tag to compare

@github-actions github-actions released this 31 Oct 13:20
Immutable release. Only release title and notes can be modified.
6bf909f

Patch Changes

  • #1186 5598f92 Thanks @btea! - Fix template value replacement treating $ sequences (such as $$ in Makefile snippets) as special replacement patterns, which corrupted the rendered output.

  • #1179 b8d7b77 Thanks @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 1 now builds with Node.js's --max-old-space-size=512, and no longer crashes when legacy-html is built alongside other targets.

  • Updated dependencies [e49eb52, b8d7b77, 92efbbe, 9e21017, 854a944, 0321911]:

    • @doc-kit/core@1.3.1