Thursday December 14, 2006
Lifting the Veil: How the NetBeans Platform Book is Being Written
The upcoming NetBeans Platform book, entitled "Rich Client Programming" (subtitled "Plugging into the NetBeans Platform") is being written in...
...NetBeans itself. We're using a DocBook module (made by Jesse and Tim, as far as I'm aware) that recognizes a DocBook folder structure as a project, so that a folder of DocBook files can be treated like files in any other project. So, this is what the book looks like, and this is the view I have on it while writing:
And, each individual chapter (or the book as a whole) can be turned into an HTML file via a menu item, as shown above. And then you're one click away from a PDF document:
So, we're writing the book in the same way as NetBeans encourages people to program... in a modular way. Various individual people are responsible for individual chapters, they write them, commit them to CVS, and eventually the whole book will be assembled from these separate pieces.
We're by no means at the end yet, but our deadline is coming up very soon, (and then the proof reading cycle begins) so we're definitely very far along already. I'm really looking forward to seeing it in print!
Dec 14 2006, 08:46:20 AM PST Permalink
Posted by Peter Thomas on December 14, 2006 at 09:22 AM PST #
Posted by Tom Wheeler on December 14, 2006 at 09:54 AM PST #
It's on the dev update center. You can see the source code in contrib/docbook. It has some idiosyncrasies, though. Code completion only works when there's a valid DOCTYPE header, but compilation to html only works when the DOCTYPE header is removed. Very annoying.
It's got one really cool feature written by Tim Boudreau. If you've got an image in your OS's clipboard (put there by, say, taking a screenshot with Alt-PrintScreen), and you paste it in your docbook text editor, it will generate the appropriate image tag, and give you a window for cropping the image before saving it to disk as a PNG. Very convenient.
Posted by Rich Unger on December 14, 2006 at 09:57 AM PST #
Posted by Peter Thomas on December 14, 2006 at 10:23 PM PST #
Posted by Marek Dudra on January 15, 2007 at 11:14 AM PST #
Posted by Paul on January 21, 2007 at 06:45 AM PST #
Posted by Geertjan on January 21, 2007 at 07:20 AM PST #


