diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index b072ebc2..766e3d91 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -39,7 +39,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: '0.135.0' + hugo-version: 'latest' extended: true - name: Build diff --git a/.github/workflows/release-doc.yml b/.github/workflows/release-doc.yml index c60ccf1f..96e03cdc 100644 --- a/.github/workflows/release-doc.yml +++ b/.github/workflows/release-doc.yml @@ -33,7 +33,7 @@ jobs: - name: Setup Hugo uses: peaceiris/actions-hugo@v3 with: - hugo-version: '0.135.0' + hugo-version: 'latest' extended: true - name: Build for GitHub Pages diff --git a/docs/.frontmatter/database/pinnedItemsDb.json b/docs/.frontmatter/database/pinnedItemsDb.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/docs/.frontmatter/database/pinnedItemsDb.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/docs/.frontmatter/database/taxonomyDb.json b/docs/.frontmatter/database/taxonomyDb.json new file mode 100644 index 00000000..9e26dfee --- /dev/null +++ b/docs/.frontmatter/database/taxonomyDb.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/docs/content/_index.md b/docs/content/_index.md index 8060acc5..74ff5e8a 100644 --- a/docs/content/_index.md +++ b/docs/content/_index.md @@ -1,5 +1,7 @@ --- archetype: "home" +title: resticprofile +description: Configuration profiles manager for restic backup --- Configuration profiles manager for [restic backup](https://restic.net/) diff --git a/docs/content/configuration/copy.md b/docs/content/configuration/copy.md index d5c2348a..e9456b3e 100644 --- a/docs/content/configuration/copy.md +++ b/docs/content/configuration/copy.md @@ -1,6 +1,6 @@ --- title: "Copy command" -tags: ["v0.18.0", "v0.26.0"] +# tags: ["v0.18.0", "v0.26.0"] weight: 17 --- diff --git a/docs/content/configuration/http_hooks.md b/docs/content/configuration/http_hooks.md index ba48f2b2..5c7a7fa6 100644 --- a/docs/content/configuration/http_hooks.md +++ b/docs/content/configuration/http_hooks.md @@ -1,7 +1,7 @@ --- title: "HTTP Hooks" date: 2022-05-16T19:46:52+01:00 -tags: ["v0.18.0"] +# tags: ["v0.18.0"] weight: 22 --- diff --git a/docs/content/configuration/include.md b/docs/content/configuration/include.md index 4f7942e6..95d0c413 100644 --- a/docs/content/configuration/include.md +++ b/docs/content/configuration/include.md @@ -1,7 +1,7 @@ --- title: "Includes" date: 2022-05-02T20:00:00+02:00 -tags: ["v0.18.0"] +# tags: ["v0.18.0"] weight: 15 --- diff --git a/docs/content/configuration/jsonschema/index.md b/docs/content/configuration/jsonschema/index.md index d5a755dc..ceec0927 100644 --- a/docs/content/configuration/jsonschema/index.md +++ b/docs/content/configuration/jsonschema/index.md @@ -1,7 +1,7 @@ --- title: "JSON schema" date: 2022-04-24T09:44:47+01:00 -tags: ["v0.21.0"] +# tags: ["v0.21.0"] weight: 55 --- diff --git a/docs/content/configuration/logs.md b/docs/content/configuration/logs.md index ddb53775..8d03d49c 100644 --- a/docs/content/configuration/logs.md +++ b/docs/content/configuration/logs.md @@ -1,6 +1,6 @@ --- title: "Logs" -tags: ["v0.21.0"] +# tags: ["v0.21.0"] weight: 45 --- diff --git a/docs/content/configuration/priority.md b/docs/content/configuration/priority.md index 0f4643a1..586caace 100644 --- a/docs/content/configuration/priority.md +++ b/docs/content/configuration/priority.md @@ -1,6 +1,6 @@ --- title: "Priority" -tags: ["v0.27.0"] +# tags: ["v0.27.0"] weight: 35 --- diff --git a/docs/content/configuration/sleep.md b/docs/content/configuration/sleep.md index f5dc1670..8c51a39b 100644 --- a/docs/content/configuration/sleep.md +++ b/docs/content/configuration/sleep.md @@ -1,6 +1,6 @@ --- title: "Preventing system sleep" -tags: ["v0.19.0"] +# tags: ["v0.19.0"] weight: 40 --- diff --git a/docs/content/configuration/v2.md b/docs/content/configuration/v2.md index ec73818f..02634004 100644 --- a/docs/content/configuration/v2.md +++ b/docs/content/configuration/v2.md @@ -1,6 +1,6 @@ --- title: "Configuration v2 proposal" -tags: ["v1.0.0"] +# tags: ["v1.0.0"] weight: 60 --- diff --git a/docs/content/installation/binaries.md b/docs/content/installation/binaries.md index 946728e1..3aa9b987 100644 --- a/docs/content/installation/binaries.md +++ b/docs/content/installation/binaries.md @@ -1,6 +1,6 @@ --- title: "Pre-built binaries" -tags: ["v0.26.0"] +# tags: ["v0.26.0"] weight: 5 --- diff --git a/docs/content/installation/docker.md b/docs/content/installation/docker.md index 4aaac1ec..947f285c 100644 --- a/docs/content/installation/docker.md +++ b/docs/content/installation/docker.md @@ -1,6 +1,6 @@ --- title: "Docker" -tags: ["v0.18.0"] +# tags: ["v0.18.0"] date: 2022-04-23T23:58:56+01:00 weight: 30 --- diff --git a/docs/content/schedules/commands.md b/docs/content/schedules/commands.md index 007ca8a8..6bffcd70 100644 --- a/docs/content/schedules/commands.md +++ b/docs/content/schedules/commands.md @@ -1,7 +1,7 @@ --- title: "Schedule Commands" weight: 20 -tags: ["v0.25.0", "v0.29.0"] +# tags: ["v0.25.0", "v0.29.0"] --- diff --git a/docs/content/schedules/non-root-schedule-in-container.md b/docs/content/schedules/non-root-schedule-in-container.md index e1222468..22f07e36 100644 --- a/docs/content/schedules/non-root-schedule-in-container.md +++ b/docs/content/schedules/non-root-schedule-in-container.md @@ -1,7 +1,7 @@ --- title: "User schedule in container" weight: 150 -tags: ["v0.27.0"] +# tags: ["v0.27.0"] --- diff --git a/docs/content/schedules/systemd.md b/docs/content/schedules/systemd.md index 14cb0b03..c23b6cb6 100644 --- a/docs/content/schedules/systemd.md +++ b/docs/content/schedules/systemd.md @@ -1,7 +1,7 @@ --- title: "Systemd" weight: 105 -tags: ["v0.25.0", "v0.29.0"] +# tags: ["v0.25.0", "v0.29.0"] --- diff --git a/docs/content/usage/_index.md b/docs/content/usage/_index.md index 1ddc6a92..0785e670 100644 --- a/docs/content/usage/_index.md +++ b/docs/content/usage/_index.md @@ -1,11 +1,10 @@ -+++ -archetype = "chapter" -pre = "3. " -title = "Using resticprofile" -weight = 3 -tags = ["v0.17.0"] -+++ - +--- +archetype: "chapter" +pre: "3. " +title: "Using resticprofile" +weight: 3 +# tags: ["v0.17.0"] +--- Here are a few examples how to run resticprofile (using the main example configuration file) diff --git a/docs/frontmatter.json b/docs/frontmatter.json new file mode 100644 index 00000000..161ce449 --- /dev/null +++ b/docs/frontmatter.json @@ -0,0 +1,95 @@ +{ + "$schema": "https://frontmatter.codes/frontmatter.schema.json", + "frontMatter.taxonomy.contentTypes": [ + { + "name": "default", + "pageBundle": false, + "previewPath": null, + "fields": [ + { + "title": "Title", + "name": "title", + "type": "string" + }, + { + "title": "Description", + "name": "description", + "type": "string" + }, + { + "title": "Publishing date", + "name": "date", + "type": "datetime", + "default": "{{now}}", + "isPublishDate": true + }, + { + "title": "Content preview", + "name": "preview", + "type": "image" + }, + { + "title": "Is in draft", + "name": "draft", + "type": "draft" + }, + { + "title": "Tags", + "name": "tags", + "type": "tags" + }, + { + "title": "Categories", + "name": "categories", + "type": "categories" + }, + { + "title": "Archetype", + "name": "archetype", + "type": "choice", + "choices": [ + "default", + "home", + "chapter" + ], + "default": "chapter" + }, + { + "title": "Weight", + "name": "weight", + "type": "number", + "numberOptions": { + "min": 0, + "max": 1000, + "step": 1 + } + }, + { + "title": "Hidden", + "name": "hidden", + "type": "boolean" + }, + { + "title": "pre", + "name": "pre", + "type": "string" + } + ] + } + ], + "frontMatter.framework.id": "hugo", + "frontMatter.content.publicFolder": "static", + "frontMatter.preview.host": "http://localhost:1313/resticprofile/", + "frontMatter.content.pageFolders": [ + { + "title": "content", + "path": "[[workspace]]/content" + } + ], + "frontMatter.git.enabled": true, + "frontMatter.git.submodule.folder": "themes", + "frontMatter.extends": [ + "./themes/hugo-theme-relearn/vscode-frontmatter/snippets.en.json" + ], + "frontMatter.snippets.wrapper.enabled": false +} \ No newline at end of file diff --git a/docs/hugo.toml b/docs/hugo.toml index a052b064..ad6350b0 100644 --- a/docs/hugo.toml +++ b/docs/hugo.toml @@ -8,18 +8,23 @@ publishdir = "../public/" # For search functionality [outputs] - home = [ "HTML", "RSS", "SEARCH", "SEARCHPAGE"] + home = [ "html", "rss" ] [params] - themeVariant = [ "relearn-dark", "relearn-light" ] + # themeVariant = [ "relearn-dark", "relearn-light" ] + themeVariant = [ + { identifier = 'relearn-auto', name = 'Relearn Light/Dark', auto = [] }, + { identifier = 'relearn-light' }, + { identifier = 'relearn-dark' }, + ] collapsibleMenu = true externalLinkTarget = "_blank" ordersectionsby = "weight" -[[menu.shortcuts]] - name = " Tags" - url = "/tags" - weight = 10 +# [[menu.shortcuts]] +# name = " Tags" +# url = "/tags" +# weight = 10 [[menu.shortcuts]] name = " GitHub repo" diff --git a/docs/layouts/partials/logo.html b/docs/layouts/partials/logo.html index bac7ebcb..65bbb122 100644 --- a/docs/layouts/partials/logo.html +++ b/docs/layouts/partials/logo.html @@ -1,23 +1,37 @@ -Resticprofile + + + + Restic + Profile + + \ No newline at end of file diff --git a/docs/layouts/partials/menu-footer.html b/docs/layouts/partials/menu-footer.html index cb986d17..a4f3c7fb 100644 --- a/docs/layouts/partials/menu-footer.html +++ b/docs/layouts/partials/menu-footer.html @@ -1,22 +1,8 @@ - -Star +Star -
Built with by Hugo
+Built with by Hugo
+ diff --git a/docs/static/images/logo.png b/docs/static/images/logo.png new file mode 100644 index 00000000..14fc8993 Binary files /dev/null and b/docs/static/images/logo.png differ diff --git a/docs/themes/hugo-theme-relearn b/docs/themes/hugo-theme-relearn index aedb4384..72a875f1 160000 --- a/docs/themes/hugo-theme-relearn +++ b/docs/themes/hugo-theme-relearn @@ -1 +1 @@ -Subproject commit aedb438436cd539ddc36370d45b25480c60e3c0f +Subproject commit 72a875f1db967152c77914cff4d53f8fcee0e619