Skip to content
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

Documentation reorganization - a suggestion #256

Merged
merged 5 commits into from
May 31, 2023

Conversation

cormullion
Copy link
Contributor

This PR comprises a suggested reorganization of the documentation. My approach is probably reasonably similar to the Divio style - at least, try to keep different types of information separate, so that novices, casual users, experienced users, and package developers don't trip over material not meant for them. (I think this is probably the opposite of Images' current approach (judging from this RFC issue.)

The main thing was just to add some hierarchy to the manual, then to move as much stuff out of the docstrings as possible (cf my previous pet gripe, all that LaTeX). 😂

(I'm not too sure how you'd preview this...)

@codecov
Copy link

codecov bot commented Apr 8, 2023

Codecov Report

Patch coverage: 93.75% and no project coverage change.

Comparison is base (baedd6d) 94.34% compared to head (42adb97) 94.34%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #256   +/-   ##
=======================================
  Coverage   94.34%   94.34%           
=======================================
  Files          13       13           
  Lines        1697     1697           
=======================================
  Hits         1601     1601           
  Misses         96       96           
Impacted Files Coverage Δ
src/extrema.jl 100.00% <ø> (ø)
src/kernel.jl 100.00% <ø> (ø)
src/mapwindow.jl 87.30% <84.09%> (ø)
src/border.jl 94.56% <95.65%> (ø)
src/imfilter.jl 96.74% <98.64%> (ø)
src/specialty.jl 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

modules = [ImageFiltering, OffsetArrays, Kernel, KernelFactors, ImageFiltering.MapWindow],
format = format,
sitename = "ImageFiltering",
pages = [
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a glance of the file changes:

  1. It is recommended to preserve existing spaces for readability while adding new lines.
  2. Please remember to add .DS_Store to the .gitignore file to avoid unnecessary commits.

Pad(style::Symbol, lo::Dims{N}, hi::Tuple{}) where {N} = Pad(style, lo, ntuple(d->0,Val(N)))
Pad(style::Symbol, lo::Tuple{}, hi::Dims{N}) where {N} = Pad(style, ntuple(d->0,Val(N)), hi)
Pad(style::Symbol, lo::Dims{N}, hi::Tuple{}) where {N} = Pad(style, lo, ntuple(d -> 0, Val(N)))
Pad(style::Symbol, lo::Tuple{}, hi::Dims{N}) where {N} = Pad(style, ntuple(d -> 0, Val(N)), hi)
Copy link
Member

@RexWzh RexWzh Apr 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the commit. The following is my personal view, please fell free to correct me.

30 file changes in one commit might require more careful attention during code review. Additionally, some of these changes appear to be related to formatting strings. Perhaps we can split this into two separate changes: one for adding a new feature and another for changing the format.

Nonetheless, the file appears to be generally in good condition.

@zygmuntszpak
Copy link
Member

Many thanks for taking on this big task. I managed to build the documentation locally without any issues. There's obviously a lot to read through, but my first impression is that people will find the REPL experience much more pleasant now that you moved the LaTeX out into separate documents. The tutorial you wrote is also really nice, and in general the layout of the documentation feels like a great improvement.

One thing I notice is that imgradients now has no more meaningful docstring. It might be worth retaining some parts of the previous docstring.

@ashwanirathee
Copy link
Member

Can we please move this forward?It would be great to get this done, issa common gripe 😓

Copy link
Member

@timholy timholy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, this is huge. Thanks for doing this! I can't pretend I've read everything carefully, but here are a few things I noticed.

Overall I think we should do this. If there's stuff I've missed, we can always fix further problems later.

docs/src/filters.md Show resolved Hide resolved
docs/src/filters.md Show resolved Hide resolved
docs/src/filters.md Outdated Show resolved Hide resolved
docs/src/filters.md Show resolved Hide resolved
docs/src/filters.md Outdated Show resolved Hide resolved
docs/src/filters.md Outdated Show resolved Hide resolved
convolution = imfilter(f,reflect(w),Fill(0,w))
```

## Miscellaneous border padding options
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this section redundant with the one above?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

docs/src/index.md Outdated Show resolved Hide resolved
docs/src/kernels.md Outdated Show resolved Hide resolved
docs/src/kernels.md Outdated Show resolved Hide resolved
@timholy
Copy link
Member

timholy commented May 16, 2023

Can we please move this forward?It would be great to get this done, issa common gripe 😓

Best way to make that happen is to give it a thorough review! But you could wait until my comments above are addressed.

@timholy
Copy link
Member

timholy commented May 16, 2023

(I'm not too sure how you'd preview this...)

Would adding push_preview=true fix that? https://documenter.juliadocs.org/stable/lib/public/#Documenter.deploydocs

@cormullion
Copy link
Contributor Author

@timholy Thanks so much for the comments and review, and for taking the time... I confess I don't understand the fine details of the package, but perhaps the structure of the docs is a bit better now, and in the future will allow people to add more information in the right place.

@timholy
Copy link
Member

timholy commented May 21, 2023

When I'm back from travels I'll build this locally and give it a read-through; assuming nothing serious comes up I'll merge as-is and we can fix minor problems later. Or if anyone else wants to build it and do that for me, just let me know the verdict and we can merge more quickly.

@timholy timholy merged commit 392fe35 into JuliaImages:master May 31, 2023
@timholy
Copy link
Member

timholy commented May 31, 2023

I built it locally, and it looks awesome. Thanks ever so much, @cormullion! A huge contribution!

@cormullion
Copy link
Contributor Author

Did these docs ever get released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants