Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/redirects.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(function () {
(() => {
// A table of paths to redirect from, mapped to the new location.
// NOTE: This script doesn't run on 404.html, so the old page must still exist.
const redirects = {
Expand All @@ -10,12 +10,12 @@

// Remove baseHref
const path =
fullPath.indexOf("/stylix/") == 0 ? fullPath.substring(7) : fullPath;
fullPath.indexOf("/stylix/") === 0 ? fullPath.substring(7) : fullPath;

const target = redirects[path];

if (target) {
console.log("Redirecting to " + target);
console.log(`Redirecting to ${target}`);
window.location.replace(target);
}
})();
48 changes: 24 additions & 24 deletions flake.lock

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

3 changes: 2 additions & 1 deletion flake/dev/dev-shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
build-and-run-docs
inputs'.home-manager.packages.default
config.formatter
] ++ config.pre-commit.settings.enabledPackages;
]
++ config.pre-commit.settings.enabledPackages;

inputsFrom = [ config.treefmt.build.devShell ];
};
Expand Down
103 changes: 41 additions & 62 deletions flake/dev/flake.lock

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

Loading