Skip to content
Snippets Groups Projects
Commit e7fc095c authored by Evan Read's avatar Evan Read
Browse files

Fix formatting in README.

parent 1ba18c3f
Branches andrey-remove-group-caching
No related tags found
No related merge requests found
Loading
Loading
@@ -71,7 +71,6 @@ build the [direction page](https://about.gitlab.com/direction/).
 
```sh
bundle install
bundle exec rake build
# To also build PDFs:
bundle exec rake pdfs
Loading
Loading
@@ -102,14 +101,14 @@ Middleman keywords:
 
To preview these custom-generated pages locally, you must first rebuild the files:
 
```
```sh
bundle exec middleman build
```
 
To test out the site, you must run another Web server from the
`public` directory:
 
```
```sh
(cd public; python -m SimpleHTTPServer 8000)
```
 
Loading
Loading
@@ -147,28 +146,28 @@ working correctly, you need to have at least Git and Docker installed, and an
internet connection available.
 
1. Clone the repository in a local folder
```
```sh
git clone git@gitlab.com:gitlab-com/www-gitlab-com.git
```
 
2. Create a Docker container
```
```sh
docker create --name middleman -v "$PWD/www-gitlab-com":/site -w /site -p 4567:4567 \
-e LC_ALL=C.UTF-8 ruby /bin/bash -c 'bundle install && bundle exec middleman'
```
 
3. Start the container
```
```sh
docker start middleman
```
 
4. Connect to `http://localhost:4567/
4. Connect to http://localhost:4567
 
5. Change your original content as usual, and see the changes in the browser as soon as
you save the new version of the file (otherwise, just restart the container)
 
6. When you have finished, stop the container
```
```sh
docker stop middleman
```
 
Loading
Loading
@@ -178,7 +177,7 @@ you save the new version of the file (otherwise, just restart the container)
 
In case someone forgot the most important commands and is catting this file from the command line we end by listing them:
 
```
```sh
kill -kill `lsof -t -i tcp:4567`
bundle exec rake new_post
open -a "Google Chrome" http://localhost:4567
Loading
Loading
@@ -187,6 +186,6 @@ bundle exec middleman
 
or to execute the last two commands just run:
 
```
```sh
bin/run
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment