Re: Converting README documentation to Markdown

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Daniel Gustafsson <daniel(at)yesql(dot)se>
Cc: PostgreSQL Developers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Converting README documentation to Markdown
Date: 2024-06-28 07:38:21
Message-ID: db094f3a-2d0c-42d3-9f5a-434f0788c23c@eisentraut.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 15.05.24 14:26, Daniel Gustafsson wrote:
> Another aspect of platform/flavour was to make the markdown version easy to
> maintain for hackers writing content. Requiring the minimum amount of markup
> seems like the developer-friendly way here to keep productivity as well as
> document quality high.
>
> Most importantly though, I targeted reading the files as plain text without any
> rendering. We keep these files in text format close to the code for a reason,
> and maintaining readability as text was a north star.

I've been thinking about this some more. I think the most value here
would be to just improve the plain-text formatting, so that there are
consistent list styles, header styles, indentation, some of the
ambiguities cleared up -- much of which your 0001 patch does. You might
as well be targeting markdown-like conventions with this; they are
mostly reasonable.

I tend to think that actually converting all the README files to
README.md could be a net negative for maintainability. Because now you
are requiring everyone who potentially wants to edit those to be aware
of Markdown syntax and manually check the rendering. With things like
DocBook, if you make a mess, you get error messages from the build step.
If you make a mess in Markdown, you have to visually find it yourself.
There are many READMEs that contain nested lists and code snippets and
diagrams and such all mixed together. Getting that right in Markdown
can be quite tricky. I'm also foreseeing related messes of trailing
whitespace, spaces-vs-tab confusion, gitattributes violations, etc. It
can be a lot of effort. It's okay to do this for prominent files like
the top-level one, but I suggest that for the rest we can keep it simple
and just use plain text.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Lakhin 2024-06-28 08:00:00 Re: remaining sql/json patches
Previous Message Konstantin Knizhnik 2024-06-28 07:32:06 Re: Flush pgstats file during checkpoints