Skip to content

Commit

Permalink
fix incorrect code language case
Browse files Browse the repository at this point in the history
  • Loading branch information
rachmari committed Sep 25, 2023
1 parent e3f499b commit b8bd463
Show file tree
Hide file tree
Showing 21 changed files with 64 additions and 64 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ In your new `hello-world-docker-action` directory, create a new `Dockerfile` fil

**Dockerfile**

```Dockerfile copy
```dockerfile copy
# Container image that runs your code
FROM alpine:3.10

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ You can create your own runner image that meets your requirements. Your runner i

You can use the following example Dockerfile to start creating your own runner image.

```Dockerfile copy
```dockerfile copy
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0 as build

# Replace value with the latest runner release version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ The following example uses four instructions:

`RUN` updates package lists and runs a script. You can also use a `RUN` instruction to install software, as shown by the commented out instructions. To run multiple commands, use `&&` to combine the commands into a single `RUN` statement.

```Dockerfile copy
```dockerfile copy
ARG VARIANT="16-buster"
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ This type of URL is useful, for instance, in a README for your repository as it
1. Get the URL to the codespace creation page, or the "Resume codespace" page, as described in the previous sections.
1. Add the following Markdown to, for example, the `README.md` file of your repository:

```Markdown copy
```markdown copy
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](URL)
```

For example:

```Markdown
```markdown
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/github/docs)
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ For multi-line text, you can use the pipe operator.

#### Example of `markdown`

```YAML copy
```yaml copy
body:
- type: markdown
attributes:
Expand Down Expand Up @@ -136,7 +136,7 @@ You can use a `textarea` element to add a multi-line text field to your form. Co

#### Example of `textarea`

```YAML copy
```yaml copy
body:
- type: textarea
id: repro
Expand Down Expand Up @@ -178,7 +178,7 @@ You can use an `input` element to add a single-line text field to your form.

#### Example of `input`

```YAML copy
```yaml copy
body:
- type: input
id: prevalence
Expand Down Expand Up @@ -216,7 +216,7 @@ You can use a `dropdown` element to add a dropdown menu in your form.

#### Example of `dropdown`

```YAML copy
```yaml copy
body:
- type: dropdown
id: download
Expand Down Expand Up @@ -259,7 +259,7 @@ You can use the `checkboxes` element to add a set of checkboxes to your form.

#### Example of `checkboxes`

```YAML copy
```yaml copy
body:
- type: checkboxes
id: operating-systems
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This example YAML configuration file defines an issue form using several inputs

All issue form configuration files must begin with `name`, `description`, and `body` key-value pairs.

```YAML copy
```yaml copy
name:
description:
body:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ If you're using `nodenv`, see the [`nodenv` docs](https://github.com/nodenv/node

Once you've installed Node.js (which includes the popular `npm` package manager), open your terminal and run the following commands.

```sh
```shell
git clone https://github.com/github/docs
cd docs
npm ci
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Add a link to the article with a video's transcript in the description of the vi

In any content with an embedded video, add a `product_video_transcript` property below the `product_video` property in the YAML frontmatter. The value of `product_video_transcript` is a link to the transcript article in the `video-transcripts` directory.

```YAML
```yaml
title: Example product landing page
product_video: 'https://www.youtube-nocookie.com/embed/URL'
product_video_transcript: /content/video-transcripts/TRANSCRIPT-TITLE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ This example YAML configuration file defines a general discussion category form.

The configuration file for a discussion category form must contain a `body` key, and the `body` must contain at least 1 non-Markdown field.

```YAML copy
```yaml copy
body:
- type: input
id: suggestion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ By using the HTML `<picture>` element with the `prefers-color-scheme` media feat

1. Copy and paste the following markup into your {% ifversion ghae %}`about-me.md`{% else %}`README.md`{% endif %} file.

```HTML copy
```html copy
<picture>
<source media="(prefers-color-scheme: dark)" srcset="YOUR-DARKMODE-IMAGE">
<source media="(prefers-color-scheme: light)" srcset="YOUR-LIGHTMODE-IMAGE">
Expand Down Expand Up @@ -94,15 +94,15 @@ You can use Markdown tables to organize information. Here, you'll use a table to
1. Return to the **Edit {% ifversion ghae %}new {% endif %}file** tab.
1. To introduce yourself, two lines below the `</picture>` tag, add an `## About me` header and a short paragraph about yourself, like the following.

```Markdown
```markdown
## About me

Hi, I'm Mona. You might recognize me as {% data variables.product.prodname_dotcom %}'s mascot.
```

1. Two lines below this paragraph, insert a table by copying and pasting the following markup.

```Markdown copy
```markdown copy
| Rank | THING-TO-RANK |
|-----:|---------------|
| 1| |
Expand All @@ -117,7 +117,7 @@ For more information, see "[AUTOTITLE](/get-started/writing-on-github/working-wi

### Example of a table

```Markdown
```markdown
## About me

Hi, I'm Mona. You might recognize me as {% data variables.product.prodname_dotcom %}'s mascot.
Expand All @@ -139,7 +139,7 @@ To keep your content tidy, you can use the `<details>` tag to create an expandib

1. To create a collapsed section for the table you created, wrap your table in `<details>` tags like in the following example.

```HTML copy
```html copy
<details>
<summary>My top THINGS-TO-RANK</summary>

Expand All @@ -151,15 +151,15 @@ To keep your content tidy, you can use the `<details>` tag to create an expandib
1. Between the `<summary>` tags, replace `THINGS-TO-RANK` with whatever you ranked in your table.
1. Optionally, to make the section display as open by default, add the `open` attribute to the `<details>` tag.

```HTML
```html
<details open>
```

