From effcb32a3ea67d0bfffeb000274ddd3e4550974b Mon Sep 17 00:00:00 2001 From: Abhishek Choithani Date: Wed, 28 May 2025 07:09:23 +0530 Subject: [PATCH] Contibuting to docs - open editor on linux (#24907) * Update docs.md Tested on Ubuntu * Fix layout --------- Co-authored-by: Hamish Willee --- docs/en/contribute/docs.md | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) 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).