diff --git a/.github/workflows/buildtest.yml b/.github/workflows/buildtest.yml index 2e13bbd91..e7ae81980 100644 --- a/.github/workflows/buildtest.yml +++ b/.github/workflows/buildtest.yml @@ -13,50 +13,62 @@ jobs: strategy: fail-fast: false matrix: - os: [[self-hosted, linux, X64], [macos-13], [self-hosted, macOS, ARM64], [self-hosted, linux, ARM64]] + os: + [ + [self-hosted, linux, X64], + [macos-13], + [self-hosted, macOS, ARM64], + [self-hosted, linux, ARM64], + ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 - with: - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - uses: cachix/cachix-action@v15 - with: - name: devenv - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - id: build - run: | - bin=$(nix build --print-out-paths) - echo "bin=$bin" >> $GITHUB_OUTPUT - - name: Run tests - run: ./result/bin/devenv test + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v15 + with: + name: devenv + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - id: build + run: | + bin=$(nix build --print-out-paths) + echo "bin=$bin" >> $GITHUB_OUTPUT + - name: Run tests + run: ./result/bin/devenv test tests: needs: build strategy: fail-fast: false matrix: - os: [[self-hosted, linux, X64], [macos-13], [self-hosted, macOS, ARM64], [self-hosted, linux, ARM64]] + os: + [ + [self-hosted, linux, X64], + [macos-13], + [self-hosted, macOS, ARM64], + [self-hosted, linux, ARM64], + ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 - with: - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - uses: cachix/cachix-action@v15 - with: - name: devenv - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - name: Build devenv - run: | - nix build - echo "$PWD/result/bin" >> $GITHUB_PATH - - name: Run devenv-test-cli - run: devenv shell devenv-test-cli - - name: Run tests - run: devenv-run-tests tests + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v15 + with: + name: devenv + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: Build devenv + run: | + nix build + echo "$PWD/result/bin" >> $GITHUB_PATH + - name: Run devenv-test-cli + run: devenv shell devenv-test-cli + - name: Run tests + run: devenv-run-tests tests pin: needs: build @@ -69,13 +81,14 @@ jobs: outputs: examples: ${{ steps.set-examples.outputs.examples }} steps: - - name: Checkout base repo - uses: actions/checkout@v4 - - name: Fetch examples to run - id: set-examples - run: | - json=$(nix shell nixpkgs#tree -c tree -J -L 1 examples | nix shell nixpkgs#jq -c jq -c '[.[0].contents[] | .name]') - echo "examples=$json" >> $GITHUB_OUTPUT + - name: Checkout base repo + uses: actions/checkout@v4 + - name: Fetch examples to run + id: set-examples + run: | + set -euxo pipefail + json=$(nix shell nixpkgs#tree -c tree -J -L 1 examples | nix shell nixpkgs#jq -c jq -c '[.[0].contents[] | .name]') + echo "examples=$json" >> $GITHUB_OUTPUT examples: name: ${{ matrix.example }} (${{ join(matrix.os) }}) @@ -83,26 +96,32 @@ jobs: strategy: fail-fast: false matrix: - os: [[self-hosted, linux, X64], [macos-13], [self-hosted, macOS, ARM64], [self-hosted, linux, ARM64]] + os: + [ + [self-hosted, linux, X64], + [macos-13], + [self-hosted, macOS, ARM64], + [self-hosted, linux, ARM64], + ] example: ${{ fromJSON(needs.generate-examples.outputs.examples) }} runs-on: ${{ matrix.os }} steps: - - run: sudo rm -rf /opt& - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 - with: - extra_nix_config: | - access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} - - uses: cachix/cachix-action@v15 - with: - name: devenv - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - name: Build devenv - run: | - nix build - echo "$PWD/result/bin" >> $GITHUB_PATH - - name: Run examples - run: devenv-run-tests --only ${{ matrix.example }} examples + - run: sudo rm -rf /opt& + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + with: + extra_nix_config: | + access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v15 + with: + name: devenv + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: Build devenv + run: | + nix build + echo "$PWD/result/bin" >> $GITHUB_PATH + - name: Run examples + run: devenv-run-tests --only ${{ matrix.example }} examples direnv: name: direnv (${{ join(matrix.os) }}) @@ -110,33 +129,39 @@ jobs: strategy: fail-fast: false matrix: - os: [[ubuntu-latest], [macos-13], [self-hosted, macOS, ARM64], [self-hosted, Linux, ARM64]] + os: + [ + [ubuntu-latest], + [macos-13], + [self-hosted, macOS, ARM64], + [self-hosted, Linux, ARM64], + ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v15 - with: - name: devenv - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - name: Build devenv - run: | - nix build - echo "$PWD/result/bin" >> $GITHUB_PATH - - run: | - mkdir -p ~/.config/direnv/ - cat > ~/.config/direnv/direnv.toml << 'EOF' - [global] - strict_env = true - EOF + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v15 + with: + name: devenv + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: Build devenv + run: | + nix build + echo "$PWD/result/bin" >> $GITHUB_PATH + - run: | + mkdir -p ~/.config/direnv/ + cat > ~/.config/direnv/direnv.toml << 'EOF' + [global] + strict_env = true + EOF - devenv_dir=$PWD - tmp="$(mktemp -d)" - pushd "$tmp" - nix shell nixpkgs#direnv -c devenv --override-input devenv path:$devenv_dir?dir=src/modules init - popd + devenv_dir=$PWD + tmp="$(mktemp -d)" + pushd "$tmp" + nix shell nixpkgs#direnv -c devenv --override-input devenv path:$devenv_dir?dir=src/modules init + popd fish-zsh: name: zsh/fish (${{ join(matrix.os) }}) @@ -144,20 +169,26 @@ jobs: strategy: fail-fast: false matrix: - os: [[ubuntu-latest], [macos-13], [self-hosted, macOS, ARM64], [self-hosted, linux, ARM64]] + os: + [ + [ubuntu-latest], + [macos-13], + [self-hosted, macOS, ARM64], + [self-hosted, linux, ARM64], + ] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 - with: - nix_path: nixpkgs=channel:nixos-unstable - - uses: cachix/cachix-action@v15 - with: - name: devenv - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - name: Build devenv - run: nix build - - name: Test devenv in fish and zsh - run: | - nix shell nixpkgs#zsh -c zsh -c "./result/bin/devenv version" - nix shell nixpkgs#fish -c fish -c "./result/bin/devenv version" + - uses: actions/checkout@v4 + - uses: cachix/install-nix-action@v30 + with: + nix_path: nixpkgs=channel:nixos-unstable + - uses: cachix/cachix-action@v15 + with: + name: devenv + authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" + - name: Build devenv + run: nix build + - name: Test devenv in fish and zsh + run: | + nix shell nixpkgs#zsh -c zsh -c "./result/bin/devenv version" + nix shell nixpkgs#fish -c fish -c "./result/bin/devenv version" diff --git a/devenv.lock b/devenv.lock index 322f63949..92684dd07 100644 --- a/devenv.lock +++ b/devenv.lock @@ -16,10 +16,10 @@ "flake-compat": { "flake": false, "locked": { - "lastModified": 1696426674, + "lastModified": 1732722421, "owner": "edolstra", "repo": "flake-compat", - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "rev": "9ed2ac151eada2306ca8c418ebd97807bb08f6ac", "type": "github" }, "original": { @@ -31,10 +31,10 @@ "flake-compat_2": { "flake": false, "locked": { - "lastModified": 1696426674, + "lastModified": 1732722421, "owner": "edolstra", "repo": "flake-compat", - "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33", + "rev": "9ed2ac151eada2306ca8c418ebd97807bb08f6ac", "type": "github" }, "original": { @@ -73,10 +73,10 @@ "nixpkgs-stable": "nixpkgs-stable" }, "locked": { - "lastModified": 1730302582, + "lastModified": 1732021966, "owner": "cachix", "repo": "git-hooks.nix", - "rev": "af8a16fe5c264f5e9e18bcee2859b40a656876cf", + "rev": "3308484d1a443fc5bc92012435d79e80458fe43c", "type": "github" }, "original": { @@ -108,10 +108,10 @@ "libgit2": { "flake": false, "locked": { - "lastModified": 1730231647, + "lastModified": 1732660327, "owner": "libgit2", "repo": "libgit2", - "rev": "c6111ec06cc0b0126cd67bdab78f8091e4cfaa10", + "rev": "c86842f0a518cc15d7964027d01a4ae3bf9604db", "type": "github" }, "original": { @@ -146,10 +146,10 @@ }, "nixpkgs": { "locked": { - "lastModified": 1730665687, + "lastModified": 1732887538, "owner": "NixOS", "repo": "nixpkgs", - "rev": "df9782b6077321330159a0ad8902d879f093d7c1", + "rev": "2e212b2e1fad641d3721f8b1b530747ff4287905", "type": "github" }, "original": { @@ -191,10 +191,10 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1730327045, + "lastModified": 1732749044, "owner": "NixOS", "repo": "nixpkgs", - "rev": "080166c15633801df010977d9d7474b4a6c549d7", + "rev": "0c5b4ecbed5b155b705336aa96d878e55acd8685", "type": "github" }, "original": { @@ -206,15 +206,15 @@ }, "nixpkgs_2": { "locked": { - "lastModified": 1716977621, + "lastModified": 1732780316, "owner": "cachix", "repo": "devenv-nixpkgs", - "rev": "4267e705586473d3e5c8d50299e71503f16a6fb6", + "rev": "226216574ada4c3ecefcbbec41f39ce4655f78ef", "type": "github" }, "original": { "owner": "cachix", - "ref": "rolling", + "ref": "bump-rolling", "repo": "devenv-nixpkgs", "type": "github" } @@ -237,10 +237,10 @@ ] }, "locked": { - "lastModified": 1730302582, + "lastModified": 1732021966, "owner": "cachix", "repo": "pre-commit-hooks.nix", - "rev": "af8a16fe5c264f5e9e18bcee2859b40a656876cf", + "rev": "3308484d1a443fc5bc92012435d79e80458fe43c", "type": "github" }, "original": { diff --git a/devenv.nix b/devenv.nix index afec0c5ff..5d5d94f40 100644 --- a/devenv.nix +++ b/devenv.nix @@ -102,7 +102,7 @@ }; scripts."devenv-generate-doc-css" = { description = "Generate CSS for the docs."; - exec = "${lib.getExe pkgs.tailwindcss} build -i docs/assets/extra.css -o docs/assets/output.css"; + exec = "${lib.getExe pkgs.tailwindcss} -m -i docs/assets/extra.css -o docs/assets/output.css"; }; scripts."devenv-generate-doc-options" = { description = "Generate option docs."; @@ -224,10 +224,7 @@ EOF pre-commit.hooks = { nixpkgs-fmt.enable = true; - #shellcheck.enable = true; - #clippy.enable = true; rustfmt.enable = true; - #markdownlint.enable = true; markdownlint.settings.configuration = { MD013 = { line_length = 120; @@ -239,6 +236,7 @@ EOF enable = true; name = "generate-doc-css"; entry = config.scripts."devenv-generate-doc-css".exec; + files = "docs/assets/extra.css"; }; }; } diff --git a/devenv/src/flake.tmpl.nix b/devenv/src/flake.tmpl.nix index 0449a54f9..8825cc712 100644 --- a/devenv/src/flake.tmpl.nix +++ b/devenv/src/flake.tmpl.nix @@ -6,7 +6,7 @@ git-hooks.url = "github:cachix/git-hooks.nix"; git-hooks.inputs.nixpkgs.follows = "nixpkgs"; pre-commit-hooks.follows = "git-hooks"; - nixpkgs.url = "github:cachix/devenv-nixpkgs/rolling"; + nixpkgs.url = "github:cachix/devenv-nixpkgs/bump-rolling"; devenv.url = "github:cachix/devenv?dir=src/modules"; } // (if builtins.pathExists (devenv_dotfile + "/flake.json") then builtins.fromJSON (builtins.readFile (devenv_dotfile + "/flake.json")) diff --git a/docs/assets/output.css b/docs/assets/output.css index 1da7c9765..4abcea394 100644 --- a/docs/assets/output.css +++ b/docs/assets/output.css @@ -1,1036 +1 @@ -/* -! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com -*/ - -/* -1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4) -2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116) -*/ - -*, -::before, -::after { - box-sizing: border-box; - /* 1 */ - border-width: 0; - /* 2 */ - border-style: solid; - /* 2 */ - border-color: #e5e7eb; - /* 2 */ -} - -::before, -::after { - --tw-content: ''; -} - -/* -1. Use a consistent sensible line-height in all browsers. -2. Prevent adjustments of font size after orientation changes in iOS. -3. Use a more readable tab size. -4. Use the user's configured `sans` font-family by default. -5. Use the user's configured `sans` font-feature-settings by default. -6. Use the user's configured `sans` font-variation-settings by default. -7. Disable tap highlights on iOS -*/ - -html, -:host { - line-height: 1.5; - /* 1 */ - -webkit-text-size-adjust: 100%; - /* 2 */ - -moz-tab-size: 4; - /* 3 */ - -o-tab-size: 4; - tab-size: 4; - /* 3 */ - font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; - /* 4 */ - font-feature-settings: normal; - /* 5 */ - font-variation-settings: normal; - /* 6 */ - -webkit-tap-highlight-color: transparent; - /* 7 */ -} - -/* -1. Remove the margin in all browsers. -2. Inherit line-height from `html` so users can set them as a class directly on the `html` element. -*/ - -body { - margin: 0; - /* 1 */ - line-height: inherit; - /* 2 */ -} - -/* -1. Add the correct height in Firefox. -2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655) -3. Ensure horizontal rules are visible by default. -*/ - -hr { - height: 0; - /* 1 */ - color: inherit; - /* 2 */ - border-top-width: 1px; - /* 3 */ -} - -/* -Add the correct text decoration in Chrome, Edge, and Safari. -*/ - -abbr:where([title]) { - -webkit-text-decoration: underline dotted; - text-decoration: underline dotted; -} - -/* -Remove the default font size and weight for headings. -*/ - -h1, -h2, -h3, -h4, -h5, -h6 { - font-size: inherit; - font-weight: inherit; -} - -/* -Reset links to optimize for opt-in styling instead of opt-out. -*/ - -a { - color: inherit; - text-decoration: inherit; -} - -/* -Add the correct font weight in Edge and Safari. -*/ - -b, -strong { - font-weight: bolder; -} - -/* -1. Use the user's configured `mono` font-family by default. -2. Use the user's configured `mono` font-feature-settings by default. -3. Use the user's configured `mono` font-variation-settings by default. -4. Correct the odd `em` font sizing in all browsers. -*/ - -code, -kbd, -samp, -pre { - font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; - /* 1 */ - font-feature-settings: normal; - /* 2 */ - font-variation-settings: normal; - /* 3 */ - font-size: 1em; - /* 4 */ -} - -/* -Add the correct font size in all browsers. -*/ - -small { - font-size: 80%; -} - -/* -Prevent `sub` and `sup` elements from affecting the line height in all browsers. -*/ - -sub, -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sub { - bottom: -0.25em; -} - -sup { - top: -0.5em; -} - -/* -1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297) -2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016) -3. Remove gaps between table borders by default. -*/ - -table { - text-indent: 0; - /* 1 */ - border-color: inherit; - /* 2 */ - border-collapse: collapse; - /* 3 */ -} - -/* -1. Change the font styles in all browsers. -2. Remove the margin in Firefox and Safari. -3. Remove default padding in all browsers. -*/ - -button, -input, -optgroup, -select, -textarea { - font-family: inherit; - /* 1 */ - font-feature-settings: inherit; - /* 1 */ - font-variation-settings: inherit; - /* 1 */ - font-size: 100%; - /* 1 */ - font-weight: inherit; - /* 1 */ - line-height: inherit; - /* 1 */ - letter-spacing: inherit; - /* 1 */ - color: inherit; - /* 1 */ - margin: 0; - /* 2 */ - padding: 0; - /* 3 */ -} - -/* -Remove the inheritance of text transform in Edge and Firefox. -*/ - -button, -select { - text-transform: none; -} - -/* -1. Correct the inability to style clickable types in iOS and Safari. -2. Remove default button styles. -*/ - -button, -input:where([type='button']), -input:where([type='reset']), -input:where([type='submit']) { - -webkit-appearance: button; - /* 1 */ - background-color: transparent; - /* 2 */ - background-image: none; - /* 2 */ -} - -/* -Use the modern Firefox focus style for all focusable elements. -*/ - -:-moz-focusring { - outline: auto; -} - -/* -Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737) -*/ - -:-moz-ui-invalid { - box-shadow: none; -} - -/* -Add the correct vertical alignment in Chrome and Firefox. -*/ - -progress { - vertical-align: baseline; -} - -/* -Correct the cursor style of increment and decrement buttons in Safari. -*/ - -::-webkit-inner-spin-button, -::-webkit-outer-spin-button { - height: auto; -} - -/* -1. Correct the odd appearance in Chrome and Safari. -2. Correct the outline style in Safari. -*/ - -[type='search'] { - -webkit-appearance: textfield; - /* 1 */ - outline-offset: -2px; - /* 2 */ -} - -/* -Remove the inner padding in Chrome and Safari on macOS. -*/ - -::-webkit-search-decoration { - -webkit-appearance: none; -} - -/* -1. Correct the inability to style clickable types in iOS and Safari. -2. Change font properties to `inherit` in Safari. -*/ - -::-webkit-file-upload-button { - -webkit-appearance: button; - /* 1 */ - font: inherit; - /* 2 */ -} - -/* -Add the correct display in Chrome and Safari. -*/ - -summary { - display: list-item; -} - -/* -Removes the default spacing and border for appropriate elements. -*/ - -blockquote, -dl, -dd, -h1, -h2, -h3, -h4, -h5, -h6, -hr, -figure, -p, -pre { - margin: 0; -} - -fieldset { - margin: 0; - padding: 0; -} - -legend { - padding: 0; -} - -ol, -ul, -menu { - list-style: none; - margin: 0; - padding: 0; -} - -/* -Reset default styling for dialogs. -*/ - -dialog { - padding: 0; -} - -/* -Prevent resizing textareas horizontally by default. -*/ - -textarea { - resize: vertical; -} - -/* -1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300) -2. Set the default placeholder color to the user's configured gray 400 color. -*/ - -input::-moz-placeholder, textarea::-moz-placeholder { - opacity: 1; - /* 1 */ - color: #9ca3af; - /* 2 */ -} - -input::placeholder, -textarea::placeholder { - opacity: 1; - /* 1 */ - color: #9ca3af; - /* 2 */ -} - -/* -Set the default cursor for buttons. -*/ - -button, -[role="button"] { - cursor: pointer; -} - -/* -Make sure disabled buttons don't get the pointer cursor. -*/ - -:disabled { - cursor: default; -} - -/* -1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14) -2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210) - This can trigger a poorly considered lint error in some tools but is included by design. -*/ - -img, -svg, -video, -canvas, -audio, -iframe, -embed, -object { - display: block; - /* 1 */ - vertical-align: middle; - /* 2 */ -} - -/* -Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14) -*/ - -img, -video { - max-width: 100%; - height: auto; -} - -/* Make elements with the HTML hidden attribute stay hidden by default */ - -[hidden] { - display: none; -} - -html { - font-size: 20px; -} - -*, ::before, ::after { - --tw-border-spacing-x: 0; - --tw-border-spacing-y: 0; - --tw-translate-x: 0; - --tw-translate-y: 0; - --tw-rotate: 0; - --tw-skew-x: 0; - --tw-skew-y: 0; - --tw-scale-x: 1; - --tw-scale-y: 1; - --tw-pan-x: ; - --tw-pan-y: ; - --tw-pinch-zoom: ; - --tw-scroll-snap-strictness: proximity; - --tw-gradient-from-position: ; - --tw-gradient-via-position: ; - --tw-gradient-to-position: ; - --tw-ordinal: ; - --tw-slashed-zero: ; - --tw-numeric-figure: ; - --tw-numeric-spacing: ; - --tw-numeric-fraction: ; - --tw-ring-inset: ; - --tw-ring-offset-width: 0px; - --tw-ring-offset-color: #fff; - --tw-ring-color: rgb(59 130 246 / 0.5); - --tw-ring-offset-shadow: 0 0 #0000; - --tw-ring-shadow: 0 0 #0000; - --tw-shadow: 0 0 #0000; - --tw-shadow-colored: 0 0 #0000; - --tw-blur: ; - --tw-brightness: ; - --tw-contrast: ; - --tw-grayscale: ; - --tw-hue-rotate: ; - --tw-invert: ; - --tw-saturate: ; - --tw-sepia: ; - --tw-drop-shadow: ; - --tw-backdrop-blur: ; - --tw-backdrop-brightness: ; - --tw-backdrop-contrast: ; - --tw-backdrop-grayscale: ; - --tw-backdrop-hue-rotate: ; - --tw-backdrop-invert: ; - --tw-backdrop-opacity: ; - --tw-backdrop-saturate: ; - --tw-backdrop-sepia: ; - --tw-contain-size: ; - --tw-contain-layout: ; - --tw-contain-paint: ; - --tw-contain-style: ; -} - -::backdrop { - --tw-border-spacing-x: 0; - --tw-border-spacing-y: 0; - --tw-translate-x: 0; - --tw-translate-y: 0; - --tw-rotate: 0; - --tw-skew-x: 0; - --tw-skew-y: 0; - --tw-scale-x: 1; - --tw-scale-y: 1; - --tw-pan-x: ; - --tw-pan-y: ; - --tw-pinch-zoom: ; - --tw-scroll-snap-strictness: proximity; - --tw-gradient-from-position: ; - --tw-gradient-via-position: ; - --tw-gradient-to-position: ; - --tw-ordinal: ; - --tw-slashed-zero: ; - --tw-numeric-figure: ; - --tw-numeric-spacing: ; - --tw-numeric-fraction: ; - --tw-ring-inset: ; - --tw-ring-offset-width: 0px; - --tw-ring-offset-color: #fff; - --tw-ring-color: rgb(59 130 246 / 0.5); - --tw-ring-offset-shadow: 0 0 #0000; - --tw-ring-shadow: 0 0 #0000; - --tw-shadow: 0 0 #0000; - --tw-shadow-colored: 0 0 #0000; - --tw-blur: ; - --tw-brightness: ; - --tw-contrast: ; - --tw-grayscale: ; - --tw-hue-rotate: ; - --tw-invert: ; - --tw-saturate: ; - --tw-sepia: ; - --tw-drop-shadow: ; - --tw-backdrop-blur: ; - --tw-backdrop-brightness: ; - --tw-backdrop-contrast: ; - --tw-backdrop-grayscale: ; - --tw-backdrop-hue-rotate: ; - --tw-backdrop-invert: ; - --tw-backdrop-opacity: ; - --tw-backdrop-saturate: ; - --tw-backdrop-sepia: ; - --tw-contain-size: ; - --tw-contain-layout: ; - --tw-contain-paint: ; - --tw-contain-style: ; -} - -.container { - width: 100%; -} - -@media (min-width: 640px) { - .container { - max-width: 640px; - } -} - -@media (min-width: 768px) { - .container { - max-width: 768px; - } -} - -@media (min-width: 1024px) { - .container { - max-width: 1024px; - } -} - -@media (min-width: 1280px) { - .container { - max-width: 1280px; - } -} - -@media (min-width: 1536px) { - .container { - max-width: 1536px; - } -} - -.language-shell::before { - content: attr(data-shell-prefix); - margin-inline-end: 0.4rem; - --tw-text-opacity: 1; - color: rgb(147 197 253 / var(--tw-text-opacity)); -} - -.static { - position: static; -} - -.relative { - position: relative; -} - -.isolate { - isolation: isolate; -} - -.mx-auto { - margin-left: auto; - margin-right: auto; -} - -.mb-6 { - margin-bottom: 1.2rem; -} - -.mt-10 { - margin-top: 2rem; -} - -.mt-2 { - margin-top: 0.4rem; -} - -.mt-4 { - margin-top: 0.8rem; -} - -.mt-6 { - margin-top: 1.2rem; -} - -.block { - display: block; -} - -.inline { - display: inline; -} - -.flex { - display: flex; -} - -.grid { - display: grid; -} - -.h-8 { - height: 1.6rem; -} - -.max-w-2xl { - max-width: 33.6rem; -} - -.max-w-3xl { - max-width: 38.4rem; -} - -.max-w-7xl { - max-width: 64rem; -} - -.max-w-xl { - max-width: 28.8rem; -} - -.grid-cols-1 { - grid-template-columns: repeat(1, minmax(0, 1fr)); -} - -.items-center { - align-items: center; -} - -.justify-center { - justify-content: center; -} - -.gap-x-6 { - -moz-column-gap: 1.2rem; - column-gap: 1.2rem; -} - -.gap-x-8 { - -moz-column-gap: 1.6rem; - column-gap: 1.6rem; -} - -.gap-y-16 { - row-gap: 3.2rem; -} - -.space-y-8 > :not([hidden]) ~ :not([hidden]) { - --tw-space-y-reverse: 0; - margin-top: calc(1.6rem * calc(1 - var(--tw-space-y-reverse))); - margin-bottom: calc(1.6rem * var(--tw-space-y-reverse)); -} - -.overflow-hidden { - overflow: hidden; -} - -.truncate { - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.rounded-md { - border-radius: 0.3rem; -} - -.rounded-b-xl { - border-bottom-right-radius: 0.6rem; - border-bottom-left-radius: 0.6rem; -} - -.border-b { - border-bottom-width: 1px; -} - -.border-r { - border-right-width: 1px; -} - -.border-t { - border-top-width: 1px; -} - -.border-b-white\/20 { - border-bottom-color: rgb(255 255 255 / 0.2); -} - -.border-r-white\/10 { - border-right-color: rgb(255 255 255 / 0.1); -} - -.border-t-white\/20 { - border-top-color: rgb(255 255 255 / 0.2); -} - -.bg-black { - --tw-bg-opacity: 1; - background-color: rgb(0 0 0 / var(--tw-bg-opacity)); -} - -.bg-gray-100 { - --tw-bg-opacity: 1; - background-color: rgb(243 244 246 / var(--tw-bg-opacity)); -} - -.bg-gray-800\/40 { - background-color: rgb(31 41 55 / 0.4); -} - -.bg-gray-900 { - --tw-bg-opacity: 1; - background-color: rgb(17 24 39 / var(--tw-bg-opacity)); -} - -.bg-white { - --tw-bg-opacity: 1; - background-color: rgb(255 255 255 / var(--tw-bg-opacity)); -} - -.bg-white\/5 { - background-color: rgb(255 255 255 / 0.05); -} - -.p-1 { - padding: 0.2rem; -} - -.px-2 { - padding-left: 0.4rem; - padding-right: 0.4rem; -} - -.px-3 { - padding-left: 0.6rem; - padding-right: 0.6rem; -} - -.px-3\.5 { - padding-left: 0.7rem; - padding-right: 0.7rem; -} - -.px-4 { - padding-left: 0.8rem; - padding-right: 0.8rem; -} - -.py-14 { - padding-top: 2.8rem; - padding-bottom: 2.8rem; -} - -.py-2 { - padding-top: 0.4rem; - padding-bottom: 0.4rem; -} - -.py-2\.5 { - padding-top: 0.5rem; - padding-bottom: 0.5rem; -} - -.py-8 { - padding-top: 1.6rem; - padding-bottom: 1.6rem; -} - -.pt-14 { - padding-top: 2.8rem; -} - -.text-center { - text-align: center; -} - -.text-2xl { - font-size: 1.2rem; - line-height: 1.6rem; -} - -.text-3xl { - font-size: 1.5rem; - line-height: 1.8rem; -} - -.text-base { - font-size: 0.8rem; - line-height: 1.2rem; -} - -.text-lg { - font-size: 0.9rem; - line-height: 1.4rem; -} - -.text-sm { - font-size: 0.7rem; - line-height: 1rem; -} - -.text-xl { - font-size: 1rem; - line-height: 1.4rem; -} - -.font-bold { - font-weight: 700; -} - -.font-medium { - font-weight: 500; -} - -.font-semibold { - font-weight: 600; -} - -.leading-6 { - line-height: 1.2rem; -} - -.leading-7 { - line-height: 1.4rem; -} - -.leading-8 { - line-height: 1.6rem; -} - -.tracking-tight { - letter-spacing: -0.025em; -} - -.text-\[\#425C82\] { - --tw-text-opacity: 1; - color: rgb(66 92 130 / var(--tw-text-opacity)); -} - -.text-black { - --tw-text-opacity: 1; - color: rgb(0 0 0 / var(--tw-text-opacity)); -} - -.text-gray-200 { - --tw-text-opacity: 1; - color: rgb(229 231 235 / var(--tw-text-opacity)); -} - -.text-gray-600 { - --tw-text-opacity: 1; - color: rgb(75 85 99 / var(--tw-text-opacity)); -} - -.text-gray-800 { - --tw-text-opacity: 1; - color: rgb(31 41 55 / var(--tw-text-opacity)); -} - -.text-gray-900 { - --tw-text-opacity: 1; - color: rgb(17 24 39 / var(--tw-text-opacity)); -} - -.text-white { - --tw-text-opacity: 1; - color: rgb(255 255 255 / var(--tw-text-opacity)); -} - -.shadow-sm { - --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); - --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color); - box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow); -} - -.filter { - filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); -} - -/* mobile make code snippets scrollable */ - -.image-wrapper { - overflow: auto!important; -} - -/* add some whitespace under hero CTA button */ - -.md-main__inner { - padding-bottom: 1rem; -} - -.hover\:to-\[\#425C82\]:hover { - --tw-gradient-to: #425C82 var(--tw-gradient-to-position); -} - -.focus-visible\:outline:focus-visible { - outline-style: solid; -} - -.focus-visible\:outline-2:focus-visible { - outline-width: 2px; -} - -.focus-visible\:outline-offset-2:focus-visible { - outline-offset: 2px; -} - -.focus-visible\:outline-indigo-400:focus-visible { - outline-color: #818cf8; -} - -@media (min-width: 640px) { - .sm\:mx-0 { - margin-left: 0px; - margin-right: 0px; - } - - .sm\:mx-auto { - margin-left: auto; - margin-right: auto; - } - - .sm\:max-w-2xl { - max-width: 33.6rem; - } - - .sm\:max-w-none { - max-width: none; - } - - .sm\:gap-y-20 { - row-gap: 4rem; - } - - .sm\:text-4xl { - font-size: 1.8rem; - line-height: 2rem; - } -} - -@media (min-width: 768px) { - .md\:px-6 { - padding-left: 1.2rem; - padding-right: 1.2rem; - } -} - -@media (min-width: 1024px) { - .lg\:mx-0 { - margin-left: 0px; - margin-right: 0px; - } - - .lg\:max-w-lg { - max-width: 25.6rem; - } - - .lg\:max-w-none { - max-width: none; - } - - .lg\:grid-cols-2 { - grid-template-columns: repeat(2, minmax(0, 1fr)); - } - - .lg\:items-start { - align-items: flex-start; - } - - .lg\:px-0 { - padding-left: 0px; - padding-right: 0px; - } - - .lg\:px-8 { - padding-left: 1.6rem; - padding-right: 1.6rem; - } - - .lg\:pl-3 { - padding-left: 0.6rem; - } -} +*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }/*! tailwindcss v3.4.14 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]:where(:not([hidden=until-found])){display:none}html{font-size:20px}.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.language-shell:before{content:attr(data-shell-prefix);margin-inline-end:.4rem;--tw-text-opacity:1;color:rgb(147 197 253/var(--tw-text-opacity))}.static{position:static}.relative{position:relative}.isolate{isolation:isolate}.mx-auto{margin-left:auto;margin-right:auto}.mb-6{margin-bottom:1.2rem}.mt-10{margin-top:2rem}.mt-2{margin-top:.4rem}.mt-4{margin-top:.8rem}.mt-6{margin-top:1.2rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.h-8{height:1.6rem}.max-w-2xl{max-width:33.6rem}.max-w-3xl{max-width:38.4rem}.max-w-7xl{max-width:64rem}.max-w-xl{max-width:28.8rem}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.items-center{align-items:center}.justify-center{justify-content:center}.gap-x-6{-moz-column-gap:1.2rem;column-gap:1.2rem}.gap-x-8{-moz-column-gap:1.6rem;column-gap:1.6rem}.gap-y-16{row-gap:3.2rem}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(1.6rem*var(--tw-space-y-reverse));margin-top:calc(1.6rem*(1 - var(--tw-space-y-reverse)))}.overflow-hidden,.truncate{overflow:hidden}.truncate{text-overflow:ellipsis;white-space:nowrap}.rounded-md{border-radius:.3rem}.rounded-b-xl{border-bottom-left-radius:.6rem;border-bottom-right-radius:.6rem}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-b-white\/20{border-bottom-color:hsla(0,0%,100%,.2)}.border-r-white\/10{border-right-color:hsla(0,0%,100%,.1)}.border-t-white\/20{border-top-color:hsla(0,0%,100%,.2)}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.bg-gray-800\/40{background-color:rgba(31,41,55,.4)}.bg-gray-900{--tw-bg-opacity:1;background-color:rgb(17 24 39/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-white\/5{background-color:hsla(0,0%,100%,.05)}.p-1{padding:.2rem}.px-2{padding-left:.4rem;padding-right:.4rem}.px-3\.5{padding-left:.7rem;padding-right:.7rem}.px-4{padding-left:.8rem;padding-right:.8rem}.py-14{padding-bottom:2.8rem;padding-top:2.8rem}.py-2\.5{padding-bottom:.5rem;padding-top:.5rem}.py-8{padding-bottom:1.6rem;padding-top:1.6rem}.pt-14{padding-top:2.8rem}.text-center{text-align:center}.text-2xl{font-size:1.2rem;line-height:1.6rem}.text-3xl{font-size:1.5rem;line-height:1.8rem}.text-base{font-size:.8rem;line-height:1.2rem}.text-lg{font-size:.9rem;line-height:1.4rem}.text-sm{font-size:.7rem;line-height:1rem}.text-xl{font-size:1rem;line-height:1.4rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-6{line-height:1.2rem}.leading-7{line-height:1.4rem}.leading-8{line-height:1.6rem}.tracking-tight{letter-spacing:-.025em}.text-\[\#425C82\]{--tw-text-opacity:1;color:rgb(66 92 130/var(--tw-text-opacity))}.text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity:1;color:rgb(229 231 235/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(31 41 55/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.image-wrapper{overflow:auto!important}.md-main__inner{padding-bottom:1rem}.hover\:to-\[\#425C82\]:hover{--tw-gradient-to:#425c82 var(--tw-gradient-to-position)}.focus-visible\:outline:focus-visible{outline-style:solid}.focus-visible\:outline-2:focus-visible{outline-width:2px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\:outline-indigo-400:focus-visible{outline-color:#818cf8}@media (min-width:640px){.sm\:mx-0{margin-left:0;margin-right:0}.sm\:mx-auto{margin-left:auto;margin-right:auto}.sm\:max-w-2xl{max-width:33.6rem}.sm\:max-w-none{max-width:none}.sm\:gap-y-20{row-gap:4rem}.sm\:text-4xl{font-size:1.8rem;line-height:2rem}}@media (min-width:768px){.md\:px-6{padding-left:1.2rem;padding-right:1.2rem}}@media (min-width:1024px){.lg\:mx-0{margin-left:0;margin-right:0}.lg\:max-w-lg{max-width:25.6rem}.lg\:max-w-none{max-width:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:items-start{align-items:flex-start}.lg\:px-0{padding-left:0;padding-right:0}.lg\:px-8{padding-left:1.6rem;padding-right:1.6rem}.lg\:pl-3{padding-left:.6rem}} \ No newline at end of file diff --git a/docs/overrides/home.html b/docs/overrides/home.html index 57078f6a9..f0fcf5723 100644 --- a/docs/overrides/home.html +++ b/docs/overrides/home.html @@ -1,117 +1,181 @@ -{% extends "main.html" %} - -{% block styles %} -{{ super () }} - +{% extends "main.html" %} {% block styles %} {{ super () }} + -{% endblock %} - -{% block hero %} +{% endblock %} {% block hero %}
- Develop natively - • Deploy containers - • 100.000+ packages - • Write scripts and - tasks - • 50+ supported languages - • Define processes - • Reuse services - • Run tests - • Enforce git hooks -
-+ Develop + natively + • Deploy + containers + • 100.000+ + packages + • Write + scripts + and + tasks + • 50+ + supported languages + • Define + processes + • Reuse + services + • Run + tests • + Enforce + git hooks +
+Simple JSON-like language
-- Declaratively define your development environment by toggling basic options. -
env
attribute set to define environment variables.
-
- If you'd like to also include secrets from .env
- file, set dotenv.enable = true;
.
direnv
will automatically load the environment when you enter the project
- directory.
- + Simple JSON-like language +
++ Declaratively define your development environment by + toggling basic options. +
+ +env
+ attribute set to define environment variables.
+
+
+ If you'd like to also include secrets from
+ .env
+ file, set
+ dotenv.enable = true;
.
+
direnv
will
+ automatically load the environment when you
+ enter the project directory.
+ { pkgs, config, ... }: {
+
{ pkgs, config, ... }: {
env.GREET = "determinism";
packages = [
@@ -124,37 +188,49 @@ Fast, Decla
'';
}
- devenv shell
+
+ devenv shell
hello determinism
ncdu 2.3
-
+
{ pkgs, ... }: {
+
+
+
+
+
+
+
+
+
+ devenv.nix
+
+
+
+ { pkgs, ... }: {
packages = [ pkgs.yarn ];
scripts.build.exec = "yarn build";
@@ -176,11 +252,15 @@ Fast, Decla
};
}
-
-
+
+
-
-devenv shell
+
+ devenv shell
...
Running tasks devenv:enterShell
Succeeded devenv:git-hooks:install 15ms
@@ -190,68 +270,114 @@ Fast, Decla
$
-
-
-
-
-
-
- Scripts and Tasks
-
- Define scripts, tasks and
- git hooks
- to automate your development workflow.
-
-
- -
- Scripts.
-
- -
- Define scripts that can be invoked inside the environment, using all the packages and environment
- variables.
-
-
-
- -
- Tasks.
-
- -
- Form dependencies between automation code, executed in parallel and written in your favorite language.
-
+
+
-
-
- Git hooks.
-
-
- Pick from builtin and language specific linters and formatters using git-hooks.nix.
+
+
+
+
+ Scripts and Tasks
+
+
+ Define
+ scripts,
+ tasks
+ and
+ git hooks
+ to automate your development workflow.
+
+
+
+
+ -
+ Scripts.
+
+ -
+ Define scripts that can be invoked inside the
+ environment, using all the packages and
+ environment variables.
+
+
+
+ -
+ Tasks.
+
+ -
+ Form dependencies between automation code,
+ executed in parallel and written in your
+ favorite language.
+
+
+
+ -
+ Git hooks.
+
+ -
+ Pick from builtin and language specific linters
+ and formatters using
+ git-hooks.nix.
+
+
+
+
-
-
devenv search devenv
+
+
+
+ devenv search devenv
+--------------+---------------+------------------------------------------------------------------------+
| Package | Version | Description |
+--------------+---------------+------------------------------------------------------------------------+
@@ -268,60 +394,91 @@ Fast, Decla
+--------------------------+---------+-----------+------------------------------------------------------------+
• Found 1 package and 3 options for 'devenv'.
-
+
+
+
Languages
-- Supports over 50 programming languages. -
+ Languages +
++ Supports over 50 + programming languages. +
+ +{ pkgs, config, ... }: {
+
{ pkgs, config, ... }: {
languages.python = {
enable = true;
version = "3.11";
@@ -354,140 +511,208 @@ Fast, Decla
};
}
+ { pkgs, ... }: {
- packages = [
- pkgs.mkdocs
- pkgs.watchexec
- ];
+
+
+
+
+
+
+
+
+
+ devenv.nix
+
+
+
+ { pkgs, ... }: {
+ packages = [
+ pkgs.cargo-watch
+ ];
- processes = {
- docs.exec = "mkdocs serve";
- tailwind.exec = "watchexec -e html,css,js npx tailwindcss build extra.css -o output.css";
- };
+ processes = {
+ cargo-watch.exec = "cargo watch -x run";
+ };
}
-
-
+
+
-
-devenv up
+
+ devenv up
• Building processes ...
• Starting processes ...
...
-
-
-
-
-
-
- Run processes
-
- Define your processes in a declarative way
- and start them with devenv up
.
-
-
- -
- Processes
-
- -
- Inspired by
Procfile
, declare development processes that have
- access to your environment.
-
+
+
-
-
- process-compose
-
-
- By default process-compose is used to manage processes,
- giving you a
- simple interface to inspect logs and restart processes (ctrl-r).
-
+
+
+
+
+ Run processes
+
+
+ Define your
+ processes in a declarative way
+ and start them with
+ devenv up
.
+
+
+
+
+ -
+ Processes
+
+ -
+ Inspired by
+
Procfile
,
+ declare development processes that have access
+ to your environment.
+
+
+
+ -
+ process-compose
+
+ -
+ By default
+ process-compose
+ is used to manage processes, giving you a simple
+ interface to inspect logs and restart processes
+ (ctrl-r).
+
+
+
+
+
-
-
Run services
-- Pick from a number of community maintained - services like PostgreSQL, Redis, MySQL, - RabbitMQ, WireMock, MinIO, Caddy, ElasticSearch, OpenTelemetry Collector, and more are being added each day. -
devenv up
.
- + Run services +
++ Pick from a number of community maintained + services + like + PostgreSQL, Redis, MySQL, RabbitMQ, WireMock, + MinIO, Caddy, ElasticSearch, OpenTelemetry + Collector, and + more are being added + each day. +
+ +devenv up
.
+ { pkgs, ... }: {
+
{ pkgs, ... }: {
services.postgres = {
enable = true;
package = pkgs.postgresql_15;
@@ -501,35 +726,48 @@ Fast, Decla
};
}
- devenv up
+
+ devenv up
...
-
+
{ pkgs, ... }: {
+
+
+
+
+
+
+
+
+
+ devenv.nix
+
+
+
+ { pkgs, ... }: {
packages = [
pkgs.mkdocs
pkgs.curl
@@ -546,98 +784,162 @@ Fast, Decla
}
-
-
+
+
-
-devenv test
+
+ devenv test
...
-
-
-
-
-
-
- Run tests
-
- Running a script inside your development environment
- with all processes running should be as simple as devenv test
.
-
-
- -
- enterTest
-
- -
- Execute your favorite language test runner or a simple script to verify your environment.
-
-
All process management is taken care for you.
-
+
+
+
+
+
+
+
+ Run tests
+
+
+ Running
+ a script inside your development environment with
+ all processes running
+ should be as simple as
+ devenv test
.
+
+
+
+
+ -
+ enterTest
+
+ -
+ Execute your favorite language test runner or a
+ simple script to verify your environment.
+
+
+ All process management is taken care for
+ you.
+
+
+
+
+
-
-
Container interoperability
-- Generate containers from your development - environment and build/copy/run them. -
shell
container allows you to run your environment in a container.
-
- Use devenv container run shell
to enter your
- environment in a container.
processes
container allows you to run your processes in a
- container.
-
- Use devenv container run processes
to run your
- processes in a container.
containers.mycontainer.*
to customize your container.
- + Container interoperability +
++ Generate containers + from your development environment and build/copy/run + them. +
- -shell
+ container allows you to run your environment in
+ a container.
+
+
+ Use
+ devenv container run shell
+ to enter your environment in a container.
+
processes
+ container allows you to run your processes in a
+ container.
+
+
+ Use
+ devenv container run processes
+ to run your processes in a container.
+
containers.mycontainer.*
+ to
+ customize your container.
+ { pkgs, ... }: {
+
{ pkgs, ... }: {
packages = [
pkgs.mkdocs
pkgs.curl
@@ -649,11 +951,15 @@ Fast, Decla
}
- devenv container build processes
+
+ devenv container build processes
...
devenv container copy processes
...
@@ -661,27 +967,36 @@ Fast, Decla
...
-
+
inputs:
+
+
+
+
+
+
+
+
+
+ devenv.yaml
+
+
+
+ inputs:
myorg-devenv:
url: github:myorg/myorg-devenv
imports:
@@ -690,53 +1005,75 @@ Fast, Decla
- myorg-devenv/service1
- myorg-devenv/service2
+
+
+
-
-
-
Poly/Mono repo composability
-- Compose multiple environments - into a single environment. -
A great way to get started is to use central repository with all the shared - configuration until your team is comfortable - maintaining their own environments.
+ ++ Poly/Mono repo composability +
++ Compose multiple environments + into a single environment. +
+ ++ A great way to get started is to use central + repository with all the shared configuration + until your team is comfortable maintaining + their own environments. +
+