This book is written with the technique kindly provided by PostgreSQL community. Please refer its original documentation for full detail. This chapter is a 3-minute DocBook tutorial.
To write a new chapter, follow this:
cd to ~/en/.
Copy this file documentation.sgml to my-chapter.sgml.
Edit file my-chapter.sgml and change id="chapter-doc" to id="chapter-my-chapter".
Edit file filelist.sgml and duplicate the line with documentation and replace documentation in the new line with my-chapter.
Edit file posterp.sgml and add line &my-chapter; beneath line &documentation;.
Type command:
make |
Use browser to open file index.html and you will notice that the new book has your new chapter added.
Now assume you are translating this book from English to tradition Chinese.
Duplicate everything under ~/en/ to ~/tw/.
cd to ~/tw/. Translate all texts.
Edit file language.sgml and change the new line from use-en to use-tw.
Edit file constants.sgml: Swap IGNORE and INCLUDE for lines with use-tw and use-en.
Use your Chinese image file mzf3.png to replace the English one under ~/images/.
Type command:
SP_ENCODING=UTF-8 make |
To publish this new book, copy *.html, *.css, and ~/images/* to your target location.