--- # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with # this work for additional information regarding copyright ownership. # The ASF licenses this file to You under the Apache License, Version 2.0 # (the "License"); you may not use this file except in compliance with # the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. title: Building --- name:overview # ${project_name} Site How the website works --- name:content pipeline:jade .left h1 How it works .right :markdown The *${project_name}* documentation and site is created using Scalate and is stored in git in the same [source control system as the code](source.html) **Note:** For code highlighting you will need to [install](http://pygments.org/download/) [http://pygments.org/](http://pygments.org). .left h1 Editing the source code .right :markdown If you [grab the source code](source.html) you will find the site source in the *${project_id}-website* directory. The website is also built using Maven so, you would cd ${project_id}-website mvn install If you want to edit the files in your text editor and be able to immediately see the site re-rendered in a browser then use mvn jetty:run You can now surf the site and see changes immediately. If you are on OS X then we highly recommend [TextMate](http://macromates.com/) as a great editor which supports Textile and Markdown .left h1 Deploying the site .right :markdown The site is automatically deployed by the CI builds, so you can simply wait for the changes to be automatically pushed to the project site. You can manually deploy the site using Maven: mvn deploy Since deployment to our webserver requires proper authorization, you will need to add an entry to your ~/.m2/settings.xml file simlilar to: {pygmentize:: xml} ${project_id}-website xxxx xxxxx {pygmentize}