From Fedora Project Wiki
(updating, adding some links (thx ke4qqq))
(Redirecting to DocBook)
 
Line 1: Line 1:
= DocBook =
#REDIRECT [[DocBook]]
 
The standard markup language used by the DocsProject.  Refer to the DocBook home page for everything DocBook:
 
* http://www.docbook.org
 
== Getting started ==
 
=== Good reading ===
 
* [http://opensource.bureau-cornavin.com/crash-course/en/index.html Quick crash course]
* [http://cyberelk.net/tim/docbook/selfdocbookx/ Self-referential tutorial]
* [http://tldp.org/HOWTO/DocBook-Demystification-HOWTO/index.html Dated but useful for understanding]
 
=== Publican toolchain ===
 
Fedora Docs uses a toolchain that wraps around DocBook building tools.
 
* [http://jfearn.fedorapeople.org/Publican/ Publican Users Guide]
* [https://fedorahosted.org/publican Project pages]
 
To install publican from the command line:
 
<pre>
su -c 'yum install publican'
</pre>
 
Once installed, you can use the <code>create_book</code> command to generate a new, empty book that you can begin writing in immediately.  It serves as a self-referential toolchain tutorial.
 
=== Example tutorial ===
 
In addition to the [http://cyberelk.net/tim/docbook/selfdocbookx/ Self DocBook] sef-referential tutorial, the [[DocsProject]] maintains an [http://cvs.fedoraproject.org/viewcvs/example-tutorial/en_US/example-tutorial2.xml?root=docs&view=markup example tutorial]  that shows beginners how to get started using DocBook, using a simple "show and tell" format.  After you click the above link to [http://cvs.fedoraproject.org/viewcvs/example-tutorial/en_US/example-tutorial2.xml?root=docs&view=markup the tutorial] , choose "(As text)" at the top, and save the resulting page.  Then open the page in your favorite editor.  Most editors, such as <code>vi</code>, <code>Emacs</code>, and <code>gEdit</code>, use "syntax highlighting" to make the document very easy to read.
 
=== Complete Reference ===
 
"DocBook: The Definitive Guide" (often called "The DocBook Book" or "TDG"), available at the site, has a complete reference of all tags used in DocBook.  The DocsProject currently uses version 4.4 of the DocBook DTD.  The reference in TDG shows you which tags belong to newer versions of the DocBook DTD, so you don't violate the specification when you are writing your documents.  You can download or read the book here:
 
* http://www.docbook.org/tdg/en/html/docbook.html
 
{{Anchor|tools}}
== Creating DocBook using common tools ==
 
The [http://docs.fedoraproject.org/documentation-guide/ Documentation Guide]  explains how to configure <code>vi</code> and <code>Emacs</code> for DocBook support.
 
OpenOffice.org has some limited capabilities for producing DocBook XML from documents that adhere to strict use of built-in styles.  See ["DocsProject/OOoDocBook"]  for information on using [http://www.openoffice.org OpenOffice.org]  Writer for working with DocBook.
 
Users can export pages from this wiki to DocBook.  To ease the conversion process, refer to the guidelines found at [[Docs/WritingUsingTheWiki]] .
 
----
 
[[Category:Docs Project]]

Latest revision as of 20:53, 30 December 2008

Redirect to: