FILES section for man pages #29557

issue BebeSparkelSparkel opened this issue on March 4, 2024
  1. BebeSparkelSparkel commented at 6:30 PM on March 4, 2024: none

    bitcoind and bitcoin-qt have a lot of files and it would be very helpful to have a FILES section, like most man pages have, that lists the files and directories with a short explanation of their purpose.

    bitcoin-wallet should have the default wallet directory listed in the FILES section.

  2. fanquake added the label Docs on Mar 5, 2024
  3. fanquake commented at 10:43 AM on March 5, 2024: member

    Note that we currently have doc/files.md, which would be a starting point for something like this.

  4. willcl-ark commented at 1:41 PM on March 7, 2024: member

    I was thinking about this a little earlier and I'm not sure there is a single approach that I particularly like that I could think of. The issue I wanted to avoid was having manpages getting out of sync with doc/files.md (and with the binaries themselves).

    This gives us a few options:

    1. Have the binaries' --help page output a files section to be parsed by help2man (lots of cpp changes needed. Not worth it IMO)
    2. We could change doc/files.md to use a particular markdown format which could be parsed by a tool like ronn, which can parse markdown into roff, then have a conversion take place and include that file into the help2man process. This markdown would look something like (the files section) here.
    3. We could just write the raw roff (looks like this), but then keeping things in sync becomes a pain without writing a test or something.
    4. Probably other ways I didn't consider...

    Overall I think it's not worth the maintenance.

    IMO we could add a FILES section with the default datadir and wallet dir, and reference doc/files.md file which is both in the source distribution and on github (but not in the binary distributions-- perhaps this could be changed?)

  5. willcl-ark commented at 2:39 PM on October 21, 2025: member

    This issue hasn’t attracted much interest from other contributors in quite some time.

    Given that, it doesn’t seem important enough to keep open indefinitely. I’m going to close it for now due to lack of activity, but pull requests or renewed discussion are always welcome.

    Comment here if you think this shoudl be re-opened.

  6. willcl-ark closed this on Oct 21, 2025


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me