Apache Forrest
Home Page: [url]http://forrest.apache.org/index.html[/url]
Current Version: 0.8
1.下载并安装
当前版本为0.8, 下载地址[url]http://forrest.apache.org/mirrors.cgi[/url]
(1)解压下载的文件包于适当目录下,如c:\development,
(2)添加环境变量FORREST_HOME=c:\development\apache-forrest-0.8,并将c:\development\apache-forrest-0.8添加到PATH变量路径中.
2.使用
由于已将forrest命令路径添加到PATH环境变量中,则可以在任何路径下运行forrest命令
\>forrest -projecthelp 显示帮助信息
\>forrest seed 在当前运行目录创建新的site工程,在forrest的文档中有说明工程文件的目录结构
\>forrest [site] 渲染源文件生成静态文件
\>forrest run 将forrest工程作为webapp运行,可在浏览器中输入http://localhost:8888进行访问
3.添加content内容
作为文档内容的xml文件默认保存在目录<seed-site>\src\documentation\content\xdocs下,可参复制indx.xml创建一个新的xml文件,并在site.xml中添加对该文件的引用.当重新运动forrest run之后,就可以在side menu中发现新添加的页面并进行访问.
当需要写新的xml文件时,就需要翻译forrest的文档结构了,参考地址[url]http://forrest.apache.org/dtdx/dtd-docs.html[/url].
欢迎访问[url]http://www.dec32.com[/url]
Home Page: [url]http://forrest.apache.org/index.html[/url]
Current Version: 0.8
1.下载并安装
当前版本为0.8, 下载地址[url]http://forrest.apache.org/mirrors.cgi[/url]
(1)解压下载的文件包于适当目录下,如c:\development,
(2)添加环境变量FORREST_HOME=c:\development\apache-forrest-0.8,并将c:\development\apache-forrest-0.8添加到PATH变量路径中.
2.使用
由于已将forrest命令路径添加到PATH环境变量中,则可以在任何路径下运行forrest命令
\>forrest -projecthelp 显示帮助信息
\>forrest seed 在当前运行目录创建新的site工程,在forrest的文档中有说明工程文件的目录结构
\>forrest [site] 渲染源文件生成静态文件
\>forrest run 将forrest工程作为webapp运行,可在浏览器中输入http://localhost:8888进行访问
3.添加content内容
作为文档内容的xml文件默认保存在目录<seed-site>\src\documentation\content\xdocs下,可参复制indx.xml创建一个新的xml文件,并在site.xml中添加对该文件的引用.当重新运动forrest run之后,就可以在side menu中发现新添加的页面并进行访问.
当需要写新的xml文件时,就需要翻译forrest的文档结构了,参考地址[url]http://forrest.apache.org/dtdx/dtd-docs.html[/url].
欢迎访问[url]http://www.dec32.com[/url]
本文介绍如何安装及配置 Apache Forrest 0.8 版本,包括环境变量设置、基本命令使用方法以及如何创建和运行站点项目。此外还提供了创建文档内容的基本步骤。

315

被折叠的 条评论
为什么被折叠?



