Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xR7S8-00000000hKb-3PtS for pgsql-docs@arkaria.postgresql.org; Wed, 11 Nov 2026 12:29:25 +0000 Received: from localhost ([127.0.0.1]:33662 helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xR7S7-0000000Aqkd-1tdp for pgsql-docs@arkaria.postgresql.org; Wed, 11 Nov 2026 12:29:23 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]:35278) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xR7S7-0000000AqkV-0T3x for pgsql-docs@lists.postgresql.org; Wed, 11 Nov 2026 12:29:23 +0000 Received: from smtp.outgoing.loopia.se ([93.188.3.37]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1xR7S3-00000000SXb-1tdH for pgsql-docs@lists.postgresql.org; Wed, 11 Nov 2026 12:29:23 +0000 Received: from s807.loopia.se (localhost [127.0.0.1]) by s807.loopia.se (Postfix) with ESMTP id 831CA7AC07D for ; Wed, 11 Nov 2026 13:29:18 +0100 (CET) Received: from s980.loopia.se (unknown [172.22.191.5]) by s807.loopia.se (Postfix) with ESMTP id 74C297AC86B for ; Wed, 11 Nov 2026 13:29:18 +0100 (CET) Received: from localhost (unknown [172.22.191.6]) by s980.loopia.se (Postfix) with ESMTP id 71E132201631 for ; Wed, 11 Nov 2026 13:29:18 +0100 (CET) X-Virus-Scanned: amavis at amavis.loopia.se X-Spam-Flag: NO X-Spam-Score: -1.2 X-Spam-Level: X-Spam-Status: No, score=-1.2 tagged_above=-999 required=6.2 tests=[ALL_TRUSTED=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1] autolearn=disabled Authentication-Results: s470.loopia.se (amavis); dkim=pass (2048-bit key) header.d=yesql.se Received: from s899.loopia.se ([172.22.191.6]) by localhost (s470.loopia.se [172.22.190.34]) (amavis, port 10024) with LMTP id 8pl2MOV9qnDP for ; Wed, 11 Nov 2026 13:29:18 +0100 (CET) X-Loopia-Auth: user X-Loopia-User: daniel@yesql.se X-Loopia-Originating-IP: 89.255.232.236 Received: from smtpclient.apple (customer-89-255-232-236.stosn.net [89.255.232.236]) (Authenticated sender: daniel@yesql.se) by s899.loopia.se (Postfix) with ESMTPSA id E09072C8BA50 for ; Wed, 11 Nov 2026 13:29:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yesql.se; s=loopiadkim1707475645; t=1794400157; bh=lhd96mb7UxOnfbPKbG6PERJlD+zw158VXj2DRU2TO/M=; h=From:Subject:Date:To; b=qH64LeEctOPEYIlaPD8NbWZzRBRi/gtPl2DkIUBE21948lPNEy4wbia+EuyRMCzK2 Xz/+eVgB+PA0aHuv4HKc0pxkuqZNGPuggYHrH1jZwiMH7wZ2TzgetCp2q5OeIHi2Me PxuqSqmGbsWFR2eyYEWsIo4UyEklWeer4aFKyAqSbUo82ZWLrjIHkdI32CwzDwZUyM 4kOP4M7vwqu9YNwpMVW5Jc0wd2wtpc6HYWH/RAcxS5uFgkiOcCBFS3QNu+sLjo0kch PEs3X3TdzhR28OxZFe4rlGW5JlzQVxn8vFIdO82+UpG3LyTA8Depq1Iu24xToCGu4b ADGAnSfrxfMog== From: Daniel Gustafsson Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.12\)) Subject: Introductory docs-hacking task: Example markup Message-Id: <0E2E08E5-B06F-4F40-ADAA-BD4DB2275F44@yesql.se> Date: Wed, 11 Nov 2026 13:29:07 +0100 To: pgsql-docs@lists.postgresql.org X-Mailer: Apple Mail (2.3776.700.51.11.12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Here is another doc hacking task pulled from my ever growing TODO which = I think would be suitable for someone keen to get started in hacking on the = docs. There is an element of research here in order to propose a fix, since = the best course of action is unknown (there are many possible options). We have quite the variety in how we write examples in the docs, both = within the reference manpages and in the main documentation. A few examples (pun intended) follow: * https://www.postgresql.org/docs/devel/plpgsql-trigger.html Here we use to mark up the example and refer to the = id attribute in the text (sometimes just right before the example itself = which seems of questionable use). * https://www.postgresql.org/docs/devel/typeconv-oper.html This is similarly using but no id for referencing it. There = might not be much need for referencing it in text of course, in which case = omitting the id is fine, but there seems to be little difference in "Some = examples follow" used here and "Example XX.YY below does blah" used elsewhere. * https://www.postgresql.org/docs/devel/bloom.html#BLOOM-EXAMPLES=09 Here the example is a which in turn creates a TOC entry for the = example. * = https://www.postgresql.org/docs/devel/datatype-xml.html#DATATYPE-XML-CREAT= ING Another variant, here we just have a plain string "Examples:" with no = markup at all. * https://www.postgresql.org/docs/devel/intagg.html We only have one of this, but here we called it "Sample Uses" and made = it a . Maybe that's fine, but there are similar sections elsewhere = where we use Examples so.. I'm sure there are more that I didn't see with a quick grep and skim. = On top of these there are also various combinations of Example(s) vs Exmaples, = Example Uses vs plain Examples etc. Standardizing how we mark up examples would improve documentation = consistency and ideally make it easier to navigate and search. I have not done more = than collect the variants listed above so I don't know if the correct answer = is "do nothing" (which I doubt it is), but even reaching that conclusion would = be a step forward. Anyone interested? -- Daniel Gustafsson