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
Follow the instructions on [Testing your GitHub Pages site locally with Jekyll - GitHub Docs](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/testing-your-github-pages-site-locally-with-jekyll).
13
+
* Docker
14
+
* (OPTION) Python 3: to preview with local HTTP server
15
+
16
+
### Build
17
+
18
+
The following command will build your site in the \_site/ directory:
14
19
15
20
```console
16
-
# Setup Ruby
17
-
# You can use rbenv.
21
+
$ ./_scripts/docker_jekyll jekyll build
22
+
```
23
+
24
+
You can also specify options such as incremental options.
25
+
26
+
```console
27
+
$ ./_scripts/docker_jekyll jekyll build -I
28
+
```
29
+
30
+
### Serve
31
+
32
+
You can run `jekyll serve` with the following command.
33
+
34
+
```console
35
+
$ ./_scripts/docker_jekyll_serve
36
+
```
37
+
38
+
It uses port 4000 to serve the contents.
39
+
Open http://127.0.0.1:4000 with your browser.
18
40
19
-
cd vimconf.org
20
-
bundle install
21
-
bundle exec jekyll serve
41
+
This command accepts options as you know.
42
+
To use watch and incremental builds:
43
+
44
+
```console
45
+
$ ./_scripts/docker_jekyll_serve -wI
46
+
```
47
+
48
+
Auto-regeneration may not work on some Windows versions.
49
+
In that case, it might be easier to serve it in Python
50
+
and generate it manually in the "Build" step.
51
+
52
+
If you just want to serve without watching or building, you may do as follows.
0 commit comments