File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -512,6 +512,35 @@ This example uses ``pip`` and installs from a group named ``docs``:
512
512
For more information on relevant ``pip `` usage, see the
513
513
`pip user guide on Dependency Groups <https://pip.pypa.io/en/stable/user_guide/#dependency-groups >`_.
514
514
515
+ Install dependencies with ``pixi ``
516
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
517
+
518
+ Projects can use `pixi <https://github.com/prefix-dev/pixi/ >`__,
519
+ to install Python dependencies, usually reducing the time taken to install compared to conda or pip.
520
+ Take a look at the following example:
521
+
522
+
523
+ .. code-block :: yaml
524
+ :caption : .readthedocs.yaml
525
+
526
+ version : 2
527
+
528
+ build :
529
+ os : ubuntu-24.04
530
+ jobs :
531
+ create_environment :
532
+ - asdf plugin add pixi
533
+ - asdf install pixi latest
534
+ - asdf global pixi latest
535
+ install :
536
+ # assuming you have an environment called "docs"
537
+ - pixi install -e docs
538
+ build :
539
+ html :
540
+ - pixi run -e docs sphinx-build -T -b html docs $READTHEDOCS_OUTPUT/html
541
+
542
+ MkDocs projects could use ``NO_COLOR=1 pixi run -e docs mkdocs build --strict --site-dir $READTHEDOCS_OUTPUT/html `` instead.
543
+
515
544
Update Conda version
516
545
~~~~~~~~~~~~~~~~~~~~
517
546
You can’t perform that action at this time.
0 commit comments