1. To check the collapsed section has rendered correctly, click the **Preview** tab.

### Example of a collapsed section

```HTML
```html
<details>
<summary>My top languages</summary>

Expand All @@ -182,13 +182,13 @@ Markdown has many other options for formatting your content. Here, you'll add a

1. At the bottom of your file, two lines below the `</details>` tag, add a horizontal rule by typing three or more dashes.

```Markdown
```markdown
---
```

1. Below the `---` line, add a quote by typing markup like the following.

```Markdown
```markdown
> QUOTE
```

Expand All @@ -197,7 +197,7 @@ Markdown has many other options for formatting your content. Here, you'll add a

### Example of a quote

```Markdown
```markdown
---
> If we pull together and commit ourselves, then we can push through anything.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ Webhook forwarding in the {% data variables.product.prodname_cli %} only works w

1. To install the {% data variables.product.prodname_cli %} extension to enable webhook forwarding, use the `extension install` subcommand.

```sh
```shell
gh extension install cli/gh-webhook
```

1. If you want to forward organization webhooks, add the `admin:org_hook` scope to your {% data variables.product.prodname_cli %} login so you have the required permissions.

```sh
```shell
gh auth refresh --scopes admin:org_hook
```

1. Start your application locally, and take a note of the URL where it's expecting to receive webhooks. This guide assumes that your application is listening for webhook events at `http://localhost:3000/webhook`.

1. To set up webhooks to be delivered to your application, run the `webhook forward` subcommand. Replace `REPOSITORY` with the name of your repository. For example, `monalisa/octocat`. Replace `EVENTS` with a comma-separated list of the events that you want to receive. For example, `issues,pull_request`. Replace `URL` with the local URL where your application expects to receive webhooks. For example, `"http://localhost:3000/webhook"`. To listen for organization webhooks instead of repository webhooks, replace the `--repo` flag with the `--org` flag. For example `--org="octo-org"`.

```sh
```shell
gh webhook forward --repo=REPOSITORY --events=EVENTS --url=URL
```

Expand Down
2 changes: 1 addition & 1 deletion contributing/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ You'll need Node.js to run the site. Check the version in `package.json`. To ins

Once you've installed Node.js (which includes the popular `npm` package manager), open Terminal and run the following:

```sh
```shell
git clone https://github.com/github/docs
cd docs
npm ci
Expand Down
10 changes: 5 additions & 5 deletions contributing/node-versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ When updating to a new Node.js version, consider the following files:

If you're using macOS, run this command to get the latest:

```sh
```shell
brew upgrade nodenv node-build
```

If you see a warning like this one, run the suggested command:

```sh
```shell
# You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/sbin
```
Expand All @@ -31,19 +31,19 @@ If you're using another operating system, or did not use Homebrew to install nod

To install Node.js and make it your default version, run this command:

```sh
```shell
# Set VERSION= based on package.json#engines
nodenv install $VERSION && nodenv global $VERSION
```

You may sometimes see a warning when running npm scripts with nodenv:

```sh
```shell
npm WARN lifecycle The node binary used for scripts is [...] but npm is using [...]
```

This is due to nodenv's overriding behavior. To silence this harmless warning, the [nodenv docs](https://github.com/nodenv/nodenv/wiki/FAQ#npm-warning-about-mismatched-binaries) recommend running the following command from any directory:

```sh
```shell
npm config set scripts-prepend-node-path auto
```
2 changes: 1 addition & 1 deletion contributing/videos.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Add a link to the article with a video's transcript in the description of the vi

In any content with an embedded video, add a `product_video_transcript` property below the `product_video` property in the YAML frontmatter. The value of `product_video_transcript` is a link to the transcript article in the `video-transcripts` directory.

```YAML
```yaml
title: Example product landing page
product_video: 'https://www.youtube-nocookie.com/embed/URL'
product_video_transcript: /content/video-transcripts/TRANSCRIPT-TITLE
Expand Down
2 changes: 1 addition & 1 deletion data/reusables/community/issue-forms-sample.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```YAML copy
```yaml copy
name: Bug Report
description: File a bug report
title: "[Bug]: "
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```YAML copy
```yaml copy
title: "[General] "
labels: ["General Introduction"]
body:
Expand Down
2 changes: 1 addition & 1 deletion data/reusables/getting-started/picture-element-example.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```HTML
```html
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/25423296/163456776-7f95b81a-f1ed-45f7-b7ab-8fa810d529fa.png">
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/25423296/163456779-a8556205-d0a5-45e2-ac17-42d089e3c3f8.png">
Expand Down
Loading

0 comments on commit b8bd463

Please sign in to comment.