Skip to content

docs(website): convert TOML config examples to YAML#25163

Merged
pront merged 6 commits intomasterfrom
pavlos/convert-toml-to-yaml-website
Apr 13, 2026
Merged

docs(website): convert TOML config examples to YAML#25163
pront merged 6 commits intomasterfrom
pavlos/convert-toml-to-yaml-website

Conversation

@pront
Copy link
Copy Markdown
Member

@pront pront commented Apr 10, 2026

Summary

Convert all TOML-only configuration examples across the Vector website to YAML
and add explicit recommendations for YAML as the default configuration format.

Motivation:

  • Consistency: YAML has been Vector's default format since v0.34, yet most
    website examples were still written in TOML. This creates a confusing
    experience for new users.
  • Encourage YAML adoption: By presenting all examples in YAML and adding
    explicit recommendations, we guide users toward the format that aligns with
    the broader ecosystem (Kubernetes, Helm, etc.).
  • LLM tooling: LLMs and AI-assisted development tools work better when
    documentation is consistent. Having a single canonical format across all
    examples reduces ambiguity and improves the quality of AI-generated Vector
    configurations.

Changes:

  • Converted 63 files: core docs, guides, blog posts, and highlight pages
  • Updated prose references from .toml to .yaml
  • Added "we recommend YAML" language to pages that describe multi-format support
  • Updated the outdated 2020 highlight that called TOML the default format
  • Left intentional TOML in the tabbed config reference (_index.md) untouched

Vector configuration

N/A (docs-only change)

How did you test this PR?

Visual inspection of converted YAML blocks for correctness.

Change Type

  • Bug fix
  • New feature
  • Dependencies
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on our guidelines.
  • No. A maintainer will apply the no-changelog label to this PR.

🤖 Generated with Claude Code

YAML is Vector's recommended and default configuration format. This
converts all TOML-only config examples in website docs, guides, blog
posts, and highlight files to YAML for consistency.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pront pront added domain: config Anything related to configuring Vector domain: external docs Anything related to Vector's external, public documentation no-changelog Changes in this PR do not need user-facing explanations in the release changelog labels Apr 10, 2026
@pront pront marked this pull request as ready for review April 10, 2026 15:24
@pront pront requested review from a team as code owners April 10, 2026 15:24
Update docs that mention TOML/YAML/JSON support to explicitly
recommend YAML as the default configuration format.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions bot removed the domain: external docs Anything related to Vector's external, public documentation label Apr 10, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 93dafba727

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

pront and others added 4 commits April 10, 2026 11:33
Instructs AI tools to generate Vector config in YAML unless
explicitly asked otherwise.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix invalid YAML escape in template-syntax.md (use single quotes)
- Fix `transform:` typo to `transforms:` in 0-25-0-upgrade-guide.md
- Update remaining `vector.toml` prose references to `vector.yaml`
- Remove anachronistic version reference from 2020 highlight

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Add tabbed config format picker to all examples so users can toggle
between YAML and TOML. Defaults to YAML.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@pront pront enabled auto-merge April 13, 2026 16:08
@pront pront added this pull request to the merge queue Apr 13, 2026
Copy link
Copy Markdown
Member Author

@pront pront left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per offline discussion: #25168 didn't find any major issues but we want to introduce that check to pretend invalid blocks in our website.

Merged via the queue into master with commit 3112033 Apr 13, 2026
113 checks passed
@pront pront deleted the pavlos/convert-toml-to-yaml-website branch April 13, 2026 16:21
@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

domain: config Anything related to configuring Vector no-changelog Changes in this PR do not need user-facing explanations in the release changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants