Debian Codegraph @

jansi-website/src/community/site.page

raw
1 ---
2 # Copyright (C) 2009-2017 the original author(s).
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15
16 title: Building
17 --- name:overview
18
19 # ${project_name} Site
20 How the website works
21
22 --- name:content pipeline:jade
23
24 .left
25 h1 How it works
26 .right
27 :markdown
28
29 The *${project_name}* documentation and site is created using Scalate
30 and is stored in git in the same [source control system as the
31 code](source.html)
32
33 **Note:** For code highlighting you will need to
34 [install](http://pygments.org/download/)
35 [http://pygments.org/](http://pygments.org).
36
37 .left
38 h1 Editing the source code
39 .right
40 :markdown
41
42 If you [grab the source code](source.html) you will find the site
43 source in the *${project_id}-website* directory. The website is
44 also built using Maven so, you would
45
46 cd ${project_id}-website
47 mvn package
48
49 If you want to edit the files in your text editor and be able to
50 immediately see the site re-rendered in a browser then use
51
52 mvn jetty:run
53
54 You can now surf the site and see changes immediately.
55
56 If you are on OS X then we highly recommend
57 [TextMate](http://macromates.com/) as a great editor which supports
58 Textile and Markdown
59
60 .left
61 h1 Deploying the site
62 .right
63 :markdown
64
65 The site is deployed through GitHub gh-pages branch: you can deploy the site using Maven:
66
67 mvn install
68