Skip to content

Add DocFX multi-language snippet tabs with persisted language state; patch vulnerable glob#20

Draft
Copilot wants to merge 5 commits into
mainfrom
copilot/add-multilanguage-support
Draft

Add DocFX multi-language snippet tabs with persisted language state; patch vulnerable glob#20
Copilot wants to merge 5 commits into
mainfrom
copilot/add-multilanguage-support

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 11, 2026

Summary

Adds DocFX support for :::multilang title="..."::: to render language-specific snippet tabs from mirrored documentation trees, and persists selected language across page navigation via local storage. Also upgrades glob to a patched release to address the CLI command-injection advisory.

Added

  • Source/preprocess-multilang.ts to resolve snippets/<kebab-title>.md per language root and rewrite directives into DocFX tab groups.
  • Multi-language snippet authoring guidance in Source/docs/Documentation/code-snippets.md.
:::multilang title="Appending Events":::

Changed

  • Source/package.json build pipelines now run preprocess:multilang before DocFX article/site build steps.
  • Source/styles/docfx.js tab state now reads/writes selected tab IDs to localStorage (docfx-selected-tabs) while preserving query-string tab behavior.

Fixed

  • Multilang preprocessing now skips directives inside inline/code-fenced markdown.
  • Missing language snippets no longer delete directives; unresolved directives are preserved.

Removed

  • No removals.

Security

  • Upgraded npm dependency glob from 11.0.0 to 11.1.0 to consume the patched CLI behavior for -c/--cmd.

Deprecated

  • No deprecations.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • storybook.js.org
    • Triggering command: /opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node /home/REDACTED/work/Documentation/Documentation/Source/docs/Documentation/test-storybook/node_modules/.bin/storybook build (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node /home/REDACTED/work/Documentation/Documentation/Source/docs/Documentation/test-storybook/node_modules/.bin/storybook build ntation/test-storybook/node_modules/@esbuild/linux-x64/bin/esbuild rybook/node_modules/.bin/storybook (dns block)
    • Triggering command: /opt/hostedtoolcache/node/24.14.1/x64/bin/node /opt/hostedtoolcache/node/24.14.1/x64/bin/node /home/REDACTED/work/Documentation/Documentation/Source/docs/Documentation/test-storybook/node_modules/.bin/storybook build k/Documentation/Documentation rybook/node_modules/.bin/storybook (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI linked an issue May 11, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add support for snippets from multiple programming languages Add DocFX multi-language snippet tabs with persisted language state; patch vulnerable glob May 11, 2026
Copilot AI requested a review from einari May 11, 2026 13:02
Copilot finished work on behalf of einari May 11, 2026 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Multilanguage support

2 participants