Unverified Commit 9c44c1dc authored by Delba de Oliveira's avatar Delba de Oliveira Committed by GitHub

[Docs] Add section on how to preview docs changes on VSCode (#51019)

parent f1f5734e
...@@ -28,9 +28,27 @@ If you're new to GitHub, we recommend reading the [GitHub Open Source Guide](htt ...@@ -28,9 +28,27 @@ If you're new to GitHub, we recommend reading the [GitHub Open Source Guide](htt
The docs are written in [MDX](https://mdxjs.com/), a markdown format that supports JSX syntax. This allows us to embed React components in the docs. See the [GitHub Markdown Guide](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) for a quick overview of markdown syntax. The docs are written in [MDX](https://mdxjs.com/), a markdown format that supports JSX syntax. This allows us to embed React components in the docs. See the [GitHub Markdown Guide](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax) for a quick overview of markdown syntax.
### VSCode Extensions ### VSCode
Although you can use any code editor to write MDX, we recommend the following extensions for VSCode users: #### Previewing Changes Locally
VSCode has a built-in markdown previewer that you can use to see your edits locally. To enable the previewer for MDX files, you'll need to add a configuration option to your user settings.
Open the command pallete (`⌘ + ⇧ + P` on Mac or `Ctrl + Shift + P` on Windows) and search from `Preferences: Open User Settings (JSON)`.
Then, add the following line to your `settings.json` file:
```json filename="settings.json"
"files.associations": {
"*.mdx": "markdown"
}
```
Next, open the command palette again, and search for `Markdown: Preview File` or `Markdown: Open Preview to the Side`. This will open a preview window where you can see your formatted changes.
#### Extensions
We also recommend the following extensions for VSCode users:
- [MDX](https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx): Intellisense and syntax highlighting for MDX. - [MDX](https://marketplace.visualstudio.com/items?itemName=unifiedjs.vscode-mdx): Intellisense and syntax highlighting for MDX.
- [Grammarly](https://marketplace.visualstudio.com/items?itemName=znck.grammarly): Grammar and spell checker. - [Grammarly](https://marketplace.visualstudio.com/items?itemName=znck.grammarly): Grammar and spell checker.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment