Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Enhancement Proposal: Improve Code Block Language Specifiers Across Documentation

Open
#6,526 5 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
58/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Quiet
Tech stack
bash, go, markdown, yaml
Domain
documentation

Research direction

Read the contributor's guide first, then audit the named blog files, the code-samples/ directory, and other Markdown files under docs/. Check each fenced code block against the appropriate language and the recommended consistent names such as go, bash, and yaml. Done means the documentation sources have no missing or inconsistent language specifiers.

Written by the indexing model from the issue text.

Description

triage/accepted

Background & Validation:
Several documentation files in the repository—including blog articles, concept guides, and code samples—contain fenced code blocks that do not specify their language, or use inconsistent language tags (such as missing specifiers for go, bash, yaml, etc.). This issue appears commonly in:

The Knative docs contributor's guide recommends correct language specifiers for code blocks, but enforcement is inconsistent.


Proposed Enhancement
  • Audit all documentation sources (docs/, code-samples/, and relevant blog articles).
  • Update each markdown code block to specify the appropriate language (use “go”, “bash”, “yaml”, etc.).
  • Use consistent names (e.g., always “bash” for shell scripts, “go” for Go code, “yaml” for manifests).
  • Reference: MkDocs Material supported languages.

Benefits
  • Enables syntax highlighting and improves readability for contributors and users.
  • Supports better onboarding—new contributors can more easily read and copy-paste sample code.
  • Aligns with markdown documentation best practices and the Knative docs style guide.

References

Dominant language
HTML
Stars
5.1k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from knative/docs

All issues in knative/docs

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.