mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 01:43:33 +08:00
Contibuting to docs - open editor on linux (#24907)
* Update docs.md Tested on Ubuntu * Fix layout --------- Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
This commit is contained in:
co-authored by
Hamish Willee
parent
ba11f75067
commit
effcb32a3e
@@ -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:
|
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.
|
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
|
- Windows:
|
||||||
set EDITOR=code
|
|
||||||
```
|
```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).
|
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).
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user