diff --git a/website/docusaurus.config.js b/website/docusaurus.config.js index 8bb3474f..39ae45e4 100644 --- a/website/docusaurus.config.js +++ b/website/docusaurus.config.js @@ -27,8 +27,8 @@ module.exports = { }, }, algolia: { - apiKey: "66c9f1f7e6ba6617ec4e65194788bacd", - indexName: "docs_dagger", + apiKey: "b2324f1ac8932ab80916382521473115", + indexName: "daggosaurus", }, colorMode: { // "light" | "dark" diff --git a/website/src/css/custom.scss b/website/src/css/custom.scss index 00ac0474..6bd458e2 100644 --- a/website/src/css/custom.scss +++ b/website/src/css/custom.scss @@ -33,7 +33,7 @@ --ifm-code-font-size: 100%; --ifm-code-border-radius: 2rem; --ifm-code-color: var(--ifm-color-primary-light); - --ifm-code-padding-vertical: 0.1rem; + --ifm-code-padding-vertical: 0; --ifm-code-padding-horizontal: 0.2rem; --ifm-h2-font-size: 2rem; --ifm-menu-color-background-active: var(--ifm-color-primary); diff --git a/website/src/theme/DocPage/index.js b/website/src/theme/DocPage/index.js index 6d0e9b20..14c7e03c 100644 --- a/website/src/theme/DocPage/index.js +++ b/website/src/theme/DocPage/index.js @@ -139,7 +139,9 @@ function DocPage(props) { ); // CUSTOM DOCPAGE - if (typeof window === "undefined" || (typeof window !== "undefined" && window?.location?.hostname !== "localhost")) { + // Do not use Github authentication when in local env or Netlify deploy preview + if (typeof window === "undefined" || + (typeof window !== "undefined" && window?.location?.hostname !== "localhost" && !window.location.hostname.includes('deploy'))) { const [isUserAuthorized, setIsUserAuthorized] = useState() const [isLoading, setIsLoading] = useState(true) const [redirectState, setRedirectState] = useState()