Skip to content

Commit 7e6fe9e

Browse files
authored
Merge pull request #159 from vim-jp/fix-environment
Fix environment
2 parents 773b79b + 9dfb428 commit 7e6fe9e

File tree

14 files changed

+55
-232
lines changed

14 files changed

+55
-232
lines changed

Gemfile

Lines changed: 0 additions & 5 deletions
This file was deleted.

README.md

Lines changed: 51 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,60 @@ Join [vim-jp slack](https://vim-jp.org/docs/chat.html) instead, or contact [us](
88

99
## How to serve in your machine
1010

11-
### Setup
11+
### Pre requirements
1212

13-
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:
1419

1520
```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.
1840

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.
53+
54+
```console
55+
$ ./_scripts/docker_jekyll_serve --skip-initial-build --no-watch
56+
```
57+
58+
#### Serve with Python
59+
60+
You can run Python local HTTP server with the following command.
61+
62+
```console
63+
$ ./_scripts/python_http_server
2264
```
2365

24-
TODO: Add container version to keep the environment clean.
66+
It uses ports 8000 to serve the contents.
67+
Open http://127.0.0.1:8000 with your browser.

_ngingx/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

_ngingx/README.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

_ngingx/cmd/setup.cmd

Lines changed: 0 additions & 14 deletions
This file was deleted.

_ngingx/conf/mime.types

Lines changed: 0 additions & 89 deletions
This file was deleted.

_ngingx/conf/nginx.conf

Lines changed: 0 additions & 35 deletions
This file was deleted.

_ngingx/logs/.gitkeep

Whitespace-only changes.

_ngingx/reload.cmd

Lines changed: 0 additions & 18 deletions
This file was deleted.

_ngingx/start.cmd

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)