From d126be3a31ab1103491045db96ccc3bac051f255 Mon Sep 17 00:00:00 2001 From: Tit Petric Date: Mon, 29 Jul 2024 12:56:19 +0200 Subject: [PATCH] Add taskfile to generate markdown docs locally, lint godocs --- Taskfile.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Taskfile.yml diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 000000000..c04e3c078 --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,17 @@ +--- +version: "3" + +vars: + title: "# Tyk Pump" + root: TykPumpConfiguration + +tasks: + docs: + desc: "Generate markdown with schema-gen" + cmds: + - schema-gen extract -o - | schema-gen markdown -i - -o - --root {{.root}} --title "{{.title}}" + + lint: + desc: "Lint godocs with schema-gen" + cmds: + - schema-gen extract -o - | schema-gen lint -i -