-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: move to mkdocs with all documentation (#435)
Move to MkDocs - [x]: All pixi documentation is in mkdocs - [x]: Setup ci stage to test the build of the docs - [ ]: Use [mkdocs material insiders program](https://squidfunk.github.io/mkdocs-material/insiders/#how-to-become-a-sponsor) - [x]: Start a FAQ
- Loading branch information
1 parent
c75e361
commit badeea8
Showing
23 changed files
with
5,141 additions
and
2,598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Deploy Docs | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'docs/**' | ||
- 'mkdocs.yml' | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- 'docs/**' | ||
- 'mkdocs.yml' | ||
|
||
|
||
# Allow one concurrent deployment | ||
concurrency: | ||
group: "pages" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
# Don't run on forks | ||
if: github.repository == 'prefix-dev/pixi' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
|
||
- uses: prefix-dev/setup-pixi@v0.3.0 | ||
with: | ||
pixi-version: v0.6.0 | ||
cache: true | ||
|
||
- name: Setup Pages | ||
uses: actions/configure-pages@v3 | ||
|
||
- name: Build pixi Documentation | ||
run: pixi run build-docs | ||
|
||
# This adds the following: | ||
# - A .nojekyll file to disable Jekyll GitHub Pages builds. | ||
- name: Finalize documentation | ||
run: | | ||
touch site/.nojekyll | ||
# https://github.com/actions/upload-pages-artifact#file-permissions | ||
- run: chmod -c -R +rX site/ | ||
|
||
- name: Upload artifact | ||
uses: actions/upload-pages-artifact@v2 | ||
with: | ||
path: "site" | ||
|
||
deploy: | ||
runs-on: ubuntu-latest | ||
needs: build | ||
if: github.repository == 'prefix-dev/pixi' && github.ref == 'refs/heads/main' | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ __pycache__ | |
**/**/.pixi | ||
**/**/.build | ||
.DS_store | ||
site/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
## What is the difference with `conda`, `mamba`, `poetry`, `pip` | ||
|
||
| Tool | Installs python | Builds packages | Runs predefined tasks | Has lockfiles builtin | Fast | Use without python | | ||
|--------|-----------------|-----------------|-----------------------|-----------------------|------|------------------------------------------------------------------------| | ||
| Conda | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | | ||
| Mamba | ✅ | ❌ | ❌ | ❌ | ✅ | [✅](https://mamba.readthedocs.io/en/latest/user_guide/micromamba.html) | | ||
| Pip | ❌ | ✅ | ❌ | ❌ | ❌ | ❌ | | ||
| Pixi | ✅ | 🚧 | ✅ | ✅ | ✅ | ✅ | | ||
| Poetry | ❌ | ✅ | ❌ | ✅ | ❌ | ❌ | | ||
|
||
|
||
## Why the name `pixi` | ||
Starting with the name `prefix` we iterated until we had a name that was easy to pronounce, spell and remember. | ||
There also wasn't a cli tool yet using that name. | ||
Unlike `px`, `pex`, `pax`, etc. | ||
We think it sparks curiosity and fun, if you don't agree, I'm sorry, but you can always alias it to whatever you like. | ||
|
||
=== "Linux & macOS" | ||
```shell | ||
alias not_pixi="pixi" | ||
``` | ||
=== "Windows" | ||
PowerShell: | ||
```powershell | ||
New-Alias -Name not_pixi -Value pixi | ||
``` | ||
|
||
## Where is `pixi build` | ||
**TL;DR**: It's coming we promise! | ||
|
||
`pixi build` is going to be the subcommand that can generate a conda package out of a pixi project. | ||
This requires a solid build tool which we're creating with [`rattler-build`](https://github.com/prefix-dev/rattler-build) which will be used as a library in pixi. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.