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

Only the first one has color highlighting in case of multiple methods #1547

Closed
ShuhuaGao opened this issue Mar 11, 2021 · 4 comments
Closed

Comments

@ShuhuaGao
Copy link

See the following example.

"""
    dummy(x::Integer, y::AbstractVector{<:AbstractFloat}, z::String)::Bool

A dummy function to reproduce the issue.
"""
function dummy(x::Integer, y::AbstractVector{<:AbstractFloat}, z::String)::Bool end

"""
    dummy(x::Integer, y::AbstractVector{<:AbstractFloat})::Bool

A dummy function to reproduce the issue.
"""
function dummy(x::Integer, y::AbstractVector{<:AbstractFloat})::Bool end

In the generated HTML by ```@docs dummy ``` only the first dummy method is coloured properly.
image

The same issue can also be noticed in the screenshot present in #1523.

Version:

[e30172f5] Documenter v0.26.3
@fredrikekre
Copy link
Member

Looks like perhaps #980 didnt't cover this case? I thought it would do the highlighting on each docstring rather than the combined one (as happens now IIUC)?

@ShuhuaGao
Copy link
Author

No highlighting in my test. Could you reproduce the above issue?

@mortenpi
Copy link
Member

Yep, can confirm that this is an issue.

@odow
Copy link
Collaborator

odow commented Nov 1, 2023

Closing as a duplicate of #1101

@odow odow closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants