git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 4/5] doc: use .adoc extension for AsciiDoc files

From
Jean-Noël Avila <jn.avila@free.fr>
Date
Jan 20, 2025, 20:37 UTC
Message-ID
<46cec27d-ee66-4dfb-8271-953b032d0b2f@free.fr>
In-Reply-To
<20250120015603.1980991-5-sandals@crustytoothpaste.net>
Le 20/01/2025 à 02:56, brian m. carlson a écrit :
Show 15 quoted lines
> We presently use the ".txt" extension for our AsciiDoc files.  While not
> wrong, most editors do not associate this extension with AsciiDoc,
> meaning that contributors don't get automatic editor functionality that
> could be useful, such as syntax highlighting and prose linting.
> 
> It is much more common to use the ".adoc" extension for AsciiDoc files,
> since this helps editors automatically detect files and also allows
> various forges to provide rich (HTML-like) rendering.  Let's do that
> here, renaming all of the files and updating the includes where
> relevant.  Adjust the various build scripts and makefiles to use the new
> extension as well.
> 
> Note that this should not result in any user-visible changes to the
> documentation.
> 

Maybe for users of the end product of the documentations compiled here, but there are other users who use the source files and this change breaks their workflow pretty bad. I am one of those users for the git-scm.com website and the manpage translation projects.

If the purpose of this change is clear, the breakage of backward compatibility is an issue. When documentation writers know how to turn on the asciidoc mode in their editor, they surely know how to enable it on .txt files in this specifically in this directory.

For instance in emacs, create a `.dir-locals.el` in the Documentation directory with the following line:

((auto-mode-alist . (("\\.txt\\'" .  adoc-mode))))

Maybe a smoother transition could be performed by creating links between txt and adoc files.

JN
Previous: brian m. carlsonNext: brian m. carlson
Message 6 of 19 in “Convert AsciiDoc files to .adoc extension”
  1. 0/5 Convert AsciiDoc files to .adoc extensionbrian m. carlson, Jan 20, 2025
  2. 2/5 editorconfig: add .adoc extensionbrian m. carlson, Jan 20, 2025
  3. 3/5 gitattributes: mark AsciiDoc files as LF-onlybrian m. carlson, Jan 20, 2025
  4. 1/5 doc: update gitignore for .adoc extensionbrian m. carlson, Jan 20, 2025
  5. 4/5 doc: use .adoc extension for AsciiDoc filesbrian m. carlson, Jan 20, 2025
  6. Jean-Noël AvilaJan 20, 2025
  7. brian m. carlsonJan 20, 2025
  8. Junio C HamanoJan 20, 2025
  9. Jean-Noël AvilaJan 21, 2025
  10. M HickfordFeb 6, 2025
  11. Junio C HamanoFeb 6, 2025
  12. Junio C HamanoFeb 6, 2025
  13. D. Ben KnobleFeb 7, 2025
  14. Junio C HamanoFeb 7, 2025
  15. Junio C HamanoFeb 7, 2025
  16. brian m. carlsonFeb 7, 2025
  17. 5/5 Remove obsolete ".txt" extensions for AsciiDoc filesbrian m. carlson, Jan 20, 2025
  18. M HickfordJan 20, 2025
  19. D. Ben KnobleJan 20, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.