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 1pji3O-0005nP-Dd for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Apr 2023 14:54:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pji3N-0002of-73 for pgsql-hackers@arkaria.postgresql.org; Tue, 04 Apr 2023 14:54:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pji3M-0002oV-T8 for pgsql-hackers@lists.postgresql.org; Tue, 04 Apr 2023 14:54:32 +0000 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pji3K-0000jq-75 for pgsql-hackers@postgresql.org; Tue, 04 Apr 2023 14:54:31 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailnew.west.internal (Postfix) with ESMTP id 147A32B05BCC; Tue, 4 Apr 2023 10:54:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 04 Apr 2023 10:54:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type: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=fm2; t= 1680620066; x=1680627266; bh=7LH5SWbwEbrhHhVGgDzpCdOCLozqt5tQ90t +zfQbI4o=; b=gGwk0B+QtwkrCyF0MpbkPJHauMsH2ZBnJYg8UiKw2Mgp0Hx06se iGhWZ6d47V8iQBEM5cpjwqSvZ4oKitLegZ7Rm5StpsPCnmZ/Yot9VS7GcnwuuQq8 7D94+NnCXRfVF1WFn+lf/0ZDeF595rtnVFn8IpPziLmreEaEn+A6id326he5ITvG ms4r1poUL/r/1KGkWZJ18YV+iFG3wJ++hE+x2hWUakCSRlPXMnsufP6L0yk7NsjG 0yYhR/xyRs7KRITbKXhu+OYKrgyjoBG1CaC6EGvtJpLjUW/VrKQRG7KfNEzQC2L/ zrvyhDuh6IRUBvmWa2F1vtRkSt21hfYqeQA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeiledgkedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtkeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnth gvrhhprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeeuieejgeeufeejgfet gffgjeetfffgjefhuedvteekheejgfefgedvteduieeljeenucffohhmrghinhepphgrth gthhdrhhgvrhgvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepphgvthgvrhdrvghishgvnhhtrhgruhhtsegvnhhtvghrphhrihhsvggusgdrtg homh X-ME-Proxy: Feedback-ID: i131946ab:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 Apr 2023 10:54:25 -0400 (EDT) Message-ID: <184dc41b-7407-1bb9-7fd4-7fb35db8b993@enterprisedb.com> Date: Tue, 4 Apr 2023 16:54:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: doc: add missing "id" attributes to extension packaging page Content-Language: en-US To: Brar Piening , Alvaro Herrera , "Karl O. Pinc" Cc: Tom Lane , vignesh C , Ian Lawrence Barwick , pgsql-hackers References: <20230323093555.3icw7zetwtmtrrzu@alvherre.pgsql> From: Peter Eisentraut In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 23.03.23 20:08, Brar Piening wrote: > I've also attached the (unchanged)  make_html_ids_discoverable patch for > convenience so this email now contains two patches for postgresql > (ending with .postgresql.patch) and one patch for pgweb (ending with > .pgweb.patch). Here is my view on this: First of all, it works very nicely and is very useful. Very welcome. The XSLT implementation looks sound to me. It would be a touch better if it had some comments about which parts of the templates were copied from upstream stylesheets and which were changed. There are examples of such commenting in the existing customization layer. Also, avoid introducing whitespace differences during said copying. However, I wonder if this is the right way to approach this. I don't think we should put these link markers directly into the HTML. It feels like this is the wrong layer. For example, if you have CSS turned off, then all these # marks show up by default. It seems to me that the correct way to do this is to hook in some JavaScript that does this transformation directly on the DOM. Then we don't need to carry this presentation detail in the HTML. Moreover, it would avoid tight coupling between the website and the documentation sources. You can produce the exact same DOM, that part seems okay, just do it elsewhere. Was this approach considered? I didn't see it in the thread.