本文共 2816 字,大约阅读时间需要 9 分钟。
目录
前提条件: subversion 服务器一台,或者使用sf.net, github.com, code.google.com 等等提供的服务,团队人员需要懂得docbook以及配置docbook环境
# pkg_add -r vim# pkg_add -r git# pkg_add -r libxml2 libxslt# pkg_add -r docbook-xsl
创建 book.xml
An Example Book Your first name Your surname foo@example.com 2000 Copyright string here If your book has an abstract then it should go here. Preface Your book may have a preface, in which case it should be placed here. My first chapter This is the first chapter in my book. My first section This is the first section in my book.
生成文档
$ xsltproc /usr/local/share/xsl/docbook/xhtml/docbook.xsl book.xml > book.html
$ sudo apt-get install docbook-xsl$ sudo apt-get install xsltproc xmlto$ sudo apt-get install make$ sudo apt-get install git
创建 book.xml
An Example Book Your first name Your surname foo@example.com 2000 Copyright string here If your book has an abstract then it should go here. Preface Your book may have a preface, in which case it should be placed here. My first chapter This is the first chapter in my book. My first section This is the first section in my book.
生成文档
$ xsltproc /usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml/docbook.xsl book.xml > book.html