@@ -109,10 +109,6 @@ Jekyll will print a local URL where the site can be viewed (usually,
109109
110110### Testing using Docker environment
111111
112- A containerized development environment can be built using the local
113- Dockerfile.
114-
115-
116112A containerized development environment can be built using the local
117113Dockerfile. You can build it with the following command:
118114
@@ -123,7 +119,8 @@ docker build -t webdev .
123119This action will produce a ` webdev ` image, with all the website's build
124120prerequisites preinstalled. When a container is run from this image, it
125121will perform a ` jekyll serve ` command with the polling option enabled,
126- so that changes you make locally will be immediately reflected.
122+ so that changes you make locally will be immediately reflected after
123+ reloading the page in your browser.
127124
128125When you run a container using the webdev image, your current working
129126directory will be mounted, so that any changes made by the build inside
@@ -137,20 +134,22 @@ docker run -d -v "$PWD":/mnt/workdir -p 4000:4000 webdev
137134While this container is running, you will be able to review the rendered website
138135in your local browser at [ http://127.0.0.1:4000/ ] ( http://127.0.0.1:4000/ ) .
139136
140-
141137Shell access can be obtained by overriding the default container command.
142138
143139This is useful for adding new gems, or modifying the Gemfile.lock for updating
144140existing dependencies.
145141
146- When using shell access the local directory must be mounted to ensure
142+ When using shell access, the local directory must be mounted to ensure
147143the Gemfile and Gemfile.lock updates are reflected in your local
148144environment so you can create a commit and submit a PR.
149145
150146``` bash
151147docker run -v " $PWD " :/mnt/workdir -it webdev /bin/bash
152148```
153149
150+ You may need to manually delete the ` _site ` or ` .jekyll-cache ` directories if
151+ they already exist and are causing issues with the build.
152+
154153## Publishing
155154
156155Changes pushed to our ` main ` branch will automatically trigger Jekyll to
0 commit comments