Re: documentation structure - Mailing list pgsql-hackers
From | Robert Haas |
---|---|
Subject | Re: documentation structure |
Date | |
Msg-id | CA+Tgmobbyf_K-C4XQ9zSavFUxQL3PmQq4bkiZ2_M-6XOoY0O6Q@mail.gmail.com Whole thread Raw |
In response to | Re: documentation structure (Tom Lane <tgl@sss.pgh.pa.us>) |
List | pgsql-hackers |
On Mon, Mar 18, 2024 at 6:51 PM Tom Lane <tgl@sss.pgh.pa.us> wrote: > This might be a silly suggestion, but: could we just render the > "most important" chapter titles in a larger font? It's not the silliest suggestion ever -- you could have proposed <blink>! -- but I also suspect it's not the right answer. Of course, varying the font size can be a great way of emphasizing some things more than others, but it doesn't usually work out well to just take a document that was designed to be displayed in a uniform font size and enlarge bits of text here and there. You usually want to have some kind of overall plan of which font size is a single component. For example, on a corporate home page, it's quite common to have two nav bars, the larger of which has entries that correspond to the company's product offerings and/or marketing materials, and the smaller of which has "utility functions" like "login", "contact us", and "search". Font size can be an effective tool for emphasizing the relative importance of one nav bar versus the other, but you don't start by deciding which things are going to get displayed in a larger font. You start with an overall idea of the layout and then the font size flows out of that. Just riffing a bit, you could imagine adding a nav bar to our documentation, either across the top or along the side, that is always there on every page of the documentation and contains those links that we want to make sure are always visible. Necessarily, these must be limited in number. Then on the home page you could have the whole table of contents as we do today, and you use that to navigate to everything that isn't one of the quick links. Or you can imagine that the home page of our documentation isn't just a tree view like it is today; it might instead be written in paragraph form. "Welcome to the PostgreSQL documentation! If you're new here, check out our <link>tutorial</link>! Otherwise, you might be interested in our <link>SQL reference</link>, our <link>configuration reference</link>, or our <link>banana plantation</link>. If none of those sound like what you want, check out the <link>documentation index</link>." Obviously in order to actually work, something like this would need to be expanded into enough paragraphs to actually cover all of the important sections of the documentation, and probably not mention banana plantations. Or maybe it wouldn't be just paragraphs, but a two-column table, with each row of the table having a main title and link in the narrower lefthand column and a blurb with more links in the wider righthand column. I'm sure there are a lot of other ways to do this, too. Our main documentation page is very old-school, and there are probably a bunch of ways to do better. But I'm not sure how easy it would be to get agreement on something specific, and I don't know how well our toolchain can support anything other than what we've already got. I've also learned from painful experience that you can't fix bad content with good markup. I think it is worth spending some effort on trying to beat the existing format into submission, promoting things that seem to deserve it and demoting those that seem to deserve that. At some point, we'll probably reach a point of diminishing returns, either because we all agree we've done as well as we can, or because we can't agree on what else to do, and maybe at that point the only way to improve further is with better web design and/or a different documentation toolchain. But I think it's fairly clear that we're not at that point now. -- Robert Haas EDB: http://www.enterprisedb.com
pgsql-hackers by date: