Skip to content

Improve KEP layout: hyperlink to internal SIG pages #690

@TineoC

Description

@TineoC

Currently, the SIG names on KEP pages (e.g., https://www.kubernetes.dev/resources/keps/19/) link to external GitHub repositories.

Once PR #654 (which improves the SIGs and community groups directory) is merged, we should update the KEP layout to hyperlink to the relevant internal SIG sub-page if it exists.

Proposed Changes

In layouts/keps/single.html, update the SIG linking logic:

  • From: https://github.com/kubernetes/community/tree/master/{{ .Params.owningSig }}
  • To: Internal path, e.g., /community/community-groups/sigs/{{ strings.TrimPrefix "sig-" .Params.owningSig }}/ (exact path depends on the final structure of PR Render community groups info using content adapter #654).

We should also do this for participatingSigs.

Implementation Detail

We can use Hugo's .Site.GetPage to check if the internal page exists before linking to it, falling back to the GitHub link if not found.

Metadata

Metadata

Assignees

No one assigned

    Labels

    sig/uiCategorizes an issue or PR as relevant to SIG UI.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions