2021-04-15 11:22:37 +00:00
|
|
|
/** @type {import('@docusaurus/types').DocusaurusConfig} */
|
|
|
|
module.exports = {
|
2022-02-02 12:45:01 +00:00
|
|
|
title: "ZITADEL Docs",
|
2021-12-30 08:01:47 +00:00
|
|
|
trailingSlash: false,
|
2022-12-06 19:33:13 +00:00
|
|
|
url: "https://zitadel.com",
|
2023-02-23 11:08:06 +00:00
|
|
|
baseUrl: "/docs",
|
2022-06-30 14:06:01 +00:00
|
|
|
onBrokenLinks: "throw",
|
2022-02-02 12:45:01 +00:00
|
|
|
onBrokenMarkdownLinks: "warn",
|
|
|
|
favicon: "img/favicon.ico",
|
2022-05-16 14:01:46 +00:00
|
|
|
organizationName: "zitadel",
|
2022-02-02 12:45:01 +00:00
|
|
|
projectName: "zitadel",
|
|
|
|
scripts: [
|
|
|
|
{
|
2022-12-06 19:33:13 +00:00
|
|
|
src: "/docs/proxy/js/script.js",
|
2022-02-02 12:45:01 +00:00
|
|
|
async: true,
|
|
|
|
defer: true,
|
2022-12-06 19:33:13 +00:00
|
|
|
"data-domain": "zitadel.com",
|
|
|
|
"data-api": "/docs/proxy/api/event",
|
2022-02-02 12:45:01 +00:00
|
|
|
},
|
|
|
|
],
|
2022-11-08 15:15:12 +00:00
|
|
|
customFields: {
|
2022-12-05 17:36:12 +00:00
|
|
|
description:
|
|
|
|
"Documentation for ZITADEL - The best of Auth0 and Keycloak combined. Built for the serverless era.",
|
2022-11-08 15:15:12 +00:00
|
|
|
},
|
2021-04-15 11:22:37 +00:00
|
|
|
themeConfig: {
|
2022-12-05 17:36:12 +00:00
|
|
|
metadata: [
|
|
|
|
{
|
|
|
|
name: "keywords",
|
|
|
|
content:
|
|
|
|
"zitadel, documentation, jwt, saml, oauth2, authentication, serverless, login, auth, authorization, sso, openid-connect, oidc, mfa, 2fa, passkeys, fido2, docker",
|
|
|
|
},
|
2023-01-11 10:45:35 +00:00
|
|
|
{
|
|
|
|
property: "og:type",
|
|
|
|
content: "website",
|
|
|
|
},
|
|
|
|
{ property: "og:url", content: "https://www.zitadel.com/docs" },
|
|
|
|
{
|
|
|
|
property: "og:image",
|
2023-02-17 10:48:37 +00:00
|
|
|
content: "https://www.zitadel.com/docs/img/preview.png",
|
2023-01-11 10:45:35 +00:00
|
|
|
},
|
|
|
|
{ property: "twitter:card", content: "summary_large_image" },
|
|
|
|
{ property: "twitter:url", content: "https://www.zitadel.com/docs" },
|
|
|
|
{ property: "twitter:title", content: "ZITADEL Docs" },
|
|
|
|
{
|
|
|
|
property: "twitter:image",
|
2023-02-17 10:48:37 +00:00
|
|
|
content: "https://www.zitadel.com/docs/img/preview.png",
|
2023-01-11 10:45:35 +00:00
|
|
|
},
|
2022-12-05 17:36:12 +00:00
|
|
|
],
|
2022-07-14 09:52:04 +00:00
|
|
|
zoom: {
|
2022-10-31 07:00:22 +00:00
|
|
|
selector: ".markdown :not(em) > img",
|
2022-07-14 09:52:04 +00:00
|
|
|
background: {
|
2022-10-31 07:00:22 +00:00
|
|
|
light: "rgb(243, 244, 246)",
|
|
|
|
dark: "rgb(55, 59, 82)",
|
2022-07-14 09:52:04 +00:00
|
|
|
},
|
|
|
|
// options you can specify via https://github.com/francoischalifour/medium-zoom#usage
|
2022-10-31 07:00:22 +00:00
|
|
|
config: {},
|
2022-07-14 09:52:04 +00:00
|
|
|
},
|
2021-04-15 11:22:37 +00:00
|
|
|
navbar: {
|
2021-10-13 08:06:12 +00:00
|
|
|
// title: 'ZITADEL',
|
2021-04-15 11:22:37 +00:00
|
|
|
logo: {
|
2022-02-02 12:45:01 +00:00
|
|
|
alt: "ZITADEL logo",
|
|
|
|
src: "img/zitadel-logo-dark.svg",
|
|
|
|
srcDark: "img/zitadel-logo-light.svg",
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
|
|
|
items: [
|
|
|
|
{
|
2022-02-02 12:45:01 +00:00
|
|
|
type: "doc",
|
2023-03-07 07:33:13 +00:00
|
|
|
label: "Documentation",
|
2022-02-02 12:45:01 +00:00
|
|
|
docId: "guides/overview",
|
|
|
|
position: "left",
|
2023-03-07 07:33:13 +00:00
|
|
|
},
|
2021-04-15 11:22:37 +00:00
|
|
|
{
|
2022-02-02 12:45:01 +00:00
|
|
|
type: "doc",
|
|
|
|
label: "APIs",
|
|
|
|
docId: "apis/introduction",
|
|
|
|
position: "left",
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
2022-12-20 10:17:27 +00:00
|
|
|
{
|
|
|
|
type: "doc",
|
|
|
|
label: "Self-Hosting",
|
|
|
|
docId: "self-hosting/deploy/overview",
|
|
|
|
position: "left",
|
|
|
|
},
|
2021-06-15 09:18:41 +00:00
|
|
|
{
|
2022-02-02 12:45:01 +00:00
|
|
|
type: "doc",
|
2023-05-12 08:51:17 +00:00
|
|
|
docId: "legal",
|
2022-02-02 12:45:01 +00:00
|
|
|
label: "Legal",
|
2023-03-07 07:33:13 +00:00
|
|
|
position: "right",
|
2021-06-15 09:18:41 +00:00
|
|
|
},
|
2021-04-15 11:22:37 +00:00
|
|
|
{
|
2022-12-05 17:36:12 +00:00
|
|
|
type: "html",
|
2022-02-02 12:45:01 +00:00
|
|
|
position: "right",
|
2022-12-05 17:36:12 +00:00
|
|
|
value:
|
|
|
|
'<a href="https://github.com/zitadel/zitadel/discussions" style="text-decoration: none; width: 20px; height: 24px; display: flex"><i class="las la-comments"></i></a>',
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
2022-07-18 15:16:45 +00:00
|
|
|
{
|
2022-12-05 17:36:12 +00:00
|
|
|
type: "html",
|
2022-07-18 15:16:45 +00:00
|
|
|
position: "right",
|
2022-12-05 17:36:12 +00:00
|
|
|
value:
|
|
|
|
'<a href="https://github.com/zitadel/zitadel" style="text-decoration: none; width: 20px; height: 24px; display: flex"><i class="lab la-github"></i></a>',
|
2022-07-18 15:16:45 +00:00
|
|
|
},
|
|
|
|
{
|
2022-12-05 17:36:12 +00:00
|
|
|
type: "html",
|
2022-07-18 15:16:45 +00:00
|
|
|
position: "right",
|
2022-12-05 17:36:12 +00:00
|
|
|
value:
|
|
|
|
'<a href="https://zitadel.com/chat" style="text-decoration: none; width: 20px; height: 24px; display: flex; margin: 0 .5rem 0 0"><i class="lab la-discord"></i></a>',
|
2022-07-18 15:16:45 +00:00
|
|
|
},
|
2021-04-15 11:22:37 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
footer: {
|
|
|
|
links: [
|
|
|
|
{
|
2022-02-02 12:45:01 +00:00
|
|
|
title: "Community",
|
2021-04-15 11:22:37 +00:00
|
|
|
items: [
|
2022-05-23 20:53:43 +00:00
|
|
|
{
|
|
|
|
label: "Chat",
|
|
|
|
href: "https://zitadel.com/chat",
|
|
|
|
},
|
2021-04-15 11:22:37 +00:00
|
|
|
{
|
2022-02-02 12:45:01 +00:00
|
|
|
label: "GitHub Discussions",
|
2022-04-26 23:01:45 +00:00
|
|
|
href: "https://github.com/zitadel/zitadel/discussions",
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
|
|
|
{
|
2022-02-02 12:45:01 +00:00
|
|
|
label: "Twitter",
|
2022-05-16 14:01:46 +00:00
|
|
|
href: "https://twitter.com/zitadel",
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
|
|
|
{
|
2022-02-02 12:45:01 +00:00
|
|
|
label: "Linkedin",
|
2022-05-16 14:01:46 +00:00
|
|
|
href: "https://www.linkedin.com/company/zitadel/",
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
|
|
|
{
|
2022-02-02 12:45:01 +00:00
|
|
|
label: "Blog",
|
2022-05-16 14:01:46 +00:00
|
|
|
href: "https://zitadel.com/blog",
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
2022-05-23 20:53:43 +00:00
|
|
|
title: "Legal",
|
2021-04-15 11:22:37 +00:00
|
|
|
items: [
|
2022-05-23 20:53:43 +00:00
|
|
|
{
|
|
|
|
label: "Terms and Conditions",
|
2022-12-06 19:33:13 +00:00
|
|
|
href: "/legal/terms-of-service",
|
2022-05-23 20:53:43 +00:00
|
|
|
},
|
2021-04-15 11:22:37 +00:00
|
|
|
{
|
2022-05-23 20:53:43 +00:00
|
|
|
label: "Privacy Policy",
|
2022-12-06 19:33:13 +00:00
|
|
|
href: "/legal/privacy-policy",
|
2022-05-23 20:53:43 +00:00
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: "About",
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
label: "Website",
|
|
|
|
href: "https://zitadel.com",
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
|
|
|
{
|
2022-02-02 12:45:01 +00:00
|
|
|
label: "Contact",
|
2022-05-16 14:01:46 +00:00
|
|
|
href: "https://zitadel.com/contact/",
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
|
|
|
{
|
2022-02-02 12:45:01 +00:00
|
|
|
label: "GitHub",
|
2022-05-16 14:01:46 +00:00
|
|
|
href: "https://github.com/zitadel",
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
|
|
|
{
|
2022-02-02 12:45:01 +00:00
|
|
|
label: "Status",
|
2022-08-02 18:21:57 +00:00
|
|
|
href: "https://status.zitadel.com/",
|
2023-01-27 14:26:13 +00:00
|
|
|
}
|
2021-04-15 11:22:37 +00:00
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2022-05-20 14:20:31 +00:00
|
|
|
copyright: `Copyright © ${new Date().getFullYear()} ZITADEL Docs - Built with Docusaurus.`,
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
2021-04-20 15:10:03 +00:00
|
|
|
algolia: {
|
2022-05-30 14:51:45 +00:00
|
|
|
appId: "8H6ZKXENLO",
|
|
|
|
apiKey: "124fe1c102a184bc6fc70c75dc84f96f",
|
2022-10-31 07:00:22 +00:00
|
|
|
indexName: "zitadel",
|
|
|
|
selector: "div#",
|
|
|
|
},
|
2021-04-27 13:10:13 +00:00
|
|
|
prism: {
|
2022-08-15 15:40:43 +00:00
|
|
|
additionalLanguages: ["csharp", "dart", "groovy", "regex"],
|
2021-04-27 13:10:13 +00:00
|
|
|
},
|
2022-10-31 07:00:22 +00:00
|
|
|
colorMode: {
|
|
|
|
defaultMode: "dark",
|
|
|
|
disableSwitch: false,
|
|
|
|
respectPrefersColorScheme: true,
|
|
|
|
},
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
2023-02-23 11:08:06 +00:00
|
|
|
webpack: {
|
|
|
|
jsLoader: (isServer) => ({
|
|
|
|
loader: require.resolve('swc-loader'),
|
|
|
|
options: {
|
|
|
|
jsc: {
|
|
|
|
parser: {
|
|
|
|
syntax: 'typescript',
|
|
|
|
tsx: true,
|
|
|
|
},
|
|
|
|
target: 'es2017',
|
|
|
|
},
|
|
|
|
module: {
|
|
|
|
type: isServer ? 'commonjs' : 'es6',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}),
|
|
|
|
},
|
2021-04-15 11:22:37 +00:00
|
|
|
presets: [
|
|
|
|
[
|
2023-02-23 11:08:06 +00:00
|
|
|
"classic",
|
|
|
|
/** @type {import('@docusaurus/preset-classic').Options} */
|
|
|
|
({
|
2021-04-15 11:22:37 +00:00
|
|
|
docs: {
|
2022-12-06 19:33:13 +00:00
|
|
|
routeBasePath: "/",
|
2022-02-02 12:45:01 +00:00
|
|
|
sidebarPath: require.resolve("./sidebars.js"),
|
2022-07-29 08:13:45 +00:00
|
|
|
showLastUpdateAuthor: true,
|
|
|
|
showLastUpdateTime: true,
|
|
|
|
editUrl: "https://github.com/zitadel/zitadel/edit/main/docs/",
|
2022-02-02 12:45:01 +00:00
|
|
|
remarkPlugins: [require("mdx-mermaid")],
|
2023-02-23 11:08:06 +00:00
|
|
|
docLayoutComponent: "@theme/DocPage",
|
|
|
|
docItemComponent: '@theme/ApiItem'
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
|
|
|
theme: {
|
2022-02-02 12:45:01 +00:00
|
|
|
customCss: require.resolve("./src/css/custom.css"),
|
2021-04-15 11:22:37 +00:00
|
|
|
},
|
2023-02-23 11:08:06 +00:00
|
|
|
})
|
2021-04-15 11:22:37 +00:00
|
|
|
],
|
2023-02-23 11:08:06 +00:00
|
|
|
|
2021-04-15 11:22:37 +00:00
|
|
|
],
|
2022-12-05 17:36:12 +00:00
|
|
|
plugins: [
|
2023-02-23 11:08:06 +00:00
|
|
|
[
|
|
|
|
'docusaurus-plugin-openapi-docs',
|
|
|
|
{
|
|
|
|
id: "apiDocs",
|
|
|
|
docsPluginId: "classic",
|
|
|
|
config: {
|
|
|
|
auth: {
|
|
|
|
specPath: ".artifacts/openapi/zitadel/auth.swagger.json",
|
2023-05-17 12:47:55 +00:00
|
|
|
outputDir: "docs/apis/resources/auth",
|
2023-02-23 11:08:06 +00:00
|
|
|
sidebarOptions: {
|
|
|
|
groupPathsBy: "tag",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mgmt: {
|
|
|
|
specPath: ".artifacts/openapi/zitadel/management.swagger.json",
|
2023-05-17 12:47:55 +00:00
|
|
|
outputDir: "docs/apis/resources/mgmt",
|
2023-02-23 11:08:06 +00:00
|
|
|
sidebarOptions: {
|
|
|
|
groupPathsBy: "tag",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
admin: {
|
|
|
|
specPath: ".artifacts/openapi/zitadel/admin.swagger.json",
|
2023-05-17 12:47:55 +00:00
|
|
|
outputDir: "docs/apis/resources/admin",
|
2023-02-23 11:08:06 +00:00
|
|
|
sidebarOptions: {
|
|
|
|
groupPathsBy: "tag",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
system: {
|
|
|
|
specPath: ".artifacts/openapi/zitadel/system.swagger.json",
|
2023-05-17 12:47:55 +00:00
|
|
|
outputDir: "docs/apis/resources/system",
|
2023-02-23 11:08:06 +00:00
|
|
|
sidebarOptions: {
|
|
|
|
groupPathsBy: "tag",
|
|
|
|
},
|
2023-04-26 05:47:57 +00:00
|
|
|
},
|
|
|
|
user: {
|
|
|
|
specPath: ".artifacts/openapi/zitadel/user/v2alpha/user_service.swagger.json",
|
2023-05-17 12:47:55 +00:00
|
|
|
outputDir: "docs/apis/resources/user_service",
|
2023-04-26 05:47:57 +00:00
|
|
|
sidebarOptions: {
|
|
|
|
groupPathsBy: "tag",
|
|
|
|
},
|
2023-05-05 15:34:53 +00:00
|
|
|
},
|
|
|
|
session: {
|
|
|
|
specPath: ".artifacts/openapi/zitadel/session/v2alpha/session_service.swagger.json",
|
2023-05-17 12:47:55 +00:00
|
|
|
outputDir: "docs/apis/resources/session_service",
|
2023-05-05 15:34:53 +00:00
|
|
|
sidebarOptions: {
|
|
|
|
groupPathsBy: "tag",
|
|
|
|
},
|
2023-05-11 09:23:40 +00:00
|
|
|
},
|
2023-07-10 13:27:00 +00:00
|
|
|
oidc: {
|
|
|
|
specPath: ".artifacts/openapi/zitadel/oidc/v2alpha/oidc_service.swagger.json",
|
|
|
|
outputDir: "docs/apis/resources/oidc_service",
|
|
|
|
sidebarOptions: {
|
|
|
|
groupPathsBy: "tag",
|
|
|
|
},
|
|
|
|
},
|
2023-05-11 09:23:40 +00:00
|
|
|
settings: {
|
|
|
|
specPath: ".artifacts/openapi/zitadel/settings/v2alpha/settings_service.swagger.json",
|
2023-05-17 12:47:55 +00:00
|
|
|
outputDir: "docs/apis/resources/settings_service",
|
2023-05-11 09:23:40 +00:00
|
|
|
sidebarOptions: {
|
|
|
|
groupPathsBy: "tag",
|
|
|
|
},
|
2023-02-23 11:08:06 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
],
|
2022-12-05 17:36:12 +00:00
|
|
|
require.resolve("docusaurus-plugin-image-zoom"),
|
|
|
|
async function myPlugin(context, options) {
|
|
|
|
return {
|
|
|
|
name: "docusaurus-tailwindcss",
|
|
|
|
configurePostCss(postcssOptions) {
|
|
|
|
// Appends TailwindCSS and AutoPrefixer.
|
|
|
|
postcssOptions.plugins.push(require("tailwindcss"));
|
|
|
|
postcssOptions.plugins.push(require("autoprefixer"));
|
|
|
|
return postcssOptions;
|
|
|
|
},
|
|
|
|
};
|
|
|
|
},
|
|
|
|
],
|
2023-02-23 11:08:06 +00:00
|
|
|
themes: ["@saucelabs/theme-github-codeblock", "docusaurus-theme-openapi-docs"],
|
2021-04-15 11:22:37 +00:00
|
|
|
};
|