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

[PATCH 0/4] doc-diff: support diffing from/to AsciiDoc(tor)

From
MÅMartin Ågren <martin.agren@gmail.com>
Date
Mar 17, 2019, 18:35 UTC
Message-ID
<cover.1552838239.git.martin.agren@gmail.com>
I've taught `doc-diff` a few new knobs to support usage like
  $ ./doc-diff --from-asciidoc --to-asciidoctor HEAD HEAD

and I don't think I've messed it up too badly in the process. I'm open to the idea that this might not be interesting to a whole lot of people. But I have made some progress on fixing up Asciidoctor *and* AsciiDoc issues using this, and once the output of the above command is empty -- which might not be too far off -- it could be interesting to try and keep it that way using a bit of automation around these switches.

While using/testing these patches, I've made some progress on the rendering of the headers and footers in Asciidoctor [1], so the `--cut-header-footer` switch that I'm adding in the final patch might hopefully not be necessary for too long. But we'd still need a `--cut-footer` switch -- at least I would, on my system [2]. If this series is considered generally sane, I'd be happy to rework the final patch to `--cut-header` if that's preferred.

Patch 1 has a minor purely-textual merge conflict with ma/asciidoctor-fixes.

[1] https://public-inbox.org/git/20190317144747.2418514-1-martin.agren@gmail.com/
[2] After [1], the date in the footer is still formatted differently
    here. It might be a locale thing, and I tend to shy away from even
    trying to understand those. :-/
Martin Ågren (4):
  Doc: auto-detect changed build flags
  doc-diff: let `render_tree()` take an explicit directory name
  doc-diff: support diffing from/to AsciiDoc(tor)
  doc-diff: add `--cut-header-footer`
 Documentation/.gitignore |  1 +
 Documentation/Makefile   | 23 ++++++++---
 Documentation/doc-diff   | 86 +++++++++++++++++++++++++++++++++-------
 3 files changed, 90 insertions(+), 20 deletions(-)
-- 
2.21.0
Next: Martin Ågren
Message 1 of 8 in “doc-diff: support diffing from/to AsciiDoc(tor)”
  1. 0/4 doc-diff: support diffing from/to AsciiDoc(tor)Martin Ågren, Mar 17, 2019
  2. 1/4 Doc: auto-detect changed build flagsMartin Ågren, Mar 17, 2019
  3. 2/4 doc-diff: let `render_tree()` take an explicit directory nameMartin Ågren, Mar 17, 2019
  4. 3/4 doc-diff: support diffing from/to AsciiDoc(tor)Martin Ågren, Mar 17, 2019
  5. 4/4 doc-diff: add `--cut-header-footer`Martin Ågren, Mar 17, 2019
  6. Junio C HamanoMar 18, 2019
  7. Jeff KingMar 19, 2019
  8. Martin ÅgrenMar 20, 2019

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.