diff --git a/docs/articles/api-key-administration.md b/docs/articles/api-key-administration.md index 1a07dabe..8bf008de 100644 --- a/docs/articles/api-key-administration.md +++ b/docs/articles/api-key-administration.md @@ -31,7 +31,7 @@ the form. Once a consumer is created, you can view or copy the API Key by clicking the icons shown. -![Copy or View](/media/api-key-administration/image-5.png) +![Copy or View](../../public/media/api-key-administration/image-5.png) If you're using the Zuplo [Developer Portal](./developer-portal.md), we have an integration with the API Key API that allows developers to access their API diff --git a/src/DocusaurusDocsLicense.tsx b/src/DocusaurusDocsLicense.tsx new file mode 100644 index 00000000..a97bee6c --- /dev/null +++ b/src/DocusaurusDocsLicense.tsx @@ -0,0 +1,23 @@ +/** + * Zudoku takes inspiration from some of the great features os Docusaurus. + * As such we duplicate some of the Docusaurus documentation to provide + * a consistent experience and make migration easier. + * + * Docusaurus Docs are licensed under Creative Commons Attribution 4.0 + * International (CC BY 4.0). This means that any doc we copy content from + * needs to be attributed and linked to the original source. + */ +export function DocusaurusDocsLicense({ sourceUrl }: { sourceUrl: string }) { + return ( +
+ Portions of this document are adapted from from the{" "} + Docusaurus project, created by Meta + Platforms, Inc., and is licensed under the{" "} + + Creative Commons Attribution 4.0 International + + (CC BY 4.0) license. The original document + has been modified. +
+ ); +} diff --git a/src/EmbeddedChat.tsx b/src/EmbeddedChat.tsx index d85e6237..dde5011c 100644 --- a/src/EmbeddedChat.tsx +++ b/src/EmbeddedChat.tsx @@ -3,7 +3,6 @@ import { InkeepEmbeddedChat, type InkeepWidgetBaseSettings, } from "@inkeep/widgets"; -import React from "react"; const baseSettings: InkeepWidgetBaseSettings = { apiKey: "499c156cf7a9798343949c8bb5665ac95e48132c6d68c42e", diff --git a/src/mdx/static-images.ts b/src/mdx/static-images.ts new file mode 100644 index 00000000..ae6d01dd --- /dev/null +++ b/src/mdx/static-images.ts @@ -0,0 +1,52 @@ +import { Root } from "mdast"; +import { Plugin } from "unified"; +import { visit } from "unist-util-visit"; +import type { VFile } from "vfile"; + +/** + * Copies images from the /static folder to /public if they are referenced by a + * @returns + */ +const rehypeStaticImages: Plugin<[], Root, Root> = + () => async (root, vfile: VFile) => { + const promises: Promise