New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Express sizes in more human-readable form? #2272
Comments
Yeah, absolutely. I was just too lazy to implement it 🙂 |
The only thing is that there is a bit of range to the values, so I think it should pick the appropriate unit based on the order of magnitude (don't need to worry about anything other than |
I would be happy to contribute. @mortenpi Can you guide me, what we want to achieve(display in kb, mb, etc.) and where should I start looking? |
@Hetarth02 The relevant line of code should be here: Documenter.jl/src/html/HTMLWriter.jl Lines 1771 to 1776 in 5dafb64
And as far as what we want to achieve: make sure that it prints the file sizes in |
|
That probably needs to be special cased though. I'm using Documenter.jl/src/html/HTMLWriter.jl Line 524 in 5dafb64
|
Thanks! |
Congratulations on Documenter 1.0 - I've been using it without issues for various packages. It's awesome!
I think that this output:
could be made better if the "bytes" were converted to something more familiar. These days I'd be happy with MB, but KB could be OK. And perhaps it could be rounded to the nearest sensible amount, the precision here seems unnecessary (and we'd avoid the Kibibytes versus Kilobytes issue too).
The text was updated successfully, but these errors were encountered: