diff --git a/docs/README.md b/docs/README.md index ac8e4a7..c3cdd4b 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,6 +1,6 @@ `hydrant` is an AT Protocol indexer built on the `fjall` database. it's built to be flexible, supporting both full-network indexing and filtered indexing (e.g., by DID), allowing querying with XRPCs (not only `com.atproto.*`!), providing an ordered event stream, etc. oh and it can also act as a relay! -you can see [random.wisp.place](https://tangled.org/did:plc:dfl62fgb7wtjj3fcbb72naae/random.wisp.place) (standalone binary using http API) or the [statusphere example](../examples/statusphere.rs) (hydrant-as-library) for examples. for rust docs look at https://hydrant.klbr.net/ for now. +you can see [random.wisp.place](https://tangled.org/did:plc:dfl62fgb7wtjj3fcbb72naae/random.wisp.place) (standalone binary using http API) or the [statusphere example](https://tangled.org/did:plc:dfl62fgb7wtjj3fcbb72naae/hydrant/blob/main/examples/statusphere.rs) (hydrant-as-library) for examples. for rust docs look at https://hydrant.klbr.net/ for now. **WARNING: *the db format is only partially stable.*** we provide migrations in hydrant itself, so nothing should go wrong! you should still probably keep backups just in case! diff --git a/flake.lock b/flake.lock index c3840c1..5eb80fb 100644 --- a/flake.lock +++ b/flake.lock @@ -322,11 +322,11 @@ "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1776671665, - "narHash": "sha256-XkA9cZ5n3jYYLZes4zqQ9Y24l04Gspv1pmNmp+1qK/A=", + "lastModified": 1776678921, + "narHash": "sha256-VdZTha082Erf2O2mZGVVunQYda/E3+bmQ6TnxLG9tiI=", "owner": "90-008", "repo": "verbiage", - "rev": "1f63c30ca7c716332340b21cac29a0a05f13d92b", + "rev": "a0067e952b180f19f426a2c9a6308d73fedd5fb5", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index f690cbe..f1adaa4 100644 --- a/flake.nix +++ b/flake.nix @@ -17,6 +17,16 @@ ... }: let + redirects = pkgs.writeTextFile { + name = "_redirects"; + text = '' + /static/* /static/:splat 200! + /docs/w/* /:splat 301! + /~ / 301! + / /docs/w/~ 200! + /* /docs/w/:splat 200! + ''; + }; buildDocs = pkgs.writeShellApplication { name = "build-docs"; runtimeInputs = [ inputs'.verbiage.packages.build ]; @@ -27,7 +37,7 @@ export VERBIAGE_TITLE out="''${2:-$(pwd)/docs-dist}" verbiage-build docs "$out" - printf '/static/* /static/:splat 200!\n/docs/w/* /:splat 301!\n/ /docs/w/~ 200!\n/* /docs/w/:splat 200!\n' > "$out/_redirects" + cp -f ${redirects} "$out/_redirects" ''; }; deployDocs = pkgs.writeShellApplication {