Add documentation links and deployment effect

- Add API documentation links to all Cargo.toml files
- Add API documentation links to all crate READMEs
- Add API Reference link to main README
- Add Hercules CI effect to push docs to gh-pages on main branch
This commit is contained in:
Robert Hensing 2026-02-10 09:57:10 +01:00
parent a40b4f5190
commit ee43f37870
24 changed files with 51 additions and 1 deletions

View file

@ -1,5 +1,6 @@
{
inputs,
withSystem,
...
}:
{
@ -218,9 +219,24 @@
};
};
herculesCI =
{ ... }:
hci@{ lib, ... }:
{
ciSystems = [ "x86_64-linux" ];
onPush.default.outputs = {
effects.pushDocs = lib.optionalAttrs (hci.config.repo.branch == "main") (
withSystem "x86_64-linux" (
{ config, hci-effects, ... }:
hci-effects.gitWriteBranch {
git.checkout.remote.url = hci.config.repo.remoteHttpUrl;
git.checkout.forgeType = "github";
git.checkout.user = "x-access-token";
git.update.branch = "gh-pages";
contents = config.packages.docs;
destination = "development"; # directory
}
)
);
};
};
hercules-ci.flake-update = {
enable = true;