diff --git a/docusaurus.config.js b/docusaurus.config.js index 7b6e4215..22c01cf9 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -1,232 +1,241 @@ // @ts-check // Note: type annotations allow type checking and IDEs autocompletion -const lightCodeTheme = require('prism-react-renderer/themes/nightOwlLight'); -const darkCodeTheme = require('prism-react-renderer/themes/dracula'); -const baseUrlName = '/content'; +const lightCodeTheme = require("prism-react-renderer/themes/nightOwlLight"); +const darkCodeTheme = require("prism-react-renderer/themes/dracula"); +const baseUrlName = "/content"; /** @type {import('@docusaurus/types').Config} */ const config = { - title: 'Orkes Conductor Documentation', - tagline: 'Platform for building scalable reliable distributed systems', - url: 'https://orkes.io', - baseUrl: baseUrlName + '/', - onBrokenLinks: 'warn', - onBrokenMarkdownLinks: 'warn', - favicon: 'https://orkes.io/icons/icon-144x144.png', - organizationName: 'orkes-io', // Usually your GitHub org/user name. - projectName: 'docs', // Usually your repo name. - trailingSlash: false, - scripts: [ - 'https://www.googletagmanager.com/gtag/js?id=G-4400JPTLRF', - { - src: baseUrlName + '/js/ga.js', - async: true, - }, - { - src: baseUrlName + '/js/cookie-consent.js', - }, - { - src: 'https://player.vimeo.com/api/player.js', - }, + title: "Orkes Conductor Documentation", + tagline: "Platform for building scalable reliable distributed systems", + url: "https://orkes.io", + baseUrl: baseUrlName + "/", + onBrokenLinks: "warn", + onBrokenMarkdownLinks: "warn", + favicon: "https://orkes.io/icons/icon-144x144.png", + organizationName: "orkes-io", // Usually your GitHub org/user name. + projectName: "docs", // Usually your repo name. + trailingSlash: false, + scripts: [ + "https://www.googletagmanager.com/gtag/js?id=G-4400JPTLRF", + { + src: baseUrlName + "/js/ga.js", + async: true, + }, + { + src: baseUrlName + "/js/cookie-consent.js", + }, + { + src: baseUrlName + "/js/apollo.js", + }, + { + src: "https://player.vimeo.com/api/player.js", + }, + ], + plugins: [ + [ + "@docusaurus/plugin-client-redirects", + { + redirects: [], + }, ], - plugins: [ - [ - '@docusaurus/plugin-client-redirects', - { - redirects: [], - }, - ], - [ - '@docusaurus/plugin-sitemap', - { - id: 'plugin-sitemap', - changefreq: 'hourly', - priority: 0.9, - }, - ], - require.resolve("docusaurus-plugin-image-zoom"), + [ + "@docusaurus/plugin-sitemap", + { + id: "plugin-sitemap", + changefreq: "hourly", + priority: 0.9, + }, ], - i18n: { - defaultLocale: 'en', - locales: ['en'], - }, + require.resolve("docusaurus-plugin-image-zoom"), + ], + i18n: { + defaultLocale: "en", + locales: ["en"], + }, - presets: [ - [ - 'classic', - /** @type {import('@docusaurus/preset-classic').Options} */ - ({ - docs: { - routeBasePath: '/', - breadcrumbs: true, - sidebarPath: require.resolve('./sidebars.js'), - sidebarCollapsible: true, - editUrl: 'https://github.com/orkes-io/docs/edit/main/', - remarkPlugins: [ - [require('./plugin/'), {sync: true}], - ], - }, - theme: { - customCss: require.resolve('./src/css/custom.css'), - }, - }), - ], - ], - themes: [ - 'docusaurus-theme-search-typesense', - // '@saucelabs/theme-github-codeblock' + presets: [ + [ + "classic", + /** @type {import('@docusaurus/preset-classic').Options} */ + ({ + docs: { + routeBasePath: "/", + breadcrumbs: true, + sidebarPath: require.resolve("./sidebars.js"), + sidebarCollapsible: true, + editUrl: "https://github.com/orkes-io/docs/edit/main/", + remarkPlugins: [[require("./plugin/"), { sync: true }]], + }, + theme: { + customCss: require.resolve("./src/css/custom.css"), + }, + }), ], + ], + themes: [ + "docusaurus-theme-search-typesense", + // '@saucelabs/theme-github-codeblock' + ], - themeConfig: + themeConfig: /** @type {import('@docusaurus/preset-classic').ThemeConfig} */ - ({ - metadata: [ - { - name: 'keywords', - content: 'microservices,orchestration,event-driven,workflow,automation,bpmn', - }, + ({ + metadata: [ + { + name: "keywords", + content: + "microservices,orchestration,event-driven,workflow,automation,bpmn", + }, + ], + colorMode: { + defaultMode: "light", + }, + docs: { + sidebar: { + autoCollapseCategories: false, + }, + }, + zoom: { + selector: ".markdown :not(em) > img", + background: { + light: "rgb(255, 255, 255)", + dark: "rgb(50, 50, 50)", + }, + config: { + // options you can specify via https://github.com/francoischalifour/medium-zoom#usage + }, + }, + navbar: { + title: "Conductor Docs", + logo: { + alt: "Orkes Conductor", + src: "img/branding/orkes-logo-purple-4x.png", + srcDark: "img/branding/orkes-logo-purple-inverted-4x.png", + }, + items: [ + { + type: "doc", + docId: "getting-started/first-workflow-application", + position: "left", + label: "Getting Started", + }, + { + href: "https://orkes.io", + label: "orkes.io", + target: "_orkes_io", + position: "left", + }, + { + href: "https://github.com/conductor-oss/conductor", + label: "GitHub", + target: "_orkes_io", + position: "right", + }, + { + type: "search", + position: "right", + }, + ], + }, + footer: { + style: "dark", + logo: { + alt: "Orkes Logo", + src: "img/branding/orkes-logo-purple-inverted-2x.png", + href: "https://orkes.io", + width: 160, + height: 51, + }, + links: [ + { + title: "Docs", + items: [ + { + label: "Core Concepts", + to: "/content/core-concepts", + }, + { + label: "Getting Started", + to: "/content/getting-started/first-workflow-application", + }, + { + label: "SDKs", + to: "/content/category/sdks", + }, + { + label: "Access Control & Security", + to: "/content/category/access-control-and-security", + }, + { + label: "Developer Guide", + to: "/content/category/developer-guides", + }, ], - colorMode: { - defaultMode: 'light', - }, - docs: { - sidebar: { - autoCollapseCategories: false, - }, - }, - zoom: { - selector: '.markdown :not(em) > img', - background: { - light: 'rgb(255, 255, 255)', - dark: 'rgb(50, 50, 50)' - }, - config: { - // options you can specify via https://github.com/francoischalifour/medium-zoom#usage - } - }, - navbar: { - title: 'Conductor Docs', - logo: { - alt: 'Orkes Conductor', - src: 'img/branding/orkes-logo-purple-4x.png', - srcDark: 'img/branding/orkes-logo-purple-inverted-4x.png', - }, - items: [ - { - type: 'doc', - docId: 'getting-started/first-workflow-application', - position: 'left', - label: 'Getting Started', - }, - { - href: 'https://orkes.io', - label: 'orkes.io', - target: '_orkes_io', - position: 'left', - }, - { - href: 'https://github.com/conductor-oss/conductor', - label: 'GitHub', - target: '_orkes_io', - position: 'right', - }, - { - type: 'search', - position: 'right', - }, - ], - }, - footer: { - style: 'dark', - logo: { - alt: 'Orkes Logo', - src: 'img/branding/orkes-logo-purple-inverted-2x.png', - href: 'https://orkes.io', - width: 160, - height: 51, - }, - links: [ - { - title: 'Docs', - items: [ - { - label: 'Core Concepts', - to: '/content/core-concepts', - }, - { - label: 'Getting Started', - to: '/content/getting-started/first-workflow-application', - }, - { - label: 'SDKs', - to: '/content/category/sdks', - }, - { - label: 'Access Control & Security', - to: '/content/category/access-control-and-security', - }, - { - label: 'Developer Guide', - to: '/content/category/developer-guides', - }, - ], - }, - { - title: 'Community', - items: [ - { - label: 'Stack Overflow', - href: 'https://stackoverflow.com/questions/tagged/netflix-conductor', - }, - { - label: 'Slack Community', - href: 'https://join.slack.com/t/orkes-conductor/shared_invite/zt-xyxqyseb-YZ3hwwAgHJH97bsrYRnSZg', - }, - { - label: 'Twitter', - href: 'https://twitter.com/orkesio', - }, - ], - }, - { - title: 'More', - items: [ - { - label: 'Blog', - to: 'https://orkes.io/blog/', - }, - { - label: 'GitHub', - href: 'https://github.com/conductor-oss/conductor', - }, - ], - }, - ], - copyright: `Copyright © ${new Date().getFullYear()} Orkes Inc`, - }, - prism: { - theme: lightCodeTheme, - darkTheme: darkCodeTheme, - additionalLanguages: ['java', 'json', 'python', 'clojure', 'go', 'csharp'], + }, + { + title: "Community", + items: [ + { + label: "Stack Overflow", + href: "https://stackoverflow.com/questions/tagged/netflix-conductor", + }, + { + label: "Slack Community", + href: "https://join.slack.com/t/orkes-conductor/shared_invite/zt-xyxqyseb-YZ3hwwAgHJH97bsrYRnSZg", + }, + { + label: "Twitter", + href: "https://twitter.com/orkesio", + }, + ], + }, + { + title: "More", + items: [ + { + label: "Blog", + to: "https://orkes.io/blog/", + }, + { + label: "GitHub", + href: "https://github.com/conductor-oss/conductor", + }, + ], + }, + ], + copyright: `Copyright © ${new Date().getFullYear()} Orkes Inc`, + }, + prism: { + theme: lightCodeTheme, + darkTheme: darkCodeTheme, + additionalLanguages: [ + "java", + "json", + "python", + "clojure", + "go", + "csharp", + ], + }, + typesense: { + typesenseCollectionName: "orkes-content", + typesenseServerConfig: { + nodes: [ + { + host: "uo5hblry7wamtzg0p-1.a1.typesense.net", + port: 443, + protocol: "https", }, - typesense: { - typesenseCollectionName: 'orkes-content', - typesenseServerConfig: { - nodes: [ - { - host: 'uo5hblry7wamtzg0p-1.a1.typesense.net', - port: 443, - protocol: 'https', - }, - ], - apiKey: 'cEkYaeSxkAG9QLqD1CtmRiTuUvMZ59Uz', - }, - typesenseSearchParameters: {}, + ], + apiKey: "cEkYaeSxkAG9QLqD1CtmRiTuUvMZ59Uz", + }, + typesenseSearchParameters: {}, - // Optional - contextualSearch: true, - }, - }), + // Optional + contextualSearch: true, + }, + }), }; module.exports = config; diff --git a/static/js/apollo.js b/static/js/apollo.js new file mode 100644 index 00000000..549e24f2 --- /dev/null +++ b/static/js/apollo.js @@ -0,0 +1,4 @@ +function initApollo(){var n=Math.random().toString(36).substring(7),o=document.createElement("script"); +o.src="https://assets.apollo.io/micro/website-tracker/tracker.iife.js?nocache="+n,o.async=!0,o.defer=!0, +o.onload=function(){window.trackingFunctions.onLoad({appId:"6618375bc3f47001afd0877d"})}, +document.head.appendChild(o)}initApollo(); \ No newline at end of file