Skip to content

Commit

Permalink
Merge pull request #1119 from cachix/revamp-frontpage
Browse files Browse the repository at this point in the history
Revamp frontpage
  • Loading branch information
domenkozar authored Apr 12, 2024
2 parents 6e544a2 + 71f7783 commit 0a90a3a
Show file tree
Hide file tree
Showing 12 changed files with 3,601 additions and 557 deletions.
12 changes: 6 additions & 6 deletions devenv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1712168706,
"lastModified": 1712588820,
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "1487bdea619e4a7a53a4590c475deabb5a9d1bfb",
"treeHash": "7b1978f9e075f83639f8caed78916f6b025e6519",
"rev": "d272ca50d1f7424fbfcd1e6f1c9e01d92f6da167",
"treeHash": "46d0c368a409db54e5935811bbeed3a0824aeca7",
"type": "github"
},
"original": {
Expand All @@ -166,11 +166,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1712055707,
"lastModified": 1712579741,
"owner": "cachix",
"repo": "pre-commit-hooks.nix",
"rev": "e35aed5fda3cc79f88ed7f1795021e559582093a",
"treeHash": "41bee5f5bd9314a987ef3d7cba730fb6aa264a4e",
"rev": "70f504012f0a132ac33e56988e1028d88a48855c",
"treeHash": "63b6fd50c596ad107a487ad67a225ce7685929bd",
"type": "github"
},
"original": {
Expand Down
16 changes: 14 additions & 2 deletions devenv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
pkgs.xorg.libxcb
pkgs.yaml2json
pkgs.tesh
pkgs.watchexec
pkgs.openssl
] ++ lib.optionals pkgs.stdenv.isDarwin (with pkgs.darwin.apple_sdk; [
frameworks.SystemConfiguration
Expand All @@ -18,21 +19,27 @@
languages.rust.enable = true;
# for docs
languages.python.enable = true;
# speed it up
languages.python.uv.enable = true;
languages.python.venv.enable = true;
languages.python.venv.requirements = ./requirements.txt;
languages.javascript.enable = true;
languages.javascript.npm.enable = true;

devcontainer.enable = true;
devcontainer.settings.customizations.vscode.extensions = [ "jnoortheen.nix-ide" ];
difftastic.enable = true;

dotenv.enable = true;

processes.docs.exec = "mkdocs serve";
processes = {
docs.exec = "mkdocs serve";
tailwind.exec = "watchexec -e html,css,js npx tailwindcss build docs/assets/extra.css -o docs/assets/output.css";
};

scripts.devenv-bump-version.exec = ''
# TODO: ask for the new version
# TODO: update the version in the mkdocs.yml
# TODO: update the version in thep mkdocs.yml
echo assuming you bumped the version in mkdocs.yml, populating src/modules/latest-version
cat mkdocs.yml | yaml2json | jq -r '.extra.devenv.version' > src/modules/latest-version
'';
Expand Down Expand Up @@ -134,5 +141,10 @@
MD033 = false;
MD034 = false;
};
generate-css = {
enable = true;
name = "generate-css";
entry = "npx tailwindcss build docs/assets/extra.css -o docs/assets/output.css";
};
};
}
4 changes: 4 additions & 0 deletions docs/assets/extra.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

/* hide site name */
.md-header__topic {
visibility: hidden;
Expand Down
10 changes: 10 additions & 0 deletions docs/assets/github-dark.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added docs/assets/images/process-compose.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 0a90a3a

Please sign in to comment.