Skip to content

doc: link to main entry point for modules documentation is not working and various module sections are not recognized as headers #27209

Closed
@thepudds

Description

@thepudds

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

Go 1.11 doc at golang.org:

https://golang.org/doc/go1.11

Does this issue reproduce with the latest release?

Yes.

Issue

Clicking on the modules link in the release notes (where the text is new concept called “modules,”) does not take you to the modules documentation because the fragment identifier does not exist any longer on the go command documentation page:

https://golang.org/cmd/go/#hdr-Modules__module_versions__and_more

If you look at the sections present in the HTML documentation at https://golang.org/cmd/go, there are various sections that are not being treated as headers (including they don't show up in the table of contents, and they are not formatted as headers in the main body of the documentation).

'Bad' sections include:

  • The go.mod file
  • Edit go.mod from tools or scripts
  • Modules, module versions, and more

Interestingly, the documentation on tip.golang.org seems to not have this issue. For example, this works:

https://tip.golang.org/cmd/go/#hdr-Modules__module_versions__and_more

Perhaps some variation or re-occurrence of #26938 or similar...

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions