From 081207ef86a22f4f25915c1834d6693c0f8cdc22 Mon Sep 17 00:00:00 2001 From: Mathieu Ledru Date: Sat, 24 Aug 2024 01:28:03 +0200 Subject: [PATCH] :rocket: deploy docs --- docs/package.json | 17 +++++++++++++++-- docs/theme.toml | 12 +++++++++++- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/docs/package.json b/docs/package.json index 27e3347..32887aa 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.fr", "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://flow.darkwood.fr", + "branch": "gh-pages" + } + ] } -} +} \ No newline at end of file diff --git a/docs/theme.toml b/docs/theme.toml index d4899f6..df42614 100644 --- a/docs/theme.toml +++ b/docs/theme.toml @@ -5,7 +5,7 @@ description = "Assemble your code by adopting asynchronous as native implementat source = "docs" homepage = "https://github.com/darkwood-com/flow" -demosite = "https://darkwood-com.github.io" +demosite = "https://flow.darkwood.com" tags = ["landing page", "documentation", "blog", "minimal", "modern", "customizable", "search", "dark mode", "bootstrap"] features = ["security aware", "fast by default", "seo-ready", "development tools", "bootstrap framework", "netlify-ready", "full text search", "page layouts", "dark mode"] @@ -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