blob: 5df434fa43f78c77b4334804f88153f09a1cfc76 [file] [log] [blame]
Apache Cassandra website builder
================================
Building the Apache Cassandra website takes a number of steps. To make things easier we have provided a Docker container which can build the full website in two simple commands and have it ready to commit via SVN. If you are interested in the process head over to the [README](./src/README) in _src_ directory.
Prerequisite
------------
To build and run the Docker container you will need `Docker` version 2.0.0.0 or greater. If you need a copy of the site code you will need `SVN` as well.
Building the site
-----------------
If you need a copy of the site code run this command:
```bash
$ svn co http://svn.apache.org/repos/asf/cassandra/site/ ./cassandra-site
$ cd ./cassandra-site
```
To build the website run the following commands from within the _./cassandra-site_ directory (assuming you used the above checkout commands):
```bash
$ docker-compose build cassandra-website
$ docker-compose run cassandra-website
```
Go make yourself a cup of coffee, this will take a while...
Once building has completed, the site content will be in the _./cassandra-site/publish_ directory ready to be committed.
Previewing the site
-------------------
If you want to preview the site as you are editing it run this command:
```bash
$ docker-compose build cassandra-website
$ docker-compose up cassandra-website-serve
```
For information about the site layout see the **Layout** section of [README](src/README#layout) in the _src_ directory.