Skip to content

Recognize every port's link syntax in the capability directory #231

Closed
9 of 9 issues completed
Closed

Description

@tony

Summary

The "What is on here" capability directory on a type page, with its guidance beside chips of the members it covers, renders only for TypeScript, Java, C#, Rust and Go. groupDirectory recognizes a reference only in four link syntaxes (REFERENCE: rustdoc [`name`], C# <see cref>, Javadoc and TSDoc {@link}, and Go [Name]), so a correctly shaped directory in any other port's doc comment falls back to plain prose.

Motivation

On libtmux.org the Server pages of Java and TypeScript draw the directory (ApiProse.astro), while the Server pages of PowerShell, Elixir, Scala, Kotlin, Swift, C++, Julia, Lua, Ruby and Python draw none, although nine of them already open their description with a "What is on here" section. A reader of those ports gets a long paragraph where the other ports get a scannable map of the type.

Proposal

  • Extend REFERENCE with each remaining port's own doc-comment reference syntax, as its extractor hands it to the shell: DocC ``Symbol``, Elixir `fun/arity` and `Module.fun/arity`, KDoc [name], Scaladoc [[name]], Doxygen \ref and @ref, YARD {name}, Julia [`name`](@ref), the LuaLS and PowerShell help forms, and Sphinx roles such as :meth:`name` for Python.
  • Keep the shape rule unchanged: three or more bold-led guidance paragraphs, each followed by a paragraph or a Label: ... list holding only references.
  • Add tests per syntax that fail without its pattern, and a test that prose mixing guidance and references still renders as prose.

References

  • Each port's own issue to restructure its Server doc comment into the directory shape links back here.

Activity

  1. added a commit that references this issue on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions