Post details: 2008.0 beta1

2 April, 2008

Permalink 02:19 UTC, by Josh Saddler Email , 395 words, 551 views   English (US)
Categories: Gentoo

2008.0 beta1

Another day, another release. Another handbook written.

I'm so happy I finished writing those things. Once 2008.0 final is released, the only change I know I'll have to make at this point is changing the release name from 2008.0_beta1 to 2008.0, and as others have mentioned, that change is easy to make. Keys in the TOC allow me to make conditional evaluations in each handbook. So in the XML source, if I write:

<p>
Stage3 tarballs can be downloaded from <keyval id="release-dir"/>
</p>

This will replace release-dir with the location of the release, as fetched from the corresponding key. So depending on the handbook you're reading, you'll see something like:

Stage3 tarballs can be downloaded from releases/amd64/2008.0_beta1/stages/

Simple, but oh-so-maintainable. I don't just use keys in the handbook TOC, but I also can add conditional evaluations that pull in paragraphs, sections, subsections, code blocks, you name it. These can also be from external files, too. That's one of the things I've been doing for this release -- finding duplicate content for all arches, and moving that text into a separate external file.

One example is the text that explains block devices. Each arch used to have similar text, sometimes slightly (or significantly!) different. I unified all arches -- put them on the same page, so to speak -- by creating an external include. I first pitched the includes proposal back in March 2007, and it's finally coming to fruition with the 2008.0 release.

By using the following tidbit:

<section>
<title>Introduction to Block Devices</title>

<subsection>
<include href="../hb-install-blockdevices.xml"/>
</subsection>

<subsection>
<title>Partitions</title>

I can drop the contents of hb-install-blockdevices.xml into place, providing the same descriptive text. If it ever needs changing, rather than having to change 16 handbooks, I can change just one, and all 16 will use it. This example is taken from a file in /handbook/2008.0/, so it refers to the included file one level up, in /handbook/. The included content doesn't even have to be in the same directory as the file using it!

I'll be implementing even more of these kinds of changes in the future. They increase maintainability, increase uniformity, and, more importantly, preserve my sanity when editing handbooks. And if I stay sane, I don't retire.

Comments:

Comment from: Christian [Visitor] Email
Thanks for your work.
PermalinkPermalink 2 April, 2008 @ 05:57
Comment from: Xavier Neys [Visitor] Email · http://gentoo.neysx.org
I first pitched the includes proposal back in March 2007
You weren't first to think of that. The idea is as old as the handbook, just a bit older actually.
It did take quite a bit of XSL hacking, the most part being in http://tiny.wistful.net/id/3056 and http://tiny.wistful.net/id/3057
I am pleased it is being appreciated and put to good use. Thanks for all the work you put into this release.
PermalinkPermalink 3 April, 2008 @ 20:09
Comment from: Josh Saddler [Member] Email · http://dev.gentoo.org/~nightmorph
@Xavier:
Hmm, how come it never really gained a foothold in our docs then? It seems logical to use it everywhere in our docs, but I'd never seen it used until recently. Was there a decision made to deliberately not use it at some point?

Oh, and your XSL-fu is amazing. :)
PermalinkPermalink 3 April, 2008 @ 22:24
Comment from: Dirk Gently [Visitor] Email · http://linuxtidbits.wordpress.com/
nice job josh, from the documentation you did a thorough and you did a nice job organizing. The documentation of the Gentoo project is essential, its good to see someone taking a such an interest in it.

Maybe in the future some of that energy could be put into gentoo website alteration, a project that I would be interested in.
PermalinkPermalink 4 April, 2008 @ 10:54
Comment from: Dirk Gently [Visitor] Email · http://linuxtidbits.wordpress.com/
just read the openrc guide. yes! been forward to seeing this come into the the portage tree for a bit. you did nice job with the details I hadn't known them before, you seen to have a knack for this.
PermalinkPermalink 16 April, 2008 @ 08:01

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Josh Saddler

The journal of Josh Saddler (nightmorph), a documentation developer.

May 2008
Mon Tue Wed Thu Fri Sat Sun
<< <     
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Search

Categories

Misc

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 43

powered by
b2evolution