From a3a7a0080864be2d0e278bd66528b083e7c8b768 Mon Sep 17 00:00:00 2001 From: Schrottkatze Date: Mon, 1 Jan 2024 23:34:34 +0100 Subject: [PATCH] add typst design document stuff --- .gitignore | 1 + docs/design/types.typ | 10 ++++++++++ docs/template.typ | 12 ++++++++++++ justfile | 2 ++ 4 files changed, 25 insertions(+) create mode 100644 docs/design/types.typ create mode 100644 docs/template.typ create mode 100644 justfile diff --git a/.gitignore b/.gitignore index fcaa00f..1407055 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ .direnv/ /target .pre-commit-config.yaml +*.pdf diff --git a/docs/design/types.typ b/docs/design/types.typ new file mode 100644 index 0000000..2e4af6e --- /dev/null +++ b/docs/design/types.typ @@ -0,0 +1,10 @@ +#import "../template.typ": conf +#show: doc => conf( + doc +) + += meow nya + +nyanyanya + +#lorem(50) diff --git a/docs/template.typ b/docs/template.typ new file mode 100644 index 0000000..6022b41 --- /dev/null +++ b/docs/template.typ @@ -0,0 +1,12 @@ +#let conf( + doc +) = { + set text(font: "Atkinson Hyperlegible"); + show heading: it => [ + #set text(font: "Montserrat", weight: "regular") + + #it + ] + + doc +} diff --git a/justfile b/justfile new file mode 100644 index 0000000..9228b4c --- /dev/null +++ b/justfile @@ -0,0 +1,2 @@ +doc-design: + typst compile docs/design/*.typ --root=docs