Skip to content

Anchor for version config option broken on config site #4665

@calebcartwright

Description

@calebcartwright

The config documentation website supports anchors for the config options to support directly linking to an option, e.g. https://rust-lang.github.io/rustfmt/?version=v1.4.32&search=#trailing_comma as well as a query parameter, ?version that supports specifying the version of the config documentation to show (more info on config versioning in #4664).

However, there is also a config option named version but the anchor for this option does not work, presumably due to the conflicting version usages and how we're handling query parameters. Not sure what the best fix is, but would be good to be able to fix the anchor, even if that means changing how we deal with query params (including potentially renaming params if needed)

https://github.com/rust-lang/rustfmt/blob/v1.4.32/Configurations.md#version
(can also be found directly above https://rust-lang.github.io/rustfmt/?version=v1.4.32&search=#where_single_line)

Metadata

Metadata

Assignees

No one assigned

    Labels

    1x-backport:pendingFixed/resolved in source but not yet backported to a 1x branch and releaseA-configArea: configurationE-help-wantedCall for participation: help is requested to fix this issuegood first issueIssues up for grabs, also good candidates for new rustfmt contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions