Closed godlygeek closed 7 months ago
https://gist.github.com/godlygeek/e3ab347806010596cab9784ccc33f1a8 shows the memray.1 that's generated by running make -C docs man
from the repo root (assuming that a virtualenv has been activated and pip install -r requirements-docs.txt
has been run to install the docs generation dependencies).
@alexmyczko Can you check if that man page meets your needs? It's more informative than what you propose in #523 and it shouldn't require too much more work to keep up to date.
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
d491065
) 92.37% compared to head (c937da0
) 92.32%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Should we exercise this in CI in some way? At least to ensure that the manual page can be generated and isn't empty for example.
Should we exercise this in CI in some way?
Yes, let's.
At least to ensure that the manual page can be generated and isn't empty for example.
I'll make sure it's generated. I'm not gonna check for emptiness - we don't do that for the HTML output, so doing it for the man output seems superflous. But I will update make docs
to build the man page, and CI already tests that make docs
succeeds.
Let's not worry about the "empty output" case unless we ever find a case where Sphinx generates an empty file and returns a success rcode to us. 😃
This man page will contain a small bit of prose explaining what Memray is and where to find the full documentation, followed by CLI usage information scraped from the
--help
of each of our subcommands. Distros can build the man page for any given version to include in distro packages of Memray.