Skip to content

Commit

Permalink
Remove canary
Browse files Browse the repository at this point in the history
  • Loading branch information
timuric committed Jul 3, 2024
1 parent 45a0de8 commit 75303fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 155 deletions.
27 changes: 5 additions & 22 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,11 @@ require("dotenv").config();

const { themes } = require("prism-react-renderer");

const isProd = process.env.NEXT_PUBLIC_SITE_URL === "https://docs.saleor.io";

module.exports = {
title: "Saleor Commerce Documentation",
tagline: "High performance, composable, headless commerce API.",
url: process.env.NEXT_PUBLIC_SITE_URL ?? "http://localhost:3000",
baseUrl: "/",
noIndex: !isProd,

// Used for publishing and more
projectName: "saleor-docs",
Expand Down Expand Up @@ -58,7 +55,7 @@ module.exports = {
algolia: {
appId: "P1Y4DTZUZN",
apiKey: "10d596baf2b3482e0ae033711c45c544",
indexName: isProd ? "saleor" : "canary_saleor",
indexName: "saleor",
placeholder: "Search Saleor Documentation",
},

Expand Down Expand Up @@ -94,14 +91,6 @@ module.exports = {
className: "saleor-logo",
},
items: [
{
type: "docsVersionDropdown",
position: "right",
dropdownItemsAfter: isProd
? [{ to: "https://canary.docs.saleor.io/", label: "Canary" }]
: [{ to: "https://docs.saleor.io/", label: "3.x" }],
dropdownActiveClassDisabled: true,
},
{
to: "https://github.com/saleor/saleor-docs/issues/new",
label: "Report an Issue",
Expand Down Expand Up @@ -192,16 +181,10 @@ module.exports = {
breadcrumbs: false,
path: "docs",
versions: {
current: isProd
? {
label: "3.x",
path: "3.x",
}
: {
label: "Canary",
path: "",
banner: "unreleased",
},
current: {
label: "3.x",
path: "3.x",
},
},
editUrl: function ({ version, versionDocsDirPath, docPath }) {
if (version === "current") {
Expand Down
133 changes: 0 additions & 133 deletions src/theme/DocVersionBanner/index.js

This file was deleted.

0 comments on commit 75303fc

Please sign in to comment.