You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-1Lines changed: 24 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,29 @@
2
2
3
3
Repository for [tupleblog](http://tupleblog.github.io) (in Thai) based on [Jekyll](http://jekyllrb.com/)[HPSTR](https://github.com/mmistakes/hpstr-jekyll-theme) theme.
4
4
5
+
### Write on Gitpod
6
+
7
+
[Gitpod](https://gitpod.io) is an amazing online IDE especially for GitHub. You can start writing the blog on Gitpod by clicking [here](https://gitpod.io/#https://github.com/tupleblog/tupleblog.github.io) and logging in with your GitHub Authentication.
8
+
9
+
10
+
### `tpb` script
11
+
12
+
`tpb` script is now live! `tpb.sh` will help you install and serve the site easily. All you need to have is Ruby version >= `2.5.3`.
13
+
14
+
Here is how the script looks like:
15
+
16
+
```sh
17
+
$ ./tpb.sh
18
+
Usage: ./tpb.sh [-i] [-d]
19
+
20
+
Options:
21
+
-i, --install install dependencies with gem (gem install bundler) and bundler (bundle install).
22
+
-d, --debug serve jekyll locally using bundler.
23
+
```
24
+
25
+
If you have already installed Ruby, you can go ahead with the command `./tpb.sh -i`. This will install `bundler` if it is not installed yet and then run `bundle install` for you. Another command is `./tpb.sh -d` for debugging locally. This command starts with commenting specified `url` in the `_config.yml` of the project then serving Jekyll with `JEKYLL_ENV=production` prefix. It also uncomments the line for you when you stop the server by hitting `ctrl`+`c`.
26
+
27
+
5
28
### Running the blog locally
6
29
7
30
First, go to `_config.yml` then change line 9 for running locally. Then, change
@@ -11,7 +34,7 @@ directory to the repository and then do the following
11
34
2. Download `ruby` using [Homebrew](https://brew.sh/) for Mac. For Windows, download **RubyInstaller** and
12
35
**DEVELOPMENT KIT** regarding your OS architecture from [here](https://rubyinstaller.org/downloads/).
13
36
For **RubyInstaller**, just double click and done. For **DEVELOPMENT KIT**, please follows [its instruction](https://github.com/oneclick/rubyinstaller/wiki/Development-Kit).
14
-
3. Update your installed gems to latest version `gem update`. If updating failed try running `gem update --system` to update its core (see [this post](http://guides.rubygems.org/ssl-certificate-update/#installing-using-update-packages)).
37
+
3. Update your installed gems to latest version `gem update`. If updating failed try running `gem update --system` to update its core (see [this post](http://guides.rubygems.org/ssl-certificate-update/#installing-using-update-packages)).
15
38
4.`gem install bundler`
16
39
5.`bundle install` (For Windows, run `cmd` as Administrator)
17
40
6.`bundle exec jekyll serve` to serve the site in port 4000. You can also run
0 commit comments