From cb6c6a0e05ba8f0dd5c83fe01999516a9088f82b Mon Sep 17 00:00:00 2001 From: Ruben van der Linde Date: Sun, 29 Oct 2023 22:07:55 +0100 Subject: [PATCH] Use footer en header from repository --- .github/workflows/openCatalogi.yaml | 2 + docs/FooterContent.json | 139 ++++++++++++++++++++++++++++ docs/HeaderContent.json | 70 ++++++++++++++ 3 files changed, 211 insertions(+) create mode 100644 docs/FooterContent.json create mode 100644 docs/HeaderContent.json diff --git a/.github/workflows/openCatalogi.yaml b/.github/workflows/openCatalogi.yaml index be012ee..22c4aa7 100644 --- a/.github/workflows/openCatalogi.yaml +++ b/.github/workflows/openCatalogi.yaml @@ -23,6 +23,8 @@ jobs: github_repository_name_as_prefix: false nl_design_theme_classname: 'rotterdam-theme' pull_from_branche: 'main' + footer_content: 'https://raw.githubusercontent.com/OpenCatalogi/.github/main/docs/FooterContent.json' + navbar_content: 'https://raw.githubusercontent.com/OpenCatalogi/.github/main/docs/HeaderContent.json' start_page: 'https://github.com/OpenCatalogi/.github/blob/main/docs/Catalogi.md' favicon_logo: 'https://www.rotterdam.nl/images/logo-base.svg' navbar_logo: 'https://www.rotterdam.nl/images/logo-base.svg' diff --git a/docs/FooterContent.json b/docs/FooterContent.json new file mode 100644 index 0000000..8ab3e56 --- /dev/null +++ b/docs/FooterContent.json @@ -0,0 +1,139 @@ +[ + { + "title": "Publicaties", + "items": [ + { + "value": "Processes", + "ariaLabel": "Processes", + "setFilter": { "filter": "softwareType", "value": "process", "link": "/components" }, + "icon": { "prefix": "fas", "icon": "arrow-right", "placement": "left" } + }, + { + "value": "Data models", + "ariaLabel": "Data models", + "setFilter": { "filter": "softwareType", "value": "schema", "link": "/components" }, + "icon": { "prefix": "fas", "icon": "arrow-right", "placement": "left" } + }, + { + "value": "API's", + "ariaLabel": "API's", + "setFilter": { "filter": "softwareType", "value": "api", "link": "/components" }, + "icon": { "prefix": "fas", "icon": "arrow-right", "placement": "left" } + }, + { + "value": "Initiatives", + "ariaLabel": "Initiatives", + "setFilter": { "filter": "softwareType", "value": "concept", "link": "/components" }, + "icon": { "prefix": "fas", "icon": "arrow-right", "placement": "left" } + } + ] + }, + { + "title": "Documentation", + "items": [ + { + "value": "About OpenCatalogi", + "ariaLabel": "About OpenCatalogi", + "link": "/documentation/about", + "icon": { "prefix": "fas", "icon": "arrow-right", "placement": "left" } + }, + { + "value": "Usage", + "ariaLabel": "Usage", + "link": "/documentation/usage", + "icon": { "prefix": "fas", "icon": "arrow-right", "placement": "left" } + }, + { + "value": "Github", + "ariaLabel": "Github", + "link": "https://github.com/OpenCatalogi", + "icon": { "prefix": "fab", "icon": "github", "placement": "left" } + } + ] + }, + { + "title": "Links", + "items": [ + { + "value": "Common ground", + "ariaLabel": "Common ground", + "link": "https://commonground.nl/", + "customIcon": { + "icon": " ", + "placement": "left" + } + }, + { + "value": "Haven", + "ariaLabel": "Haven", + "link": "https://haven.commonground.nl/", + "customIcon": { + "icon": " ", + "placement": "left" + } + }, + { + "value": "NL design", + "ariaLabel": "NL design", + "link": "https://designsystem.gebruikercentraal.nl", + "icon": { "prefix": "fas", "icon": "external-link", "placement": "left" } + }, + { + "value": "Forum standaardisatie", + "ariaLabel": "Forum standaardisatie", + "link": "https://forumstandaardisatie.nl/", + "customIcon": { + "icon": " ", + "placement": "left" + } + }, + { + "value": "NL design", + "ariaLabel": "NL design", + "link": "https://designsystem.gebruikercentraal.nl", + "icon": { "prefix": "fas", "icon": "external-link", "placement": "left" } + } + ] + }, + { + "title": "Contact", + "items": [ + { + "label": "Rotterdam:", + "value": "www.rotterdam.nl", + "ariaLabel": "Website", + "link": "https://www.rotterdam.nl/", + "icon": { "prefix": "fas", "icon": "globe", "placement": "left" } + }, + { + "value": "14 010", + "ariaLabel": "Phone number", + "link": "tel:14010", + "icon": { "prefix": "fas", "icon": "phone", "placement": "left" } + } + ] + }, + { + "title": "Readme", + "items": [ + { + "value": "Kosten Github Api", + "ariaLabel": "Website", + "markdownLink": "https://github.com/ConductionNL/woo-website-template/blob/main/docs/Kosten.md", + "icon": { "prefix": "fab", "icon": "markdown", "placement": "left" } + }, + { + "value": "Kosten Github Raw", + "ariaLabel": "Website", + "markdownLink": "https://raw.githubusercontent.com/ConductionNL/woo-website-template/main/docs/Kosten.md", + "icon": { "prefix": "fab", "icon": "github", "placement": "left" } + }, + { + "value": "Readme Gitlab raw", + "ariaLabel": "Website", + "markdownLink": "https://gitlab.com/api/v4/projects/7050597/repository/files/README.md/raw", + "icon": { "prefix": "fab", "icon": "gitlab", "placement": "left" } + } + ] + } +] diff --git a/docs/HeaderContent.json b/docs/HeaderContent.json new file mode 100644 index 0000000..24d1c7e --- /dev/null +++ b/docs/HeaderContent.json @@ -0,0 +1,70 @@ +[ + { + "label": "Home", + "type": "internal", + + "current": { + "pathname": "/", + "operator": "equals" + }, + "handleClick": { "link": "/" } + }, + { + "label": "Bijdragen", + "type": "readme", + "current": { + "pathname": "/contributing", + "operator": "includes" + }, + "handleClick": { + "link": "https://github.com/ConductionNL/.github/blob/main/profile/README.md" + } + }, + { + "label": "Organisatie", + "type": "readme", + "current": { + "pathname": "/governance", + "operator": "includes" + }, + "handleClick": { + "link": "https://github.com/ConductionNL/.github/blob/main/profile/README.md" + } + }, + { + "label": "Handleidingen", + "current": { + "pathname": "/docs", + "operator": "includes" + }, + "subItems": [ + { + "label": "Installatie", + "type": "readme", + "current": { + "pathname": "/docs/installation", + "operator": "equals" + }, + "handleClick": { "link": "https://github.com/ConductionNL/.github/blob/main/profile/README.md" } + }, + { + "label": "Architectuur", + "type": "readme", + "current": { + "pathname": "/docs/installation", + "operator": "equals" + }, + "handleClick": { "link": "https://github.com/ConductionNL/.github/blob/main/profile/README.md" } + }, + { + "label": "Publiceren", + "type": "readme", + "current": { + "pathname": "/docs/installation", + "operator": "equals" + }, + "handleClick": { "link": "https://github.com/ConductionNL/.github/blob/main/profile/README.md" } + } + ] + } +]