Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 3 additions & 61 deletions en/docs/assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -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.'
};

Expand Down Expand Up @@ -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 <base> tag, then the server root.
var scope = window.__md_scope ||
Expand Down
24 changes: 13 additions & 11 deletions en/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
24 changes: 0 additions & 24 deletions en/theme/material/assets/css/partials/_button.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
24 changes: 11 additions & 13 deletions en/theme/material/assets/css/partials/_header.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand Down Expand Up @@ -193,7 +195,6 @@

.md-header__extra {
display: flex;
margin-right: 0.6rem;
}

.md-header__extra .md-header__links {
Expand All @@ -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) {
Expand All @@ -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) {
Expand Down
64 changes: 64 additions & 0 deletions en/theme/material/assets/css/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
20 changes: 16 additions & 4 deletions en/theme/material/assets/images/APIPlatformDocs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 23 additions & 4 deletions en/theme/material/assets/images/APIPlatformDocsWhite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading