Skip to content

Add links to docs in default results output #2978

@Danack

Description

@Danack

Trying to find the docs for some errors is harder than ideal, as examples are showing up in preference to the docs.

e.g. Searching for php psalm MixedAssignment does not include the Psalm docs in the first results, but does include multiple example snippets like: https://psalm.dev/r/34544e24dd

I needed to explicitly search under the docs directory with "MixedAssignment site:https://psalm.dev/docs/" to be able to find the docs.

Any way to improve the discoverability of the docs would be great.

I guess either by excluding the examples from googles indexing, or possibly chucking them under a different sub-domain (, as it could be possible that google is ranking them so highly as they are on the same domain as the main site) would be possible improvements.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions