Skip to content

Commit

Permalink
fix: removed linenums to avoid buggy visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
ruben-arts committed Mar 18, 2024
1 parent ff29b5c commit 91eaeff
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
14 changes: 7 additions & 7 deletions docs/design_proposals/multi_environment_proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ As an environment goes beyond just `dependencies` the `features` should be descr
- `tasks`: Feature specific tasks, tasks in one environment are selected as default tasks for the environment.


```toml title="Default features" linenums="1"
```toml title="Default features"
[dependencies] # short for [feature.default.dependencies]
python = "*"
numpy = "==2.3"
Expand All @@ -56,7 +56,7 @@ libc = "2.33"
scripts = ["activate.sh"]
```

```toml title="Different dependencies per feature" linenums="1"
```toml title="Different dependencies per feature"
[feature.py39.dependencies]
python = "~=3.9.0"
[feature.py310.dependencies]
Expand All @@ -65,7 +65,7 @@ python = "~=3.10.0"
pytest = "*"
```

```toml title="Full set of environment modification in one feature" linenums="1"
```toml title="Full set of environment modification in one feature"
[feature.cuda]
dependencies = {cuda = "x.y.z", cudnn = "12.0"}
pypi-dependencies = {torch = "1.9.0"}
Expand All @@ -80,7 +80,7 @@ tasks = { warmup = "python warmup.py" }
target.osx-arm64 = {dependencies = {mlx = "x.y.z"}}
```

```toml title="Define tasks as defaults of an environment" linenums="1"
```toml title="Define tasks as defaults of an environment"
[feature.test.tasks]
test = "pytest"

Expand All @@ -97,7 +97,7 @@ The environment definition should contain the following fields:
This is useful for environments that need to have the same dependencies but might extend them with additional dependencies.
For instance when testing a production environment with additional test dependencies.

```toml title="Creating environments from features" linenums="1"
```toml title="Creating environments from features"
[environments]
# implicit: default = ["default"]
default = ["py39"] # implicit: default = ["py39", "default"]
Expand All @@ -106,7 +106,7 @@ test = ["test"] # implicit: test = ["test", "default"]
test39 = ["test", "py39"] # implicit: test39 = ["test", "py39", "default"]
```

```toml title="Testing a production environment with additional dependencies" linenums="1"
```toml title="Testing a production environment with additional dependencies"
[environments]
# Creating a `prod` environment which is the minimal set of dependencies used for production.
prod = {features = ["py39"], solve-group = "prod"}
Expand All @@ -116,7 +116,7 @@ test_prod = {features = ["py39", "test"], solve-group = "prod"}
# Which makes sure the tested environment has the same version of the dependencies as the production environment.
```

```toml title="Creating environments without a default environment" linenums="1"
```toml title="Creating environments without a default environment"
[dependencies]
# Keep empty or undefined to create an empty environment.

Expand Down
20 changes: 10 additions & 10 deletions pixi.lock
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/mergedeep-1.3.4-pyhd8ed1ab_0.tar.bz2
- conda: https://conda.anaconda.org/conda-forge/noarch/mike-2.0.0-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-1.5.3-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-9.5.10-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-9.5.14-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-extensions-1.3.1-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.4-h59595ed_2.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/nodeenv-1.8.0-pyhd8ed1ab_0.conda
Expand Down Expand Up @@ -635,7 +635,7 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/mergedeep-1.3.4-pyhd8ed1ab_0.tar.bz2
- conda: https://conda.anaconda.org/conda-forge/noarch/mike-2.0.0-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-1.5.3-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-9.5.10-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-9.5.14-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-extensions-1.3.1-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/osx-64/ncurses-6.4-h93d8f39_2.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/nodeenv-1.8.0-pyhd8ed1ab_0.conda
Expand Down Expand Up @@ -778,7 +778,7 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/mergedeep-1.3.4-pyhd8ed1ab_0.tar.bz2
- conda: https://conda.anaconda.org/conda-forge/noarch/mike-2.0.0-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-1.5.3-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-9.5.10-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-9.5.14-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-extensions-1.3.1-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/osx-arm64/ncurses-6.4-h463b476_2.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/nodeenv-1.8.0-pyhd8ed1ab_0.conda
Expand Down Expand Up @@ -917,7 +917,7 @@ environments:
- conda: https://conda.anaconda.org/conda-forge/noarch/mergedeep-1.3.4-pyhd8ed1ab_0.tar.bz2
- conda: https://conda.anaconda.org/conda-forge/noarch/mike-2.0.0-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-1.5.3-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-9.5.10-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-9.5.14-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-extensions-1.3.1-pyhd8ed1ab_0.conda
- conda: https://conda.anaconda.org/conda-forge/win-64/msys2-conda-epoch-20160418-1.tar.bz2
- conda: https://conda.anaconda.org/conda-forge/noarch/nodeenv-1.8.0-pyhd8ed1ab_0.conda
Expand Down Expand Up @@ -4345,13 +4345,13 @@ packages:
timestamp: 1695086687269
- kind: conda
name: mkdocs-material
version: 9.5.10
version: 9.5.14
build: pyhd8ed1ab_0
subdir: noarch
noarch: python
url: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-9.5.10-pyhd8ed1ab_0.conda
sha256: cf5d7932fc2741dda187de41eb4d1e26fbfee9fcffc30a1c1fae6a389c4f9bb0
md5: 450bb4526f1207c6f7ea1dee901b8474
url: https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-9.5.14-pyhd8ed1ab_0.conda
sha256: ff1a8daf1d15068cf1bd091ecf330b72b63360bff060463732e24b66d34410c3
md5: e0fd92a8f790e1c9f03a89d98a4fd618
depends:
- babel ~=2.10
- colorama ~=0.4
Expand All @@ -4367,8 +4367,8 @@ packages:
- requests ~=2.26
license: MIT
license_family: MIT
size: 4951802
timestamp: 1708350766144
size: 4978382
timestamp: 1710737325047
- kind: conda
name: mkdocs-material-extensions
version: 1.3.1
Expand Down
2 changes: 1 addition & 1 deletion pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ compilers = ">=1.6.0"

[feature.docs.dependencies]
mkdocs = "1.5.3.*"
mkdocs-material = ">=9.5"
mkdocs-material = ">=9.5.14"
mdx_truly_sane_lists = ">=1.3,<2"
pillow = ">=9.4.0"
cairosvg = "2.7.1.*"
Expand Down

0 comments on commit 91eaeff

Please sign in to comment.