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

Re: [PATCH 1/2] bitmap-format.txt: fix some formatting issues

From
Abhradeep Chakraborty <chakrabortyabhradeep79@gmail.com>
Date
Jun 7, 2022, 10:25 UTC
Message-ID
<20220607102504.2243-1-chakrabortyabhradeep79@gmail.com>
In-Reply-To
<xmqqsfohbxbp.fsf@gitster.g>
Junio C Hamano <gitster@pobox.com> wrote:
> Identify those who may have input with "git log --no-merges" and add
> them here, perhaps?

Thanks, I hopefully cc'd all the people who can give some input about the patch except Peff. I got to know that he took a break so I decided not to cc him (will surely do if you say). I would love to hear from other people who has knowledge on asciidoc.

I previously informed Taylor and Kaartic about the patch but forgot to cc them :P

Another thing to note that the checksum that I included in the last commit is suggested by Taylor himself. I was having problem to understand some portion of `load_bitmap_header()` (because I wasn't aware of the trailing checksum) when he cleared my doubt by saying that a trailer checksum exists and also suggested to make a PR addressing that -

> I'm glad that it was helpful! If you think others may be confused by the same, feel free to write a patch modifying Documentation/technical/bitmap-format.txt to point out the trailing checksum.
Junio wrote -
> Are we missing another step that must come much earlier than this
> patch?  It seems to me that Documentation/Makefile does not even
> consider that we should feed this file to AsciiDoc.

I also think the same. At first, I thought this is intentional. When I ran `make doc` (to test the resulting html file), it didn't generate any html file for bitmap-format.txt. But thankfully there is an online asciidoc editor[1] where you can check the resulting html file. You also can check the resulting html by copy-pasting the content[2] of my github branch bitmap-format file to that editor.

Will write a patch for it.
The current broken page can be found at - https://git-scm.com/docs/bitmap-format
> Do these blank lines hurt very badly how the end-result is formatted
> in HTML?  Does the extra indentation between the line with "The
> following flags are supported" on it and the two bullet items in the
> header make the output better in significant way?

Answering to the first question - yes, those are necessary to improve the html readability (you can verify that by including and removing the blank lines in the editor and obsering the changes). This ensures that all the related paragraphes are contained in the same block.

The extra identations are not necessary. I add those because I thought that these would be visually better for html page readers. If you think it does the opposite, I can remove those.

I tried to use two bullets as less as possible ( In most cases, nested lists came under <pre> blocks, so I didn't have to use two bullets). But in one case, I had to use it for nested lists (Try the editor to see the rendered output).

Show 5 quoted lines
> These changes make the input text much harder to read, and are not
> very welcome, so unless they are part of "fixing generated HTML is
> broken", please omit them.  As evidenced by the lack of HTML output
> in the build system, a lot more folks read this document in text than
> in HTML, and readability of the source matters.

Okay, I will then remove those extra indentations. But besides that, all are necessary.

I admit that readability of source matters but I think html pages are also important (even more important) for people who don't have the source codes and want to know the git internals.

Thanks :)

[1] https://asciidoclive.com/edit/scratch/1 [2] https://github.com/Abhra303/git/blob/fix-doc-formatting/Documentation/technical/bitmap-format.txt

Previous: Junio C HamanoNext: Abhradeep Chakraborty via GitGitGadget
Message 5 of 37 in “bitmap-format.txt: fix some formatting issues and include checksum info”
  1. 0/2 bitmap-format.txt: fix some formatting issues and include checksum infoAbhradeep Chakraborty via GitGitGadget, Jun 2, 2022
  2. 2/2 bitmap-format.txt: add information for trailing checksumAbhradeep Chakraborty via GitGitGadget, Jun 2, 2022
  3. 1/2 bitmap-format.txt: fix some formatting issuesAbhradeep Chakraborty via GitGitGadget, Jun 2, 2022
  4. Junio C HamanoJun 6, 2022
  5. Abhradeep ChakrabortyJun 7, 2022
  6. 0/3 bitmap-format.txt: fix some formatting issues and include checksum infoAbhradeep Chakraborty via GitGitGadget, Jun 7, 2022
  7. 3/3 bitmap-format.txt: add information for trailing checksumAbhradeep Chakraborty via GitGitGadget, Jun 7, 2022
  8. Taylor BlauJun 7, 2022
  9. Abhradeep ChakrabortyJun 8, 2022
  10. 2/3 bitmap-format.txt: fix some formatting issuesAbhradeep Chakraborty via GitGitGadget, Jun 7, 2022
  11. Taylor BlauJun 7, 2022
  12. Junio C HamanoJun 7, 2022
  13. Abhradeep ChakrabortyJun 8, 2022
  14. Abhradeep ChakrabortyJun 8, 2022
  15. 1/3 bitmap-format.txt: feed the file to asciidoc to generate htmlAbhradeep Chakraborty via GitGitGadget, Jun 7, 2022
  16. Junio C HamanoJun 7, 2022
  17. Abhradeep ChakrabortyJun 8, 2022
  18. Taylor BlauJun 7, 2022
  19. Junio C HamanoJun 7, 2022
  20. Taylor BlauJun 7, 2022
  21. Junio C HamanoJun 7, 2022
  22. Abhradeep ChakrabortyJun 8, 2022
  23. 0/3 bitmap-format.txt: fix some formatting issues and include checksum infoAbhradeep Chakraborty via GitGitGadget, Jun 10, 2022
  24. 1/3 bitmap-format.txt: feed the file to asciidoc to generate htmlAbhradeep Chakraborty via GitGitGadget, Jun 10, 2022
  25. 2/3 bitmap-format.txt: fix some formatting issuesAbhradeep Chakraborty via GitGitGadget, Jun 10, 2022
  26. Taylor BlauJun 15, 2022
  27. Abhradeep ChakrabortyJun 15, 2022
  28. 3/3 bitmap-format.txt: add information for trailing checksumAbhradeep Chakraborty via GitGitGadget, Jun 10, 2022
  29. Junio C HamanoJun 10, 2022
  30. Taylor BlauJun 15, 2022
  31. Junio C HamanoJun 15, 2022
  32. 0/3 bitmap-format.txt: fix some formatting issues and include checksum infoAbhradeep Chakraborty via GitGitGadget, Jun 16, 2022
  33. 1/3 bitmap-format.txt: feed the file to asciidoc to generate htmlAbhradeep Chakraborty via GitGitGadget, Jun 16, 2022
  34. 2/3 bitmap-format.txt: fix some formatting issuesAbhradeep Chakraborty via GitGitGadget, Jun 16, 2022
  35. 3/3 bitmap-format.txt: add information for trailing checksumAbhradeep Chakraborty via GitGitGadget, Jun 16, 2022
  36. Junio C HamanoJun 16, 2022
  37. Taylor BlauJun 16, 2022

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.