diff --git a/pwa/src/data/DevHeaderContent.json b/pwa/src/data/DevHeaderContent.json index d47f3a4..56423ce 100644 --- a/pwa/src/data/DevHeaderContent.json +++ b/pwa/src/data/DevHeaderContent.json @@ -1,359 +1,245 @@ [ - { - "label": "Home", - "type": "internal", - "current": { - "pathname": "/" - }, - "handleClick": { - "link": "/" - } + { + "label": "Home", + "type": "internal", + + "current": { + "pathname": "/" }, - { - "label": "Features", - "current": { - "pathname": "/Features" - }, - "subItems": [ - { - "label": "API", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/API" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "API" - } - } - }, - { - "label": "Action Handlers", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Action_handlers" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Action_handlers" - } - } - }, - { - "label": "Architecture", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Architecture" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Architecture" - } - } - }, - { - "label": "Authentication", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Authentication" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Authentication" - } - } - }, - { - "label": "Code Quality", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Code_quality" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Code_quality" - } - } - }, - { - "label": "Commands", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Commands" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Commands" - } - } - }, - { - "label": "Cronjobs", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Cronjobs" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Cronjobs" - } - } - }, - { - "label": "Datalayer", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Datalayer" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Datalayer" - } - } - }, - { - "label": "Design Decisions", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Design_decisions" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Design_decisions" - } - } - }, - { - "label": "Endpoints", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Endpoints" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Endpoints" - } - } - }, - { - "label": "Events", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Events" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Events" - } + "handleClick": { + "link": "/" + } + }, + { + "label": "Documentatie", + "current": { + "pathname": "/Documentatie" + }, + "subItems": [ + { + "label": "Federalisatie", + "type": "internalMarkdown", + "current": { + "pathname": "/Documentatie/Federalisatie" + }, + "handleClick": { + "internalMarkdown": { + "directoryName": "Documentatie", + "fileName": "Federalisatie" } + } + }, + { + "label": "Zoeken", + "type": "internalMarkdown", + "current": { + "pathname": "/Documentatie/Zoeken" }, - { - "label": "Features", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Features" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Features" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Documentatie", + "fileName": "Zoeken" } + } + }, + { + "label": "Architectuur", + "type": "internalMarkdown", + "current": { + "pathname": "/Documentatie/Architectuur" }, - { - "label": "Federalization", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Federalization" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Federalization" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Documentatie", + "fileName": "Architectuur" } + } + }, + { + "label": "Installatie", + "type": "internalMarkdown", + "current": { + "pathname": "/Documentatie/Installatie" }, - { - "label": "ImportExport", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/ImportExport" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "ImportExport" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Documentatie", + "fileName": "INSTALLATION" } + } + }, + { + "label": "Bijdragen", + "type": "internalMarkdown", + "current": { + "pathname": "/Documentatie/Bijdragen" }, - { - "label": "Installation", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Installation" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Installation" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Documentatie", + "fileName": "CONTRIBUTING" } + } + }, + { + "label": "Organisatie", + "type": "internalMarkdown", + "current": { + "pathname": "/Documentatie/Organisatie" }, - { - "label": "Logging", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Logging" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Logging" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Documentatie", + "fileName": "GOVERNANCE" } - }, - { - "label": "Mappings", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Mappings" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Mappings" - } + } + } + ] + }, + { + "label": "Varianten", + "current": { + "pathname": "/Objecten" + }, + "subItems": [ + { + "label": "OpenWoo.app", + "type": "internalMarkdown", + "current": { + "pathname": "/Documentatie/Woo" + }, + "handleClick": { + "internalMarkdown": { + "directoryName": "Documentatie", + "fileName": "Woo" } + } + }, + { + "label": "Open Catalogi", + "type": "internalMarkdown", + "current": { + "pathname": "/Documentatie/OC" }, - { - "label": "Monitoring", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Monitoring" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Monitoring" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Documentatie", + "fileName": "OpenCatalogi" } + } + }, + { + "label": "Open Raads Informatie", + "type": "internalMarkdown", + "current": { + "pathname": "/Documentatie/Open-Raads-Informatie" }, - { - "label": "Notifications", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Notifications" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Notifications" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Documentatie", + "fileName": "ORI" } + } + }, + { + "label": "Single Digital Gateway", + "type": "internalMarkdown", + "current": { + "pathname": "/Documentatie/Single-Digital-Gateway" }, - { - "label": "Plugins", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Plugins" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Plugins" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Documentatie", + "fileName": "SDG" } + } + }, + { + "label": "Algoritme Register", + "type": "internalMarkdown", + "current": { + "pathname": "/Documentatie/Algoritme-Register" }, - { - "label": "README", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/README" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "README" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Documentatie", + "fileName": "AR" } - }, - { - "label": "Schemas", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Schemas" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Schemas" - } + } + } + ] + }, + { + "label": "Objecten", + "current": { + "pathname": "/Schema" + }, + "subItems": [ + { + "label": "Publicatie", + "type": "internalMarkdown", + "current": { + "pathname": "/Schema/Publicatie" + }, + "handleClick": { + "internalMarkdown": { + "directoryName": "Schema", + "fileName": "publicatie" } + } + }, + { + "label": "Bijlage", + "type": "internalMarkdown", + "current": { + "pathname": "/Schema/Bijlage" }, - { - "label": "Security", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Security" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Security" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Schema", + "fileName": "bijlage" } + } + }, + { + "label": "Organisatie", + "type": "internalMarkdown", + "current": { + "pathname": "/Schema/Organisatie" }, - { - "label": "Sources", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Sources" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Sources" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Schema", + "fileName": "organisatie" } + } + }, + { + "label": "Thema", + "type": "internalMarkdown", + "current": { + "pathname": "/Schema/Thema" }, - { - "label": "Synchronizations", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Synchronizations" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Synchronizations" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Schema", + "fileName": "thema" } + } + }, + { + "label": "Index", + "type": "internalMarkdown", + "current": { + "pathname": "/Schema/Index" }, - { - "label": "Twig", - "type": "internalMarkdown", - "current": { - "pathname": "/Features/Twig" - }, - "handleClick": { - "internalMarkdown": { - "directoryName": "Features", - "fileName": "Twig" - } + "handleClick": { + "internalMarkdown": { + "directoryName": "Schema", + "fileName": "index" } } - ] - } - ] - \ No newline at end of file + } + ] + } +] \ No newline at end of file diff --git a/pwa/src/hooks/htmlParser/anchor/getAnchor.tsx b/pwa/src/hooks/htmlParser/anchor/getAnchor.tsx index 066ebbc..f01d6be 100644 --- a/pwa/src/hooks/htmlParser/anchor/getAnchor.tsx +++ b/pwa/src/hooks/htmlParser/anchor/getAnchor.tsx @@ -14,7 +14,7 @@ export const getAnchor = ( const handleClick = (e: any) => { e.preventDefault(); - const targetFile = _.upperFirst(props.href.substring(props.href.lastIndexOf("/") + 1).replace(".md", "")); + const targetFile = props.href.substring(props.href.lastIndexOf("/") + 1).replace(".md", ""); // No link if (!props.href) { diff --git a/pwa/src/layout/Head.tsx b/pwa/src/layout/Head.tsx index 0ad82d1..f9768a8 100644 --- a/pwa/src/layout/Head.tsx +++ b/pwa/src/layout/Head.tsx @@ -7,7 +7,7 @@ import { useGatsbyContext } from "../context/gatsby"; export const Head: React.FC = () => { const { gatsbyContext } = useGatsbyContext(); - const theme = process.env.GATSBY_NL_DESIGN_THEME_CLASSNAME ?? "conduction-theme"; + const theme = "open-webconcept-theme" ?? "conduction-theme"; return ( = ({ layoutClassName icon: , }); + process.env.GATSBY_REDOCLY_URL !== "false" && + optionalNavItemsArray.push({ + label: t("Redocly"), + type: "external", + current: { + pathname: "/redocly", + }, + handleClick: { + link: process.env.GATSBY_REDOCLY_URL ?? "", + }, + icon: , + }); + setOptionalNavItems(optionalNavItemsArray); }, []); diff --git a/pwa/static/.env.development b/pwa/static/.env.development index a67744f..19829bd 100644 --- a/pwa/static/.env.development +++ b/pwa/static/.env.development @@ -3,15 +3,16 @@ GATSBY_GITHUB_REPOSITORY_NAME=product-website-template # options: "true" | "false" GATSBY_USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX=false GATSBY_GITHUB_REPOSITORY_URL=https://github.com/OpenCatalogi/product-website-template -GATSBY_GITHUB_API_BASE_URL=https://api.github.com/repos/OpenCatalogi/product-website-template/contents -GATSBY_GITHUB_DOCS_DIRECTORY_PATHS=[{"name": "Features", "location": "/docs/features"}, {"name": "Roadmap", "location": "/docs/roadmap"}, {"name": "Usecases", "location": "/docs/usecases"}] +GATSBY_GITHUB_API_BASE_URL=https://api.github.com/repos/CommonGateway/OpenIndex/contents +GATSBY_GITHUB_DOCS_DIRECTORY_PATHS=[{"name": "Schema","location": "/docs/schema"},{"name": "Documentatie","location": "/docs"}] # Links GATSBY_SLACK_URL="false" +GATSBY_REDOCLY_URL="false" GATSBY_READ_THE_DOCS_URL="https://commongateway.readthedocs.io/en/latest/" # Navbar -GATSBY_NAVBAR_CONTENT="https://raw.githubusercontent.com/OpenCatalogi/product-website-template/main/pwa/src/templates/templateParts/header/HeaderContent.json" +GATSBY_NAVBAR_CONTENT="https://raw.githubusercontent.com/CommonGateway/OpenIndex/master/docs/NavbarContent.json" # Footer GATSBY_FOOTER_CONTENT="https://raw.githubusercontent.com/OpenCatalogi/product-website-template/main/pwa/src/templates/templateParts/footer/FooterContent.json" @@ -28,11 +29,11 @@ GATSBY_JUMBOTRON_DESCRIPTION=Wij zijn wat je zou kunnen noemen Digital Socials, GATSBY_JUMBOTRON_IMAGE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/3k7AP91NQD/lmY3/49bKv+LViL/mms+/3U1AP95OwD/eTsA/3g5AP99QQj/8erk//n28/+DShP/dzcA/3k7AP95OwD/dTUA/5ZmN/+PWyr/i1Yi/5prPv91NQD/eTsA/3k7AP94OQD/fUEI//Hq5P/59vP/g0oT/3c3AP95OwD/eTsA/3U1AP+WZjf/j1sq/4tWIv+aaz7/dTUA/3k7AP95OwD/eDkA/31BCP/x6uT/+fbz/4NKE/93NwD/eTsA/3k7AP91NQD/lmU2/5BcK/2LViL/mms+/3U1AP95OwD/eTsA/3g5AP99QQn/+fXy//////+ESxT/dzcA/3k7AP95OwD/dDMA/59zSP+LVSHni1Yi/5prPv91NQD/eTsA/3k7AP95OgD/ez4E/7iYcP+9n3f/f0MK/3g5AP95OwD/eToA/3s9Bf+rhF7/ejsEqItWIv+aaz7/dTUA/3k7AP95OwD/eTsA/3k8AP9lD2X/Ywtw/3k6Av95PAD/eTsA/3MxAP+cbkL/lWQ2/nU1ADyLViL/mms+/3U1AP95OwD/eTsA/3k7AP96PAH/aA+Z/2YLp/95OwT/eTsA/3MyAP+OWin/o3dO/6BzSZiOWScAjFcj/5hoOf9xLgD/dTUA/3U1AP91NQD/dTUA/3QzAP90MwD/dDQA/31ADP+ecUn/onZP/5tsQLrz7ugKj1spAIlSHf+shV//k2E3/5ZlN/+WZTf/lmU3/5ZlN/+WZTX/lmY3/6J2UP+qgl//k2E59qN4UpDw6eMI9/PvAIpTIAB6PQP/jVgm/5BdLP+QXSz/kF0s/5BdLP+QXSz/kF0s/5BdLPuIURzhdzgAnnY2ADmQXSwAjlooAItVIgB8PwUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAABAAAAAwAAAA8AAA== GATSBY_PAGE_TITLE="Common Gateway" # NL-Design Theme -GATSBY_NL_DESIGN_THEME_CLASSNAME=conduction-theme +GATSBY_NL_DESIGN_THEME_CLASSNAME=dimpact-theme # Security.txt https://www.gatsbyjs.com/plugins/gatsby-plugin-security-txt/ GATSBY_SECURITY_TXT_INTRO=Information related to reporting security vulnerabilities of this site.