Skip to content

Commit

Permalink
chore: update images and formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
minhcloud committed Mar 21, 2024
1 parent bbefe4b commit 74defe7
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions _memo/how-to-set-up-environment-for-editing-memo.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,32 @@ Firstly, you have to install Visual Studio Code, [here](https://code.visualstudi

## B. Install the Devbox
1. Open the Terminal on VScode
You can use the shortcut `Control + ~`.
You can use the shortcut `Control + ~` to open Terminal.

![](assets/how-to-set-up-environment-for-editing-memo_how-to-set-up-environment-for-editing-memo_bed95d63218ec145199cb308295a2d1e_MD5.webp)
![](https://media.discordapp.net/attachments/1064565585800876083/1217838498464141463/setup_env_b11.png?ex=66057b7c&is=65f3067c&hm=2bfa1ade8635c2e474b8dbb10797186eb0ccca98a835ee4245d0a52e85dece24&=&format=webp&quality=lossless&width=1540&height=1134)

Then run this command in the Terminal `curl -fsSL https://get.jetpack.io/devbox | bash`.
Then run this command in the Terminal to install Devbox: `curl -fsSL https://get.jetpack.io/devbox | bash`.

## C. Pull the Github Source to your local disk
You have 2 ways to pull the Github source to the local disk:

![](assets/how-to-set-up-environment-for-editing-memo_how-to-set-up-environment-for-editing-memo_6f5e3e3ea3303c26882261367dba3c62_MD5.webp)
![ ](https://media.discordapp.net/attachments/1064565585800876083/1217838498984230913/setup_env_b12.png?ex=66057b7c&is=65f3067c&hm=d6af0dc1661e2ebc6154bf1f78516b7c0a4e932bff74c29cb7b34db4ba2938f0&=&format=webp&quality=lossless&width=1618&height=334)

### Method 1: Link VScode with your Github account
1. Connect your github account with the VScode
2. Search repo `note.d.foundation` and select to clone it

![](assets/how-to-set-up-environment-for-editing-memo_how-to-set-up-environment-for-editing-memo_7d30564bb35c4e7a84ab25efb9863eea_MD5.webp)
![](https://media.discordapp.net/attachments/1064565585800876083/1217838499776958474/setup_env_c11.png?ex=66057b7c&is=65f3067c&hm=3a5b23cafa5bda553f69d16bbfe4d4285cce3179ea2af8ffaa89660f4b17e49d&=&format=webp&quality=lossless&width=1540&height=1134)

![](assets/how-to-set-up-environment-for-editing-memo_how-to-set-up-environment-for-editing-memo_23304a379655d944f94067137b95bae3_MD5.webp)
![](https://media.discordapp.net/attachments/1064565585800876083/1217838500909551656/setup_env_c12.png?ex=66057b7c&is=65f3067c&hm=3172263a041cb2f2f426fe034539fa7906644c14bcabb542c2389fc7dfba4199&=&format=webp&quality=lossless&width=1540&height=1134)

### Method 2: Using the terminal
1. Run these 2 commands seperately in Terminal to config the account:
1. Run these 2 commands seperately in Terminal to connect the Github account to the VScode:
```sh
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
```

2. Run this command in Terminal
2. Run this command in Terminal to clone the repository:
```sh
git clone https://github.com/dwarvesf/note.d.foundation.git
```
Expand All @@ -66,12 +65,12 @@ git submodule foreach --recursive 'git checkout main || git checkout master
2. Create folder "content" under node.d.foundation folder
![](assets/how-to-set-up-environment-for-editing-memo_how-to-set-up-environment-for-editing-memo_8d8eabbbf8f91851e67750ab1d10138e_MD5.webp)
![](https://media.discordapp.net/attachments/1064565585800876083/1217838501937020968/setup_evn_d2.png?ex=66057b7d&is=65f3067d&hm=d24b328ccc8efd196b9754480ff0ccca33c9b4a9359576c2707af1483fd52389&=&format=webp&quality=lossless&width=1540&height=1134)
3. Run the this command in Terminal `devbox shell` and wait until all files are installed
4. Run the command `make watch-run`
3. Run the this command in Terminal `devbox shell` to set up the environment and wait until all files are installed
4. Run the command `make watch-run` to rebuild the site and get the local link
## E. Sync all repo before editting
Everytime you want to edit or create a post, you have to go to `Source Control` and sync all file.
![](assets/how-to-set-up-environment-for-editing-memo_how-to-set-up-environment-for-editing-memo_232066febea0d05095e93d6fe091eae1_MD5.webp)
![](https://media.discordapp.net/attachments/1064565585800876083/1217838502977343568/setup_evn_e1.png?ex=66057b7d&is=65f3067d&hm=dbc1332fd9de7ed3d5b49bca3f4ad07784a36ef6629ec0263d65a22976106f55&=&format=webp&quality=lossless&width=1410&height=1040)

0 comments on commit 74defe7

Please sign in to comment.