chore(docs): fix links for domain migration (#4831)

* chore(docs): fix links for domain migration

* try trailing slash for netlify

* trial

* fix typo

* test path

* try preview proxied

* test local proxy

* try to define the domain with redirect to /docs

* remove build commands

* debug netlify router and fix image link

* working config

* fix analytics
This commit is contained in:
Florian Forster
2022-12-06 20:33:13 +01:00
committed by GitHub
parent 3539418a4a
commit 065250a108
49 changed files with 210 additions and 201 deletions

View File

@@ -2,8 +2,8 @@
module.exports = {
title: "ZITADEL Docs",
trailingSlash: false,
url: "https://docs.zitadel.com",
baseUrl: "/",
url: "https://zitadel.com",
baseUrl: "/docs/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
@@ -11,11 +11,11 @@ module.exports = {
projectName: "zitadel",
scripts: [
{
src: "/proxy/js/script.js",
src: "/docs/proxy/js/script.js",
async: true,
defer: true,
"data-domain": "docs.zitadel.com",
"data-api": "/proxy/api/event",
"data-domain": "zitadel.com",
"data-api": "/docs/proxy/api/event",
},
],
customFields: {
@@ -135,11 +135,11 @@ module.exports = {
items: [
{
label: "Terms and Conditions",
href: "/docs/legal/terms-of-service",
href: "/legal/terms-of-service",
},
{
label: "Privacy Policy",
href: "/docs/legal/privacy-policy",
href: "/legal/privacy-policy",
},
],
},
@@ -191,6 +191,7 @@ module.exports = {
"@docusaurus/preset-classic",
{
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
showLastUpdateAuthor: true,
showLastUpdateTime: true,