Re: Release note trimming: another modest proposal
От | Jonathan S. Katz |
---|---|
Тема | Re: Release note trimming: another modest proposal |
Дата | |
Msg-id | C0D736B2-83FE-4D25-9304-6FA52B749AAB@postgresql.org обсуждение исходный текст |
Ответ на | Re: Release note trimming: another modest proposal ("Jonathan S. Katz" <jkatz@postgresql.org>) |
Ответы |
Re: Release note trimming: another modest proposal
|
Список | pgsql-docs |
On Aug 6, 2018, at 2:05 PM, Jonathan S. Katz <jkatz@postgresql.org> wrote:On Aug 6, 2018, at 1:22 PM, Jonathan S. Katz <jkatz@postgresql.org> wrote:I can make a quick prototype of this on pgweb just to see how easy it is to get
the release notes up in it. Basically, once the archived ones are in pgweb, we
would not need to have to build them anymore.Attached is a screenshot of something real quick I drew up. I was able togenerate these notes from what was already loaded in via “docload” (whichis what happens in every release).I did manually edit the xref’s in order to have them appear more cleanly, butI should be able to script the process.To quote you earlier, yes there is a bit of nontrivial work here, but I do thinkwe have most of the tools in place to do this. What I am thinking is thefollowing:1. Add to the “docload” script to segment out the release notes and storethem in a separate table. Perform an “upsert” (i.e. check for an existingreference; if it’s there, update any content, otherwise insert).2. Perform any modifications to the content (i.e. there’s some HTML Iexplicitly removed from the generated docs).3. Display the archived docs on the page.That way in future docloads, if there are missing release notes, the scriptwould be ok as it would not remove any release notes.This strategy *should* also work with displaying current release notes on thesite, as it’s basically following what docload currently does, if we wanted togo down this patch.Once we run this for the first time with the collection of *all* release notes,we could then trim down release.sgml et al. And thus as far as I can tell, youwould not have to modify anything in the doc build process.
OK, I’ve codified Step #2 from the above, which in turn performs Step #3.
The script reads in the releases notes that are loaded in via docload, updates
the xrefs to point to other releases notes in the archive, updates the doc URLs
to point at the equivalent docs in “current,” and performs some general
cleanup on the page.
Attached is another screenshot of the end result.
To proceed, I would want to ensure we feel good about this direction. I will
also need to discuss with Magnus about how we would want to store this
in pgweb itself. And of course, test it across all the different release notes
to ensure it works.
Jonathan

Вложения
В списке pgsql-docs по дате отправления: