-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
12 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
||
 | ||
 | ||
|
||
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: | ||
|
||
 | ||
 | ||
|
||
### 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 | ||
|
||
 | ||
 | ||
|
||
 | ||
 | ||
|
||
### 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 | ||
``` | ||
|
@@ -66,12 +65,12 @@ git submodule foreach --recursive 'git checkout main || git checkout master | |
2. Create folder "content" under node.d.foundation folder | ||
 | ||
 | ||
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. | ||
 | ||
 |