This commit is contained in:
parent
f4b6af771c
commit
5afd06dfe8
8 changed files with 78 additions and 25 deletions
18
.woodpecker.yml
Normal file
18
.woodpecker.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
pipeline:
|
||||
build:
|
||||
image: nixos/nix
|
||||
commands:
|
||||
- mdbook
|
||||
|
||||
deploy:
|
||||
image: alpine
|
||||
commands:
|
||||
- apk add rsync openssh
|
||||
- echo "$${SSH_SECRET_KEY}" > SSH_SECRET_KEY
|
||||
- chmod 600 SSH_SECRET_KEY
|
||||
- mkdir -p ~/.ssh
|
||||
- echo "mzhang.io ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBzBZ+QmM4EO3Fwc1ZcvWV2IY9VF04T0H9brorGj9Udp" >> ~/.ssh/known_hosts
|
||||
- rsync -azvrP -e "ssh -i SSH_SECRET_KEY" docs/book/ sourcehutBuilds@mzhang.io:/mnt/storage/svcdata/blog-public/panorama
|
||||
secrets: [SSH_SECRET_KEY]
|
||||
when:
|
||||
branch: master
|
2
Makefile
2
Makefile
|
@ -9,7 +9,7 @@ doc-dependencies: docs/src/generated/spec/index.md
|
|||
|
||||
generated/spec/meta.schema.json: spec/meta.schema.yml
|
||||
mkdir -p generated/spec
|
||||
yq -o json . $< > $@
|
||||
yq -o=json . $< > $@
|
||||
|
||||
docs/src/generated/spec/index.md: generated/spec/meta.schema.json
|
||||
mkdir -p docs/src/generated/spec
|
||||
|
|
4
ci/build-docs.sh
Executable file
4
ci/build-docs.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#!nix-shell -i bash -p mdbook
|
||||
|
||||
mdbook build docs
|
28
design.md
28
design.md
|
@ -37,6 +37,16 @@
|
|||
- The privileged namespace is for keeping track of database state, for
|
||||
example which scripts are trusted
|
||||
|
||||
- Hooks:
|
||||
|
||||
- Hooks consist of a (pattern, type, callback). The pattern is a metadata
|
||||
matcher, that determines if the node should be executed upon. The
|
||||
callback is Javascript code executed in the app's execution context.
|
||||
|
||||
- Type determines what kind of callback to call.
|
||||
- Ensures callbacks: these make sure that a node has
|
||||
-
|
||||
|
||||
- Database service:
|
||||
|
||||
- IFTTT Events
|
||||
|
@ -60,9 +70,25 @@
|
|||
|
||||
- Sample apps
|
||||
|
||||
- Todos app
|
||||
|
||||
- Metadata keys (these are somewhat based on Taskwarrior)
|
||||
|
||||
- `status`: Enum{Pending | Deleted | Completed | Waiting | Recurring}
|
||||
- Task status
|
||||
- `description`: String
|
||||
- Description
|
||||
- `start`: DateTime
|
||||
- `due`: DateTime{.due >= .start}
|
||||
- `depends`: NodeRef
|
||||
|
||||
- Interfaces:
|
||||
|
||||
-
|
||||
|
||||
- Content / blob storage
|
||||
|
||||
- Exposed interfaces
|
||||
- Interfaces:
|
||||
|
||||
- `Content`
|
||||
- `upload() -> Writer`
|
||||
|
|
|
@ -8,5 +8,5 @@ title = "mznotes documentation"
|
|||
[output.html]
|
||||
additional-css = ["custom.css"]
|
||||
|
||||
[preprocessor.tera]
|
||||
command = "docs/make-then-tera.sh"
|
||||
# [preprocessor.tera]
|
||||
# command = "docs/make-then-tera.sh"
|
||||
|
|
|
@ -32,7 +32,8 @@
|
|||
in rec {
|
||||
packages = flake-utils.lib.flattenTree flakePkgs;
|
||||
|
||||
devShell = pkgs.mkShell ({
|
||||
devShells = {
|
||||
default = pkgs.mkShell ({
|
||||
packages = with pkgs; [
|
||||
cargo-deny
|
||||
cargo-edit
|
||||
|
@ -47,7 +48,8 @@
|
|||
mdbook
|
||||
flakePkgs.mdbook-tera
|
||||
|
||||
(python310.withPackages (p: with p; [ ipython numpy scipy sympy ]))
|
||||
(python310.withPackages
|
||||
(p: with p; [ ipython numpy scipy sympy ]))
|
||||
|
||||
pkgs.fenix.minimal.cargo
|
||||
pkgs.fenix.minimal.rustc
|
||||
|
@ -56,5 +58,8 @@
|
|||
pkgs.fenix.default.rustfmt
|
||||
];
|
||||
} // prisma-env);
|
||||
|
||||
ci = pkgs.mkShell { packages = with pkgs; [ bash mdbook nodejs ]; };
|
||||
};
|
||||
});
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ model Edge {
|
|||
|
||||
model NodeMeta {
|
||||
nodeId String
|
||||
toNode Node @relation(fields: [nodeId], references: [id])
|
||||
node Node @relation(fields: [nodeId], references: [id])
|
||||
|
||||
appId String
|
||||
app App @relation(fields: [appId], references: [id])
|
||||
|
|
|
@ -3,6 +3,7 @@ $schema: "http://json-schema.org/draft-07/schema"
|
|||
title: Application
|
||||
type: object
|
||||
additionalProperties: false
|
||||
required: ['title']
|
||||
|
||||
properties:
|
||||
$schema:
|
||||
|
@ -11,7 +12,6 @@ properties:
|
|||
|
||||
title:
|
||||
type: string
|
||||
required: true
|
||||
title: Name of the application
|
||||
|
||||
authors:
|
||||
|
|
Loading…
Reference in a new issue