docs: switchable `pyproject.toml`/`pixi.toml` tabs for all code snippets
Problem description
Problem Description
Pixi officially supports two manifest formats — pixi.toml and pyproject.toml — however, the vast majority of code snippets across the documentation exclusively demonstrate the pixi.toml format. Users operating in a pyproject.toml-first workflow (the standard convention in the broader Python ecosystem) are required to manually translate every configuration example without any guidance or parallel reference.
The following documentation areas are directly affected:
- Getting Started and Tutorial pages
- Environment and dependency configuration examples
- Task definitions and overrides
- Feature and multi-environment configuration
There is currently no tab or toggle UI component to switch between the two manifest formats, a pattern that is well established in comparable tooling documentation (e.g., Cargo, Poetry, PDM). This gap creates unnecessary friction, increases incoming support load, and undermines pixi's positioning as a Python-native tool.
Commands I ran and their output
Not applicable — this is a documentation structure issue.
pixi.toml / pyproject.toml
Currently shown in docs (pixi.toml only):
[project]
name = "my-project"
channels = ["conda-forge"]
platforms = ["linux-64"]
[dependencies]
numpy = ">=1.24"
Missing equivalent (pyproject.toml):
[tool.pixi.project]
name = "my-project"
channels = ["conda-forge"]
platforms = ["linux-64"]
[tool.pixi.dependencies]
numpy = ">=1.24"
pixi info
Not applicable — this is a documentation content issue.
Other files
Pages requiring dual-format coverage as priority:
https://pixi.sh/latest/getting_started/ https://pixi.sh/latest/reference/project_configuration/ https://pixi.sh/latest/tutorials/python/ https://pixi.sh/latest/features/multi_environment/
Hey! 👋 Raised a PR to add pyproject.toml examples alongside pixi.toml in docs.
Added:
- Tab toggle for both manifest formats
- Dual-format examples on key pages
Please review and share feedback.
Which PR is that? I only see one associated with your user and that seems unrelated.
https://github.com/prefix-dev/pixi/pull/5656 This is a related PR