Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olvDt-0000V2-N4 for pgsql-docs@arkaria.postgresql.org; Fri, 21 Oct 2022 16:50:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1olvDs-0000aE-Jj for pgsql-docs@arkaria.postgresql.org; Fri, 21 Oct 2022 16:50:16 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olvDr-0000a4-38 for pgsql-docs@lists.postgresql.org; Fri, 21 Oct 2022 16:50:16 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1olvDn-0006SN-5Q for pgsql-docs@lists.postgresql.org; Fri, 21 Oct 2022 16:50:14 +0000 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 78999320090D; Fri, 21 Oct 2022 12:50:06 -0400 (EDT) Received: from imap46 ([10.202.2.96]) by compute5.internal (MEProxy); Fri, 21 Oct 2022 12:50:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nielsbom.com; h= cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1666371006; x=1666457406; bh=fJMKABOqIw PKWL86MVTitzjoti6b6lROfu4idx9WBRk=; b=QEbUmThXaO7Pt7WmD4AWxDSrNG GMCczJCIX3WKoSfGeMNx2gn/XbjZX+J77XR/28iU5Mbah2lsLDugD1DKI1sNMXCN 8uBTZM8nklDh9dV7ZTZJnZL9LReVdWQXutNlVCQtw1Q8v7tsfTLqImccC26bSZoA rF1N1xihCRQjnCBWQx4RsUbSYveQF70eV+jYiz1C6bMLeFbSjnxQl6GfwuTJHuCw vqw7x8KnORXG/svORROvWc+DRHOG06zQCIYBlhhjYmv6j2ZR5JeoQgznnjUcX54c wwyJoaPFM8Z+gjPgZPGoO71j7fBLOL2eKQ/xJV8IuYvW75ZGhm1TiCBWRy0A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1666371006; x=1666457406; bh=fJMKABOqIwPKWL86MVTitzjoti6b 6lROfu4idx9WBRk=; b=cdFYO8a5I2KNLEqIS653A3Tahkxz8nlp+5fp9v4+U6Gv RjDnyoD9lXELwPwlOfZdOsrmAJntPtQM4KHzaZivsqfoSiiTo+UvsQcAEeJtU4ib wSSCbS3QbSf08oSRwpN2kAGADe7huj8boOynIvPvgjtuB1qZx03oZVYhTrPaKPR8 kGMzd8fzxrYNqdnUabeQXvsPgoqnNGb8n66paQyR0vhlObHiNJRQNfcFrDbLRTvz 040XLpD5yd3qrtU+yr8HcDdK8A3tPBwZ/fDT4LruOVugCgtg1jQirRIejRRzQgYh Zrpkc3Eb6xKcSnvek/skzDmTYLeUM/0lm2YpDlWalQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrfeelkedguddtfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enfghrlhcuvffnffculddqiedmnecujfgurhepofgfggfkjghffffhvffutgesthdtredt reertdenucfhrhhomhepfdfpihgvlhhsuceuohhmfdcuoehnihgvlhhssehnihgvlhhssg homhdrtghomheqnecuggftrfgrthhtvghrnhephfefkedttdefueeitdfhgfdtkeevjeet veelhfevgeeileelfeetgffghffggfffnecuffhomhgrihhnpeiffedrohhrghdpughigh hithgrlhdrghhovhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhl fhhrohhmpehnihgvlhhssehnihgvlhhssghomhdrtghomh X-ME-Proxy: Feedback-ID: id93146a5:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9C0DC2A20080; Fri, 21 Oct 2022 12:50:05 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1047-g9e4af4ada4-fm-20221005.001-g9e4af4ad Mime-Version: 1.0 Message-Id: In-Reply-To: <283a08f1-ae00-8a96-db7c-dbd43bb53aae@postgresql.org> References: <283a08f1-ae00-8a96-db7c-dbd43bb53aae@postgresql.org> Date: Fri, 21 Oct 2022 18:49:44 +0200 From: "Niels Bom" To: "Jonathan S. Katz" , pgsql-docs@lists.postgresql.org Subject: Re: Usability ideas: text width and headers that are links Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Oct 21, 2022, at 17:42, Jonathan S. Katz wrote: > Hi, > > Thanks for the suggestions. Comments inline: > > On 10/21/22 9:54 AM, Niels Bom wrote: >> Hi! >> >> I have 2 small ideas to improve the usability of the PostgreSQL documentation. I'm looking at v15 (1) mostly. >> >> Idea 1: >> Give the text width of the main content a max width. > > Why? Can you please provide examples? Screenshots are OK. Setting a max-width on regular textual content is good for readability, which in turn increases accessibility. See this W3C a11y documentation (1) and an a11y page by the US government (2) for more detailed info. Using the CSS max-width property makes narrower sizes possible (for smaller screens) but sets an upper limit. The newer `ch` unit in CSS is a good-enough approximation of the average width of a character. I've seen 66ch as the "ideal" width for regular text. For the docs code examples need to have enough width too of course. But we can have those be wider than their containing element if need be. 1: https://www.w3.org/WAI/tutorials/page-structure/styling/ 2: https://accessibility.digital.gov/visual-design/typography/ > >> Idea 2: >> Each h3 and h4 element should be a link pointing to the nearest parent section with an id. This makes deeplinking to specific parts of a page easier. This prevents people from having to scroll to the top, find out which table-of-content-link they have to click to get the deeplink of where they wanted to link. This is actually quite a common pattern. See the Python docs (2) and the Mozilla docs (3) as examples. The pattern on those sites is even a little nicer by showing an icon on hover. > > This has been on my backlog for awhile, i.e. to have the hovering > "anchor holders". I'll try to move it up on the list. Cool! I could help if you want to. > > Thanks, > > Jonathan > > > Attachments: > * OpenPGP_signature