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

[PATCH 1/5] doc: update gitignore for .adoc extension

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Jan 20, 2025, 01:55 UTC
Message-ID
<20250120015603.1980991-2-sandals@crustytoothpaste.net>
In-Reply-To
<20250120015603.1980991-1-sandals@crustytoothpaste.net>

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.

Instead, in a future commit, we're going to move to using the more common ".adoc" extension for these files, which many editors intrinsically recognize as an AsciiDoc file. To avoid contributors accidentally checking in generated files, ignore the new extension for generated files in the documentation .gitignore files.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
---
 Documentation/.gitignore           | 4 ++++
 Documentation/technical/.gitignore | 1 +
 2 files changed, 5 insertions(+)
diff --git a/Documentation/.gitignore b/Documentation/.gitignore
index 9f4bb3c4bf..abce806398 100644
--- a/Documentation/.gitignore
+++ b/Documentation/.gitignore
@@ -7,10 +7,14 @@
 git.info
 gitman.info
 howto-index.txt
+howto-index.adoc
 doc.dep
 cmds-*.txt
+cmds-*.adoc
 mergetools-*.txt
+mergetools-*.adoc
 SubmittingPatches.txt
+SubmittingPatches.adoc
 tmp-doc-diff/
 tmp-meson-diff/
 GIT-ASCIIDOCFLAGS
diff --git a/Documentation/technical/.gitignore b/Documentation/technical/.gitignore
index 8aa891daee..3caef14a93 100644
--- a/Documentation/technical/.gitignore
+++ b/Documentation/technical/.gitignore
@@ -1 +1,2 @@
 api-index.txt
+api-index.adoc
Previous: brian m. carlsonNext: brian m. carlson
Message 4 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.