From: Junio C Hamano <gitster@pobox.com>
To: "D. Ben Knoble" <ben.knoble@gmail.com>
Cc: M Hickford <mirth.hickford@gmail.com>,
"brian m. carlson" <sandals@crustytoothpaste.net>,
git@vger.kernel.org
Subject: Re: [PATCH 4/5] doc: use .adoc extension for AsciiDoc files
Date: Fri, 07 Feb 2025 10:29:08 -0800 [thread overview]
Message-ID: <xmqqh655fw23.fsf@gitster.g> (raw)
In-Reply-To: <xmqqtt95fx62.fsf@gitster.g> (Junio C. Hamano's message of "Fri, 07 Feb 2025 10:05:09 -0800")
Junio C Hamano <gitster@pobox.com> writes:
> "D. Ben Knoble" <ben.knoble@gmail.com> writes:
>
>>> Do we pass SubmittingPatches (and CodingGuidelines for that matter)
>>> through AsciiDoc? They do not even have .txt suffix, so I suspect
>>> it is not.
>>
>> I don't know how (I didn't dig), but we do build and package
>> HTML-ified SubmittingPatches as both $(git
>> --html-path)/SubmittingPatches.{html,txt}. I don't see a build output
>
> I was wondering why we remove SubmittingPatches.txt with "make
> clean" there the other day. There is a Documentation/Makefile
> target to create %.txt from % applied for SubmittingPatches.
Interesting. I very much am sympathetic to the original reasoning
why Documentation/Makefile is set up this way at 049e64aa
(Documentation: convert SubmittingPatches to AsciiDoc, 2017-11-12).
Here is what its commit log message says:
Since the makefile needs a .txt extension in order to build with the
rest of the documentation, simply copy the file. Ignore the temporary
file so it doesn't get checked in accidentally, and remove it as part of
the clean process. Do this instead of renaming the file so that people
who have already linked to the documentation (who we're trying to help)
don't find their links broken. Avoid symlinking since Windows will not
like that.
One could argue that we made a lot more damage when we renamed all
the .txt files to .adoc to external links people have had forever,
but I guess SubmittingPatches is more special than say git-add.txt
or git.txt for that matter, as the latter class have preformatted
".html" copies people would link to rather than the original ".txt".
Before the "let's avoid renaming and instead copy to a temporary
.txt file to run AsciiDoc on it" commit, it seems that we kept the
file in our source tree without copying anywhere else? It is very
much understandable as the target audiences are those who want to
work on our code, so it is a fair assumption that they have local
copies at hand, without others having to give them public URLs to
read on the Web.
"CodingGuidelines" is still treated that way, which is probably what
we want to fix, by exposing it on the Web. I'd imagine that it is
sufficient to just rename it to "CodingGuidelines.adoc" without
worrying about those who "have already linked to the documentation",
but others may feel differently. And if we do decide to rename it,
we may want to rethink what we do to "SubmittingPatches" as well.
We've had ".html" versions of the document out there for very long,
so hopefully people would already have updated their links to point
them, not the one without any suffix, in which case we can stop
special casing "SubmittingPatches".
Thanks.
next prev parent reply other threads:[~2025-02-07 18:29 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-20 1:55 [PATCH 0/5] Convert AsciiDoc files to .adoc extension brian m. carlson
2025-01-20 1:55 ` [PATCH 1/5] doc: update gitignore for " brian m. carlson
2025-01-20 1:56 ` [PATCH 2/5] editorconfig: add " brian m. carlson
2025-01-20 1:56 ` [PATCH 3/5] gitattributes: mark AsciiDoc files as LF-only brian m. carlson
2025-01-20 1:56 ` [PATCH 4/5] doc: use .adoc extension for AsciiDoc files brian m. carlson
2025-01-20 20:37 ` Jean-Noël Avila
2025-01-20 22:08 ` brian m. carlson
2025-01-20 23:43 ` Junio C Hamano
2025-01-21 21:59 ` Jean-Noël Avila
2025-02-06 20:33 ` M Hickford
2025-02-06 21:14 ` Junio C Hamano
2025-02-06 23:47 ` Junio C Hamano
2025-02-07 17:51 ` D. Ben Knoble
2025-02-07 18:05 ` Junio C Hamano
2025-02-07 18:29 ` Junio C Hamano [this message]
2025-02-07 22:54 ` brian m. carlson
2025-01-20 1:56 ` [PATCH 5/5] Remove obsolete ".txt" extensions " brian m. carlson
2025-01-20 17:55 ` [PATCH 0/5] Convert AsciiDoc files to .adoc extension M Hickford
2025-01-20 20:19 ` D. Ben Knoble
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqh655fw23.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=ben.knoble@gmail.com \
--cc=git@vger.kernel.org \
--cc=mirth.hickford@gmail.com \
--cc=sandals@crustytoothpaste.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).