diff --git a/content/README.md b/content/README.md index 43b1a87e60..af888602c4 100644 --- a/content/README.md +++ b/content/README.md @@ -228,7 +228,7 @@ defaultPlatform: linux ### `defaultTool` - Purpose: Override the initial tool selection for a page, where tool refers to the application the reader is using to work with GitHub (such as GitHub.com's web UI, the GitHub CLI, or GitHub Desktop) or the GitHub APIs (such as cURL or the GitHub CLI). For more information about the tool selector, see [Markup reference for GitHub Docs](../contributing/content-markup-reference.md#tool-tags). If this frontmatter is omitted, then the tool-specific content matching the GitHub web UI is shown by default. If a user has indicated a tool preference (by clicking on a tool tab), then the user's preference will be applied instead of the default value. -- Type: `String`, one of: `webui`, `cli`, `desktop`, `curl`, `codespaces`, `vscode`, `importer_cli`, `graphql`, `powershell`, `bash`. +- Type: `String`, one of: `webui`, `cli`, `desktop`, `curl`, `codespaces`, `vscode`, `importer_cli`, `graphql`, `powershell`, `bash`, `javascript`. - Optional. ```yaml diff --git a/contributing/content-markup-reference.md b/contributing/content-markup-reference.md index 073c393321..c6408fe9b4 100644 --- a/contributing/content-markup-reference.md +++ b/contributing/content-markup-reference.md @@ -212,6 +212,14 @@ These instructions are pertinent to Bash shell commands. {% endbash %} ``` +``` +{% javascript %} + +These instructions are pertinent to javascript users. + +{% endjavascript %} +``` + You can define a default tool in the frontmatter. For more information, see the [content README](../content/README.md#defaulttool). ## Reusable and variable strings of text diff --git a/lib/all-tools.js b/lib/all-tools.js index 7ac1af7de0..92ae2dc597 100644 --- a/lib/all-tools.js +++ b/lib/all-tools.js @@ -10,4 +10,5 @@ export const allTools = { powershell: 'PowerShell', vscode: 'Visual Studio Code', webui: 'Web browser', + javascript: 'JavaScript', }