diff --git a/docs/editor/extensions.md b/docs/editor/extensions.md index cd40039..7f4af67 100644 --- a/docs/editor/extensions.md +++ b/docs/editor/extensions.md @@ -103,54 +103,4 @@ and their respective license. 👏 Many thanks to the amazing developers of these extensions. -| Name | License | -| --------------------------------------------------- | ------------------------- | -| **[Anthropic.claude-code][]** | Other | -| **[Catppuccin.catppuccin-vsc][]** | MIT | -| **[charliermarsh.ruff][]** | MIT | -| **[DavidAnson.vscode-markdownlint][]** | MIT | -| **[EditorConfig.EditorConfig][]** | MIT | -| **[exiasr.hadolint][]** | MIT | -| **[golang.go][]** | MIT, Apache 2, BSD, Other | -| **[humao.rest-client][]** | MIT | -| **[ludwhe.vscode-uuid][]** | ISC | -| **[mikestead.dotenv][]** | MIT | -| **[ms-azuretools.vscode-docker][]** | MIT | -| **[ms-kubernetes-tools.vscode-kubernetes-tools][]** | Apache 2 | -| **[ms-python.python][]** | MIT | -| **[ms-vscode.hexeditor][]** | MIT | -| **[PKief.material-icon-theme][]** | MIT | -| **[redhat.ansible][]** | MIT | -| **[redhat.vscode-xml][]** | EPL 2 | -| **[redhat.vscode-yaml][]** | MIT | -| **[samuelcolvin.jinjahtml][]** | MIT | -| **[streetsidesoftware.code-spell-checker][]** | GPL 3 | -| **[tamasfe.even-better-toml][]** | MIT | -| **[timonwong.shellcheck][]** | MIT | -| **[wayou.vscode-todo-highlight][]** | MIT | -| **[yzhang.markdown-all-in-one][]** | MIT | - -[Anthropic.claude-code]: https://marketplace.visualstudio.com/items/Anthropic.claude-code -[Catppuccin.catppuccin-vsc]: https://marketplace.visualstudio.com/items/Catppuccin.catppuccin-vsc/license -[charliermarsh.ruff]: https://marketplace.visualstudio.com/items/charliermarsh.ruff/license -[DavidAnson.vscode-markdownlint]: https://marketplace.visualstudio.com/items/DavidAnson.vscode-markdownlint/license -[EditorConfig.EditorConfig]: https://marketplace.visualstudio.com/items/EditorConfig.EditorConfig/license -[exiasr.hadolint]: https://marketplace.visualstudio.com/items/exiasr.hadolint/license -[golang.go]: https://marketplace.visualstudio.com/items/golang.go/license -[humao.rest-client]: https://marketplace.visualstudio.com/items/humao.rest-client/license -[ludwhe.vscode-uuid]: https://marketplace.visualstudio.com/items/ludwhe.vscode-uuid/license -[mikestead.dotenv]: https://marketplace.visualstudio.com/items/mikestead.dotenv/license -[ms-azuretools.vscode-docker]: https://marketplace.visualstudio.com/items/ms-azuretools.vscode-docker/license -[ms-kubernetes-tools.vscode-kubernetes-tools]: https://marketplace.visualstudio.com/items/ms-kubernetes-tools.vscode-kubernetes-tools/license -[ms-python.python]: https://marketplace.visualstudio.com/items/ms-python.python/license -[ms-vscode.hexeditor]: https://marketplace.visualstudio.com/items/ms-vscode.hexeditor/license -[PKief.material-icon-theme]: https://marketplace.visualstudio.com/items/PKief.material-icon-theme/license -[redhat.ansible]: https://marketplace.visualstudio.com/items/redhat.ansible/license -[redhat.vscode-xml]: https://marketplace.visualstudio.com/items/redhat.vscode-xml/license -[redhat.vscode-yaml]: https://marketplace.visualstudio.com/items/redhat.vscode-yaml/license -[samuelcolvin.jinjahtml]: https://marketplace.visualstudio.com/items/samuelcolvin.jinjahtml/license -[streetsidesoftware.code-spell-checker]: https://marketplace.visualstudio.com/items/streetsidesoftware.code-spell-checker/license -[tamasfe.even-better-toml]: https://marketplace.visualstudio.com/items/tamasfe.even-better-toml/license -[timonwong.shellcheck]: https://marketplace.visualstudio.com/items/timonwong.shellcheck/license -[wayou.vscode-todo-highlight]: https://marketplace.visualstudio.com/items/wayou.vscode-todo-highlight/license -[yzhang.markdown-all-in-one]: https://marketplace.visualstudio.com/items/yzhang.markdown-all-in-one/license + diff --git a/docs/partials/.gitignore b/docs/partials/.gitignore index 584ea32..b69afe3 100644 --- a/docs/partials/.gitignore +++ b/docs/partials/.gitignore @@ -1,3 +1,4 @@ dependencies.md deprecated-variables.md environment-variables.md +extensions.md diff --git a/scripts/generate-all.mjs b/scripts/generate-all.mjs index 85bfda6..dce6dd5 100644 --- a/scripts/generate-all.mjs +++ b/scripts/generate-all.mjs @@ -3,3 +3,4 @@ import { execSync } from "node:child_process" execSync("node ./scripts/generate-dependencies.mjs", { stdio: "inherit" }) execSync("node ./scripts/generate-deprecated-variables.mjs", { stdio: "inherit" }) execSync("node ./scripts/generate-environment-variables.mjs", { stdio: "inherit" }) +execSync("node ./scripts/generate-extensions.mjs", { stdio: "inherit" }) diff --git a/scripts/generate-extensions.mjs b/scripts/generate-extensions.mjs new file mode 100644 index 0000000..47ecc7c --- /dev/null +++ b/scripts/generate-extensions.mjs @@ -0,0 +1,25 @@ +import fs from 'node:fs' +import { resolve } from 'node:path' +import { load } from 'js-yaml' + +const { extensions } = load( + fs.readFileSync(resolve('.vitepress/data/extensions.yaml'), 'utf8') +) + +const sections = [ + '| Name | License |', + '| --- | --- |', +] +const links = [] + +Object.entries(extensions) + .sort(([a], [b]) => a.toLowerCase().localeCompare(b.toLowerCase())) + .forEach(([id, meta]) => { + sections.push(`| **[${id}][]** | ${meta.license ?? ''} |`) + links.push(`[${id}]: ${meta.home}`) + }) + +sections.push('', ...links) + +fs.writeFileSync(resolve('docs/partials/extensions.md'), sections.join('\n')) +console.log('✔ docs/partials/extensions.md updated')