diff --git a/en/docs/assets/js/theme.js b/en/docs/assets/js/theme.js index 5c6ab6e448..5a17eb7520 100644 --- a/en/docs/assets/js/theme.js +++ b/en/docs/assets/js/theme.js @@ -145,64 +145,6 @@ onFirstPage(function () { }); }); -/* - * "Try WSO2 API Platform" header button (see partials/community.html) - * - * Opens the Console sign-in page with UTM parameters to record Console's sign-up - * events in Moesif. The header stays in place across instant navigation. So the - * page slug is read when we click the button. - * - */ -window.openConsoleSignIn = (function () { - // Same site root resolution as the search breadcrumbs below. - var scope = window.__md_scope || - (document.querySelector('base') ? new URL(document.querySelector('base').href) : new URL('/', location)); - var basePath = scope.pathname; - if (basePath.charAt(basePath.length - 1) !== '/') basePath += '/'; - - // The page path relative to the site root, lowercased, with each run of - // characters other than letters and digits replaced by one underscore: - // /api-gateway/1.2.0/quick-start-guide/ becomes - // api_gateway_1_2_0_quick_start_guide. The site root becomes "home". - function pageSlug() { - var path = location.pathname; - try { - path = decodeURIComponent(path); - } catch (e) { - // Keep the raw path if it isn't valid percent-encoding. - } - if (path.indexOf(basePath) === 0) path = path.slice(basePath.length); - var slug = path - .replace(/index\.html$/, '') - .toLowerCase() - .replace(/[^a-z0-9]+/g, '_') - .replace(/^_+|_+$/g, ''); - return slug || 'home'; - } - - return function () { - var utm = { - utm_source: 'docs', - utm_medium: 'header-cta', - utm_campaign: 'docs_cta', - utm_content: pageSlug(), - }; - - // Record the click with the same UTM values. - try { - if (typeof trackEvent === 'function') trackEvent('CTA-Clicked', Object.assign({ page_title: document.title }, utm)); - } catch (e) { - console.error('Failed to track CTA click:', e); - } - - var url = new URL('https://console.bijira.dev/login/'); - Object.keys(utm).forEach(function (key) { - url.searchParams.set(key, utm[key]); - }); - window.open(url.toString(), '_blank', 'noopener'); - }; -})(); - // Content tab styling and navigation sidebar state: both are re-rendered on // every navigation, so this runs per page. onEachPage(function() { @@ -418,8 +360,8 @@ onEachPage(function () { var labels = { cloud: 'Cloud', hybrid: 'Hybrid', 'self-hosted': 'Self-hosted' }; var urlParam = 'deployment'; var descriptions = { - cloud: 'WSO2 hosts the control plane and the gateways.', - hybrid: 'WSO2 hosts the control plane, and you run the gateways.', + cloud: 'Choreo Labs hosts the control plane and the gateways.', + hybrid: 'Choreo Labs hosts the control plane, and you run the gateways.', 'self-hosted': 'You run the gateways, on their own or with your own control plane.' }; @@ -977,7 +919,7 @@ onEachPage(function () { var output = null; // Material exposes the site root as an absolute URL in `window.__md_scope` - // (set on every page, e.g. https://host/bijira/docs/). Use it to build the + // (set on every page, e.g. https://host/api-platform/docs/). Use it to build the // fetch URL and to turn a result's pathname into a build-time breadcrumb key. // Fall back to a tag, then the server root. var scope = window.__md_scope || diff --git a/en/mkdocs.yml b/en/mkdocs.yml index 2683b20d04..df26636392 100644 --- a/en/mkdocs.yml +++ b/en/mkdocs.yml @@ -15,20 +15,20 @@ # under the License. # Project information -site_name: "API Platform Documentation" -site_description: API Platform Documentation -site_author: WSO2 -site_url: https://wso2.com/bijira/docs +site_name: "API Management Documentation" +site_description: API Management Documentation +site_author: Choreo Labs +site_url: https://choreolabs.com/api-platform/docs/ # Repository -repo_name: wso2/docs-bijira -repo_url: https://github.com/wso2/docs-bijira -edit_uri: https://github.com/wso2/docs-bijira/edit/main/en/docs/ +repo_name: wso2/docs-api-platform +repo_url: https://github.com/wso2/docs-api-platform +edit_uri: https://github.com/wso2/docs-api-platform/edit/main/en/docs/ dev_addr: localhost:8000 # Copyright -copyright: ©2025 WSO2 LLC. +copyright: ©2025 Choreo Labs LLC. # Configuration watch: @@ -54,6 +54,8 @@ theme: - content.code.copy - content.action.edit - content.action.view + # Lets readers close the new docs banner (theme/material/main.html). + - announce.dismiss language: "en" palette: # Palette toggle for light mode @@ -341,7 +343,7 @@ nav: - Managing API Workflows: cloud/devportal/admin-settings/managing-api-workflows.md - API Manager: - Overview: api-manager/overview.md - - Documentation: https://apim.docs.wso2.com/en/latest/ + - Documentation: https://apim.docs.choreolabs.com/en/latest/ - API Gateway: - "next": - Overview: api-gateway/next/overview.md @@ -2485,9 +2487,9 @@ extra_javascript: - assets/lib/highlightjs/highlight.min.js - assets/js/theme.js extra: - sts_downloads_page: "https://wso2.com/products/downloads/?product=wso2am&package=platform-gateway" + sts_downloads_page: "https://choreolabs.com/products/downloads/?product=wso2am&package=platform-gateway" show_repo_in_nav: false - page_title_suffix: "API Platform Docs" + page_title_suffix: "API Management Docs" social: - icon: fontawesome/brands/github link: https://github.com/wso2 diff --git a/en/theme/material/assets/css/partials/_button.css b/en/theme/material/assets/css/partials/_button.css index 7921d98c18..a0f7d8d365 100644 --- a/en/theme/material/assets/css/partials/_button.css +++ b/en/theme/material/assets/css/partials/_button.css @@ -88,27 +88,3 @@ height: var(--md-header-link-icon-size); width: var(--md-header-link-icon-size); } - -/* Try API Platform button */ - -.md-button.md-button--try-bijira { - background-color: #FF7300; - border-color: #FF7300; - color: #ffffff; - border-radius: 5px; - padding: 5px 16px; - transition: 0.2s; - margin: 0; - font-size: 14px; -} - -.md-button.md-button--try-bijira:hover { - background-color: #ff7300f1; - border-color: #FF7300; - color: #ffffff; - opacity: 1; -} - -.md-button.md-button--try-bijira:hover label { - cursor: pointer; -} \ No newline at end of file diff --git a/en/theme/material/assets/css/partials/_header.css b/en/theme/material/assets/css/partials/_header.css index 5e70e2d05e..1c2203ab7d 100644 --- a/en/theme/material/assets/css/partials/_header.css +++ b/en/theme/material/assets/css/partials/_header.css @@ -63,7 +63,7 @@ min-height: var(--md-header-min-height); } -/* Community button group (Get Help + Try API Platform) */ +/* Community button group (Get Help) */ .md-header__community { flex: 0 0 auto; white-space: nowrap; @@ -78,12 +78,14 @@ align-items: center; } -/* Divider before Get Help / Try API Platform group */ +/* Only Get Help is left in the group, so it needs no divider; the theme + toggle's margin spaces it from the search box and Get Help evenly. */ .md-header__community .md-header__extra:before { - margin: 10px 15px; - width: 1px; - background-color: var(--md-divider-color); - content: ""; + display: none; +} + +.md-header .md-header__option .md-theme-switch { + margin-right: 7px; } .md-header__topic { @@ -193,7 +195,6 @@ .md-header__extra { display: flex; - margin-right: 0.6rem; } .md-header__extra .md-header__links { @@ -209,8 +210,10 @@ content: ""; } +/* Get Help sits at the header's right padding, matching the logo's left + padding. */ .md-header__extra button { - margin-right: var(--md-header-links-vertical-spacing); + margin-right: 0; } @media screen and (max-width: 90.1875em) { @@ -221,11 +224,6 @@ .md-button.md-button--asgardeo-mini, .md-button.md-button--discord-mini { display: block; } - - /* Small screens: show only the Try Bijira icon (hide label) */ - .md-button.md-button--try-bijira label { - display: none; - } } @media screen and (min-width: 90.1875em) { diff --git a/en/theme/material/assets/css/theme.css b/en/theme/material/assets/css/theme.css index 3c968a9c4f..815d581656 100644 --- a/en/theme/material/assets/css/theme.css +++ b/en/theme/material/assets/css/theme.css @@ -1404,3 +1404,67 @@ width: 16px; } } + +/* Announcement banner (theme/material/main.html), in the Choreo Labs brand + colours: Midnight Ink bar, Paper text, and the Signal Orange link as the one + thing to act on. Signal Orange on Midnight Ink is 5.2:1 and Paper on + Midnight Ink is 16.5:1, so the same colours work in light and dark mode. */ +.md-banner { + background-color: #0B1633; + color: #F4F6FA; +} + +/* In dark mode the bar sits next to an almost equally dark header; a faint + Paper rule keeps the two apart. */ +[data-md-color-scheme=slate] .md-banner { + border-bottom: 1px solid rgba(244, 246, 250, .12); +} + +.md-banner .md-banner__inner { + margin: .7rem auto; + padding: 0 1rem; + font-size: .75rem; + font-weight: 500; + line-height: 1.5; +} + +.md-banner .md-banner__button { + color: #F4F6FA; + opacity: .85; +} + +.md-banner .md-banner__button:hover { + color: #F4F6FA; + opacity: 1; +} + +/* The light-mode ".md-icon svg" colour rule would paint the close button + dark on the Midnight Ink bar. */ +[data-md-color-scheme] .md-banner .md-banner__button svg { + fill: currentColor; +} + +.md-new-docs-banner { + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; + gap: .2rem 1.2rem; + text-align: center; +} + +.md-typeset .md-new-docs-banner__link, +.md-typeset .md-new-docs-banner__link:hover, +.md-typeset .md-new-docs-banner__link:focus { + display: inline-flex; + align-items: center; + gap: .3rem; + color: #FF4600; + font-weight: 600; + text-decoration: none; +} + +.md-typeset .md-new-docs-banner__link:hover { + text-decoration: underline; + text-underline-offset: 2px; +} diff --git a/en/theme/material/assets/images/APIPlatformDocs.svg b/en/theme/material/assets/images/APIPlatformDocs.svg index 93b4ee3dca..416582337f 100644 --- a/en/theme/material/assets/images/APIPlatformDocs.svg +++ b/en/theme/material/assets/images/APIPlatformDocs.svg @@ -1,4 +1,16 @@ - - - - + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/en/theme/material/assets/images/APIPlatformDocsWhite.svg b/en/theme/material/assets/images/APIPlatformDocsWhite.svg index 1559d51e8e..5f514fcdd2 100644 --- a/en/theme/material/assets/images/APIPlatformDocsWhite.svg +++ b/en/theme/material/assets/images/APIPlatformDocsWhite.svg @@ -1,4 +1,23 @@ - - - - + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/en/theme/material/assets/images/BijiraDocsOld.svg b/en/theme/material/assets/images/BijiraDocsOld.svg deleted file mode 100644 index 36ec212a86..0000000000 --- a/en/theme/material/assets/images/BijiraDocsOld.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/en/theme/material/assets/images/BijiraDocsWhiteOld.svg b/en/theme/material/assets/images/BijiraDocsWhiteOld.svg deleted file mode 100644 index e06869908f..0000000000 --- a/en/theme/material/assets/images/BijiraDocsWhiteOld.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/en/theme/material/assets/images/BijiraWatermark.svg b/en/theme/material/assets/images/BijiraWatermark.svg deleted file mode 100644 index 0c3e018a88..0000000000 --- a/en/theme/material/assets/images/BijiraWatermark.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/en/theme/material/assets/images/favicon.png b/en/theme/material/assets/images/favicon.png index 2a185d3bf6..7d638a1232 100644 Binary files a/en/theme/material/assets/images/favicon.png and b/en/theme/material/assets/images/favicon.png differ diff --git a/en/theme/material/assets/images/faviconOld.png b/en/theme/material/assets/images/faviconOld.png deleted file mode 100644 index 39e3ba61fb..0000000000 Binary files a/en/theme/material/assets/images/faviconOld.png and /dev/null differ diff --git a/en/theme/material/assets/images/logo.png b/en/theme/material/assets/images/logo.png deleted file mode 100644 index 2fed4d4e52..0000000000 Binary files a/en/theme/material/assets/images/logo.png and /dev/null differ diff --git a/en/theme/material/assets/images/logo.svg b/en/theme/material/assets/images/logo.svg deleted file mode 100644 index 3eb531bc21..0000000000 --- a/en/theme/material/assets/images/logo.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/en/theme/material/main.html b/en/theme/material/main.html new file mode 100644 index 0000000000..8925fee0fd --- /dev/null +++ b/en/theme/material/main.html @@ -0,0 +1,15 @@ +{% extends "base.html" %} + +{# + Announcement bar for the WSO2 to Choreo Labs rename. Readers can dismiss + it (announce.dismiss); changing the text brings it back, because Material + keys the dismissal on a hash of the banner content. +#} +{% block announce %} +
+ WSO2 is now Choreo Labs + + Learn more + +
+{% endblock %} diff --git a/en/theme/material/partials/community.html b/en/theme/material/partials/community.html index 36a0139824..a1bce3a7ea 100644 --- a/en/theme/material/partials/community.html +++ b/en/theme/material/partials/community.html @@ -23,7 +23,7 @@ class="md-typeset md-button md-button--link md-button--small md-button--flex md-button--discord" onclick=" javascript: window.open( - 'https://discord.com/invite/wso2', + 'https://discord.com/invite/Xa5VubmThw', '_blank', 'noopener', ); @@ -39,7 +39,7 @@ class="md-header__button md-icon md-icon--hover md-button--asgardeo-mini" onclick=" javascript: window.open( - 'https://discord.com/invite/wso2', + 'https://discord.com/invite/Xa5VubmThw', '_blank', 'noopener', ); @@ -49,40 +49,6 @@ icon ~ ".svg" %} - diff --git a/en/theme/material/partials/copyright.html b/en/theme/material/partials/copyright.html index aa1bf00acd..1d646c7747 100644 --- a/en/theme/material/partials/copyright.html +++ b/en/theme/material/partials/copyright.html @@ -20,9 +20,9 @@ diff --git a/en/theme/material/partials/header.html b/en/theme/material/partials/header.html index ceab206a0a..0ca0d16a59 100644 --- a/en/theme/material/partials/header.html +++ b/en/theme/material/partials/header.html @@ -28,7 +28,7 @@ - API Platform Documentation + {{ config.site_name }}