From 5654875070dd2d208d56d3c0c684e9ec3e9aaef0 Mon Sep 17 00:00:00 2001 From: Mathieu Ledru Date: Sat, 24 Aug 2024 01:06:53 +0200 Subject: [PATCH] :rocket: deploy docs --- docs/package.json | 17 +++++++++++++++-- docs/theme.toml | 10 ++++++++++ 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/package.json b/docs/package.json index 27e3347..8c91e21 100644 --- a/docs/package.json +++ b/docs/package.json @@ -30,7 +30,7 @@ "prestart": "npm run clean", "start": "exec-bin node_modules/.bin/hugo/hugo server --bind=0.0.0.0 --disableFastRender -s src", "prebuild": "npm run clean", - "build": "exec-bin node_modules/.bin/hugo/hugo --gc --minify -s src", + "build": "exec-bin node_modules/.bin/hugo/hugo --gc --minify -s src -b https://flow.darkwood.com", "build:preview": "npm run build -D -F", "clean": "shx rm -rf public resources", "clean:install": "shx rm -rf package-lock.json node_modules ", @@ -77,5 +77,18 @@ }, "otherDependencies": { "hugo": "0.88.1" + }, + "deployment": { + "order": [ + ".jpg$", + ".gif$" + ], + "targets": [ + { + "name": "github", + "URL": "https://github.com/darkwood-com/flow", + "branch": "gh-pages" + } + ] } -} +} \ No newline at end of file diff --git a/docs/theme.toml b/docs/theme.toml index d4899f6..1a59709 100644 --- a/docs/theme.toml +++ b/docs/theme.toml @@ -13,3 +13,13 @@ features = ["security aware", "fast by default", "seo-ready", "development tools [author] name = "Mathieu Ledru" homepage = "https://darkwood.fr" + +baseURL = "https://flow.darkwood.fr" + +[deployment] +order = [".jpg$", ".gif$"] + +[[deployment.targets]] +name = "github" +URL = "https://flow.darkwood.com" +branch = "gh-pages" \ No newline at end of file