From f1e4f0a1aeed94dd244b475177a811a58819a6c6 Mon Sep 17 00:00:00 2001 From: Johann Schopplich Date: Thu, 8 Aug 2024 08:57:37 +0200 Subject: [PATCH] docs: add Kirby Headless docs --- components/Header.vue | 20 +- content/1.docs/1.live-preview/1.index.md | 16 +- content/1.docs/1.live-preview/_dir.yml | 1 + .../1.docs/2.content-translator/1.index.md | 18 +- content/1.docs/2.content-translator/_dir.yml | 1 + content/1.docs/3.headless/1.index.md | 50 +++++ content/1.docs/3.headless/2.usage.md | 191 +++++++++++++++++ content/1.docs/3.headless/3.field-methods.md | 194 ++++++++++++++++++ content/1.docs/3.headless/4.page-methods.md | 44 ++++ content/1.docs/3.headless/5.api-builder.md | 120 +++++++++++ content/1.docs/3.headless/6.migration.md | 22 ++ content/1.docs/3.headless/_dir.yml | 2 + pages/docs.vue | 4 +- 13 files changed, 652 insertions(+), 31 deletions(-) create mode 100644 content/1.docs/3.headless/1.index.md create mode 100644 content/1.docs/3.headless/2.usage.md create mode 100644 content/1.docs/3.headless/3.field-methods.md create mode 100644 content/1.docs/3.headless/4.page-methods.md create mode 100644 content/1.docs/3.headless/5.api-builder.md create mode 100644 content/1.docs/3.headless/6.migration.md create mode 100644 content/1.docs/3.headless/_dir.yml diff --git a/components/Header.vue b/components/Header.vue index 71dc2d9..7aa6140 100644 --- a/components/Header.vue +++ b/components/Header.vue @@ -17,23 +17,27 @@ const links = computed(() => [ { label: "Live Preview", to: "/live-preview", + icon: "i-ri-presentation-fill", description: "Real-time page preview", }, { label: "Content Translator", to: "/content-translator", - description: "DeepL-powered translations", + icon: "i-ri-translate", + description: "Content translation in the Panel or server-side", }, { label: "Kirby Copilot", to: "https://kirbycopilot.com", + icon: "i-ri-sparkling-fill", description: "AI-powered content generation", target: "_blank", }, { label: "Kirby SEO Audit", - description: "State-of-the-art SEO analysis", to: "https://kirbyseo.com", + icon: "i-ri-seo-fill", + description: "State-of-the-art SEO analysis", target: "_blank", }, ], @@ -44,17 +48,17 @@ const links = computed(() => [ { label: "Live Preview", to: "/docs/live-preview", - description: "Content changes live in the Panel", + icon: "i-ri-presentation-fill", }, { label: "Content Translator", to: "/docs/content-translator", - description: "Translate your content in the Panel or with the PHP API", + icon: "i-ri-translate", }, { - label: "Kirby Headless", + label: "Headless", to: "/docs/headless", - description: "Kirby, but headless only", + icon: "i-ri-braces-fill", }, ], }, @@ -70,8 +74,6 @@ const links = computed(() => [ ]); const navigation = inject>("navigation", ref([])); -// TODO: Remove when fixed upstream -const _mapContentNavigation = mapContentNavigation;