Skip to content

[zh-cn] Code-block language should be text in diagram-guide #49431

Closed
@chalin

Description

@chalin

Originally posted by @chalin in #48724 (review)

Visit the following preview doc page https://deploy-preview-48724--kubernetes-io-main-staging.netlify.app/docs/contribute/style/diagram-guide/#example-2-ingress and you'll see that the "Code block" is rendered as a mermaid diagram rather than raw code, as it is rendered currently:

image

This is because the code-block language is set to mermaid and as of Docsy 0.6.0 such code blocks are rendered as Mermaid diagrams (without the need to use {{<mermaid}}). We need to set the code-block language to text.

The same is true of content/zh-cn/docs/contribute/style/diagram-guide.md.

The issue still needs to be resolved for the zh-cn page, see https://kubernetes.io/zh-cn/docs/contribute/style/diagram-guide/#%E7%A4%BA%E4%BE%8B-2-ingress:

Image

/cc @SayakMukhopadhyay @sftim @nate-double-u

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/localizationGeneral issues or PRs related to localizationlanguage/zhIssues or PRs related to Chinese languageneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.priority/backlogHigher priority than priority/awaiting-more-evidence.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions