From 2782f20936c39098a5634379f055c2926ae6a8e2 Mon Sep 17 00:00:00 2001 From: Kaan Genc Date: Sun, 3 Apr 2022 23:13:54 -0400 Subject: [PATCH] set up publishing --- dendron.yml | 1 + notes/.vscode/tasks.json | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 notes/.vscode/tasks.json diff --git a/dendron.yml b/dendron.yml index 570d314..335f414 100644 --- a/dendron.yml +++ b/dendron.yml @@ -100,3 +100,4 @@ publishing: enableHashesForFMTags: false enableRandomlyColoredTags: true enablePrettyLinks: true + assetsPrefix: "/recipes" diff --git a/notes/.vscode/tasks.json b/notes/.vscode/tasks.json new file mode 100644 index 0000000..f394fad --- /dev/null +++ b/notes/.vscode/tasks.json @@ -0,0 +1,25 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "build site", + "type": "shell", + "command": "dendron publish export", + "options": { + "cwd": "${workspaceFolder}/../" + } + }, + { + "label": "publish site", + "type": "shell", + "command": "rsync -av .next/out/ /var/www/recipes/", + "options": { + "cwd": "${workspaceFolder}/../" + }, + "dependsOn": ["build site"], + "problemMatcher": [] + }, + ] +}