this repo has no description usp.wiro.world
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add mdbook

+120
+1
.envrc
··· 1 + use flake
+18
.tangled/workflows/book.yml
··· 1 + when: 2 + - event: ["push", "pull_request"] 3 + branch: ["main"] 4 + 5 + engine: nixery 6 + 7 + dependencies: 8 + nixpkgs: 9 + 10 + steps: 11 + - command: nix build .#book 12 + 13 + - command: | 14 + nix run .#git-pages-cli -- \ 15 + https://usp.wiro.world \ 16 + --password $GIT_PAGES_CHALLENGE \ 17 + --server grebedoc.dev \ 18 + --upload-dir result
+5
Justfile
··· 1 + _default: 2 + @just --list --unsorted --list-heading '' --list-prefix '— ' 3 + 4 + serve-docs: 5 + mdbook serve docs
+1
docs/.gitignore
··· 1 + book
+4
docs/book.toml
··· 1 + [book] 2 + title = "Unsurprising" 3 + authors = ["Milo Moisson"] 4 + language = "en"
+3
docs/src/SUMMARY.md
··· 1 + # Summary 2 + 3 + - [Introduction](./intro.md)
+7
docs/src/intro.md
··· 1 + # Introduction 2 + 3 + Welcome to the docs of unsurprising (usp for short). 4 + 5 + <a href="https://grebedoc.dev"> 6 + <img src="https://grebedoc.dev/88x31.gif" alt="served by Grebedoc" style="image-rendering: pixelated"> 7 + </a>
+27
flake.lock
··· 1 + { 2 + "nodes": { 3 + "nixpkgs": { 4 + "locked": { 5 + "lastModified": 1775423009, 6 + "narHash": "sha256-vPKLpjhIVWdDrfiUM8atW6YkIggCEKdSAlJPzzhkQlw=", 7 + "owner": "NixOS", 8 + "repo": "nixpkgs", 9 + "rev": "68d8aa3d661f0e6bd5862291b5bb263b2a6595c9", 10 + "type": "github" 11 + }, 12 + "original": { 13 + "owner": "NixOS", 14 + "ref": "nixos-unstable", 15 + "repo": "nixpkgs", 16 + "type": "github" 17 + } 18 + }, 19 + "root": { 20 + "inputs": { 21 + "nixpkgs": "nixpkgs" 22 + } 23 + } 24 + }, 25 + "root": "root", 26 + "version": 7 27 + }
+54
flake.nix
··· 1 + { 2 + inputs = { 3 + nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable"; 4 + }; 5 + 6 + outputs = 7 + { self, nixpkgs }: 8 + let 9 + inherit (nixpkgs.lib) cleanSource genAttrs; 10 + 11 + forAllSystems = genAttrs [ 12 + "x86_64-linux" 13 + "aarch64-linux" 14 + "aarch64-darwin" 15 + ]; 16 + forAllPkgs = function: forAllSystems (system: function pkgs.${system}); 17 + 18 + pkgs = forAllSystems ( 19 + system: 20 + import nixpkgs { 21 + inherit system; 22 + overlays = [ ]; 23 + } 24 + ); 25 + in 26 + { 27 + formatter = forAllPkgs (pkgs: pkgs.nixfmt-tree); 28 + 29 + packages = forAllPkgs ( 30 + pkgs: 31 + { 32 + # pin packages used in workflows 33 + inherit (pkgs) git-pages-cli; 34 + 35 + book = pkgs.stdenv.mkDerivation { 36 + name = "kaleic-book"; 37 + src = cleanSource ./docs; 38 + nativeBuildInputs = [ pkgs.mdbook ]; 39 + buildPhase = "mdbook build"; 40 + installPhase = "cp -r book $out"; 41 + }; 42 + } 43 + ); 44 + 45 + devShells = forAllPkgs (pkgs: { 46 + default = pkgs.mkShell { 47 + packages = with pkgs; [ 48 + just 49 + mdbook 50 + ]; 51 + }; 52 + }); 53 + }; 54 + }