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 1jPsio-00084M-RW for pgsql-www@arkaria.postgresql.org; Sat, 18 Apr 2020 19:01:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPsim-0004IQ-P5 for pgsql-www@arkaria.postgresql.org; Sat, 18 Apr 2020 19:01:44 +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 1jPsim-0004II-80 for pgsql-www@lists.postgresql.org; Sat, 18 Apr 2020 19:01:44 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by makus.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1jPsif-00066f-GF for pgsql-www@lists.postgresql.org; Sat, 18 Apr 2020 19:01:43 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Type:In-Reply-To:MIME-Version:Date: Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=wZdwWEMWqESJo8wkHygD8FtgOq2b2Rc4zVMs6NlvV0o=; b=erNc7r2N7VvxITpxx/Sn6zdqoz 17ySEF+yVqqls0Ju3VnbHa5CwVWtwUQ4Era3JlSNA/iJK0sHA3lnLOrO/lQRGAKhmHOzQdfSVVHf/ ECAkKnK9myZjZYg2n/Ga3CLqVwe7scfHxTsR7HZ8FFhKskL9ix9roM5MJ53YbefhKPpu0z7rNq1X+ 0rkVO3h4efqSmMqwRhkXKoZhotUspz5zTfhT7zQv5fKcVy3gMAaGyDmWJiOJTS+GiC79ncthJsugB 4bGGl+KYDREK3JYlqU8xzM4XZCFvZiPyceUPWAnLQXu80KrN0xi268kBaK1K/lV4RbrU+hoSnuWTa BjUwrklw==; Received: from pool-173-56-10-231.nycmny.fios.verizon.net ([173.56.10.231] helo=Ph33rHippo.local) by meldrar.postgresql.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jPsia-00021p-K2; Sat, 18 Apr 2020 19:01:36 +0000 Subject: Re: Website patch request: documentation style update To: Tom Lane Cc: pgsql-www@lists.postgresql.org References: <31464.1587156281@sss.pgh.pa.us> <11946.1587171073@sss.pgh.pa.us> <887f49f7-42e0-5a80-9962-4a0a69daf7ec@postgresql.org> <9307.1587235619@sss.pgh.pa.us> From: "Jonathan S. Katz" Autocrypt: addr=jkatz@postgresql.org; keydata= mQINBFtShwABEAC7PNHDUOTYuifpUCk23KqfxdQQkn4nkoxOXRK0+rAj36FiwqGB4TJFuOVZ sDFAEiSlC8Jt4y5Cs7B5tetT8JNd2cs6zp/udMJJDz9d65O9PDpdlMgAmIiTzpLlSdx8FG56 DTksaDv1d8j3cTJPSE4/fWSxqzA7o3Y9UuL7atZPrzfImgpRKs0of7elIHwOa8GucjyhYqcR h60wFBJc2KXqQdDYRTZy43DSnY/0VNc0omiH355fustvpm+m5HjD3w7qZyfN3fpKJpnX1LCF f3MnPHaDGITIYGRCBXvf0UqUtD6OEVWPv2C2gyqWMIpWmZTOgDufltKyIByKBoS9x0PlFkij 04X3KODCngt+N8Ssc9OICc6QSxhjoP48PYPdmiTmkrGuf0LX084wj1xeo1NX7XxZK39F6dTJ DhsIiW0sNS0xMxQHLHG9VLbPjx3SANQBh6BuryPz5ZupW9/TIDmkvprtU/oXfKgtfYm3fxmk EctxbWrEPsFTFPyuMqQu6l+xyQv0s1VLZfjNWaua6H1/gGoIt6kRnn5qMXDVVpijuWkHbv7G ngaQMd258UrrOEHnnjzhQ7jxMWV9D+emxbAtlIxnYvCWlV4IwAQhEHfvudqYaIY3hNWrvQ6H GB2KXoTZYN9g5djm14/5nj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TbH2OrMWIRfUdUCH1Djbuo65svhNj7FNsQVYzHDI+Nd1I/LOBoPc3UorRMF2M4JV kUR7skOHWUbPTSNUr7qc14NSMY3PKjGeVGAsBVHBPvmRx/Ss2tW/TpJWpxg4pmquFQSXuaYh Yf4FN8Sxy320pcr+FqN8AhZkYJcNY82OTtR5VEKRC/mYcyq61qXIKqngydn79bJjGxHipxyF FmEC Message-ID: <3f8560a6-9044-bdb8-6b3b-68842570db18@postgresql.org> Date: Sat, 18 Apr 2020 15:01:27 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <9307.1587235619@sss.pgh.pa.us> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="KgIQ8NNKrBdkerwo7JjAsWmq0BRs56SI9" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --KgIQ8NNKrBdkerwo7JjAsWmq0BRs56SI9 Content-Type: multipart/mixed; boundary="ABhOlbA9nbAZKNlTjca0kW5bDuOC5LImw" --ABhOlbA9nbAZKNlTjca0kW5bDuOC5LImw Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 4/18/20 2:46 PM, Tom Lane wrote: > "Jonathan S. Katz" writes: >> I went ahead and tweaked it a bit (attached) to give a little bit of >> space between the lead line + the table edge (example screenshot >> attached). I've attached the update patch. I tested in Chrome, FF, >> Safari, and varied my window size. >=20 > Sounds good. I have no particular allegiance to the settings I used. Thanks. Pushed up[1]. >> I then started testing on my phone, and noticed that the font is small= er >> in the tables than elsewhere. I believe this was done initially at fir= st >> to manage the old table design, so perhaps this is an opportunity to >> bump the font up on it. >=20 > I'd noticed that the website style wants to render function signatures > in a very cramped way, with less inter-word spacing than normal; is tha= t > another aspect of this? I believe that's one of the trademarks of the monospace font family, but we may be able to adjust it. > +1 for undoing it, at least in cells that are > marked functableentry. Great, I'll experiment and see what I can come up with. I'm not sure how much more can be done in DocBook (and if need be I'll opine again on the other thread) but I will note that the HTML that is generated is a bit odd to deal with. For example (simplifying it a bit): enum_first ( anyenum ) =E2=86=92 any= enum
Returns the first value of the input enum type.
enum_first(null::rainbow) =E2=86=92 red A few things to note: 1. The "(" seem to not be included in the "code" blocks. If they are all together, that may help with some of the cramped/spacingness, as I can uniformly apply rules. 2. The "
" in the "" block is definitely an anti-pattern. The way we were generating it before, with the multiple rowspan/colspan is "more correct" for getting that formatting, and with the the different classes we're applying, we could leverage that to remove the borders, etc. on the web view. I don't know how that would take for the PDF view. I do like the direction that this is heading, I think it's an improvement since v1! Thanks, Jonathan [1] https://www.postgresql.org/docs/devel/functions-enum.html --ABhOlbA9nbAZKNlTjca0kW5bDuOC5LImw-- --KgIQ8NNKrBdkerwo7JjAsWmq0BRs56SI9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE+oS2la8r95ogZD/x8QSccp8cZScFAl6bTogACgkQ8QSccp8c ZSei4g/9H+c9c8axKpf2rXuEsFzdYSEVmXsxzHe/2+yPQva9FjKPNyn7rQk6oZua /YnvaWXFidNtYwzIj0D+gBpr5FIharA0jUGQDallYJPhV/Xs376IHW8gebDJW8qh 5xmWk0t5I0c6RmLeh2hK17IwV3FUTuO+MRHlYD2bhhbEWa7NEaXr5WHHbwPJj/oa Xh5HhBg0ngCD2kMy3aoB+6cStJ3zqxD8WqAU5kFw/dyXMP16mroQ30n2Mizzcj7g 8iyKTpjO2J0QiGt4DI263Ah2b0CjTWDlSPAyJkmdp0lwwrMKa87LgWRuh6HdigRg j5y9qlNeksPP1lTuH6gM3mijGIfsJZOpspUvI6j6EXHnAVvDWA6pC1eExRSbWweW pbCUw7xRP5k40sOJj6WuAKHiV0HSPjcRbAnKBm3eb+Rx1T8g1cKf71gg6etgIbo2 LkWQ3Jb30Cv6KSsjSc8E0NNW0ioNmvK7ayWHCI5tKt6rKAi7HOHnNfBGyC3BwwB4 uJ7SRiuneZ37spnNRX0gfVkdvWjOMiI9hYM+LCvU8x8194h6SF7iJcKkVI0n8Wsj r9m0HpueqHxIL2k09GbMx0GyC/pM/3etw4xrX1RbZ16kUGksjDGb56GPdy8KqeIL t9R9xha+UMYUKIXNPeWddf29Xyqnw0ghRpg9ID5enz5kMDfcVLg= =V+KE -----END PGP SIGNATURE----- --KgIQ8NNKrBdkerwo7JjAsWmq0BRs56SI9--