diff --git a/docs/en/contribute/docs.md b/docs/en/contribute/docs.md index 2538e58184..0202b86914 100644 --- a/docs/en/contribute/docs.md +++ b/docs/en/contribute/docs.md @@ -174,11 +174,19 @@ Build the library locally to test that any changes you have made have rendered p 1. Open previewed pages in your local editor: First specify a local text editor file using the `EDITOR` environment variable, before calling `yarn start` to preview the library. - For example, on Windows command line you can enable VSCode as your default editor by entering: + For example, you can enable VSCode as your default editor by entering: - ```sh - set EDITOR=code - ``` + - Windows: + + ```sh + set EDITOR=code + ``` + + - Linux: + + ```sh + export EDITOR=code + ``` The **Open in your editor** link at the bottom of each page will then open the current page in the editor (this replaces the _Open in GitHub_ link).