3 Copyright 2002-2004 The Apache Software Foundation or its licensors,
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
18 <!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
21 <title>Static content - including raw un-processed files and documents</title>
25 <title>Linking to static content</title>
27 You can place some types of raw content into the xdocs directory. For example,
28 you can place a PDF file in <code>src/documentation/content/xdocs</code> and link
30 <strong><a href="../hello.pdf"></strong><a href="../hello.pdf">hello.pdf</a><strong></a></strong>
31 However, note that if the file is one that Forrest is able to process, for example
32 an HTML file, these files will be processed accordingly.</p>
35 It is also worth noting that files in the xdocs directory will only be copied
36 into your final site if there is a link to them somewhere in the site. See the next
37 section for details of how to include content that is not linked.</p>
40 For more information see the
41 <a href="site:linking">Linking demonstration</a>.</p>
45 <title>Including Static Content that is Not Linked</title>
48 You can include raw HTML, PDFs, plain-text, and other files. In your final site by
49 placing them in the <code>src/documentation/content</code> directory. Files in this
50 directory will be copied over automatically but will not be processed in any way by
51 Forrest, that is they will be linked to as raw files.</p>
54 You can also have sub-directories such as
55 <code>src/documentation/content/samples/subdir/</code> which
57 <code>xdocs/</code> tree. The raw files will then end up
58 beside your documents.