Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
97dc86c
Update support/payment/accepted-payment-methods.mdx
mintlify[bot] Oct 29, 2025
0cafb54
Update support/payment/editing-payment-information.mdx
mintlify[bot] Oct 29, 2025
c936461
Update support/payment/payment-history.mdx
mintlify[bot] Oct 29, 2025
622752d
Update support/payment/unsuccessful-payments.mdx
mintlify[bot] Oct 29, 2025
21f6134
Update support/payment/payment-currency.mdx
mintlify[bot] Oct 29, 2025
10d4495
Update support/payment/invoice-information.mdx
mintlify[bot] Oct 29, 2025
75ae2a1
Update zh-CN/support/payment/accepted-payment-methods.mdx
mintlify[bot] Oct 29, 2025
c2356c7
Update zh-CN/support/payment/editing-payment-information.mdx
mintlify[bot] Oct 29, 2025
c0a1f2a
Update zh-CN/support/payment/payment-history.mdx
mintlify[bot] Oct 29, 2025
ae0d4c5
Update zh-CN/support/payment/unsuccessful-payments.mdx
mintlify[bot] Oct 29, 2025
456b915
Update zh-CN/support/payment/payment-currency.mdx
mintlify[bot] Oct 29, 2025
1e378e3
Update zh-CN/support/payment/invoice-information.mdx
mintlify[bot] Oct 29, 2025
9458ddd
Update docs.json
mintlify[bot] Oct 29, 2025
df52de9
Update docs.json
mintlify[bot] Oct 29, 2025
1c87318
Merge branch 'main' into mintlify/support-docs-payment-section-multil…
comfyui-wiki Nov 10, 2025
974f34d
Update navigation
comfyui-wiki Nov 10, 2025
24cd8c8
Update navigation
comfyui-wiki Nov 10, 2025
26fe6b2
Update support/payment/accepted-payment-methods.mdx
mintlify[bot] Nov 10, 2025
ffd0559
Update zh-CN/support/payment/accepted-payment-methods.mdx
mintlify[bot] Nov 10, 2025
7ed0262
Update support/payment/accepted-payment-methods.mdx
mintlify[bot] Nov 10, 2025
5ffc642
Update support/payment/payment-history.mdx
mintlify[bot] Nov 10, 2025
bb5c0c2
Update support/payment/unsuccessful-payments.mdx
mintlify[bot] Nov 10, 2025
da75c15
Update support/payment/payment-currency.mdx
mintlify[bot] Nov 10, 2025
d0b3635
Update support/payment/invoice-information.mdx
mintlify[bot] Nov 10, 2025
c02da62
Update support/payment/invoice-information.mdx
mintlify[bot] Nov 10, 2025
5b6f4fe
Update support/payment/editing-payment-information.mdx
mintlify[bot] Nov 10, 2025
cf248f6
Update support/payment/invoice-information.mdx
mintlify[bot] Nov 10, 2025
034117f
Update support/payment/invoice-information.mdx
mintlify[bot] Nov 10, 2025
148792e
Update support/payment/payment-currency.mdx
mintlify[bot] Nov 10, 2025
a0302b6
Update zh-CN/support/payment/payment-currency.mdx
mintlify[bot] Nov 10, 2025
6bc5f73
Update zh-CN/support/payment/invoice-information.mdx
mintlify[bot] Nov 10, 2025
a11590d
Update zh-CN/support/payment/invoice-information.mdx
mintlify[bot] Nov 10, 2025
349c2b7
Update zh-CN/support/payment/accepted-payment-methods.mdx
mintlify[bot] Nov 10, 2025
beda5b2
Update zh-CN/support/payment/payment-history.mdx
mintlify[bot] Nov 10, 2025
ea607be
Update zh-CN/support/payment/unsuccessful-payments.mdx
mintlify[bot] Nov 10, 2025
eae9f26
Update zh-CN/support/payment/payment-currency.mdx
mintlify[bot] Nov 10, 2025
feb5a09
Update zh-CN/support/payment/invoice-information.mdx
mintlify[bot] Nov 10, 2025
565888e
Update zh-CN/support/payment/editing-payment-information.mdx
mintlify[bot] Nov 10, 2025
7dc126a
Update zh-CN/support/payment/invoice-information.mdx
mintlify[bot] Nov 10, 2025
3f0866e
Update docs.json
mintlify[bot] Nov 10, 2025
945552d
Update docs.json
mintlify[bot] Nov 10, 2025
ae09dcf
Update support/payment/unsuccessful-payments.mdx
mintlify[bot] Nov 10, 2025
9249ff0
Update zh-CN/support/payment/unsuccessful-payments.mdx
mintlify[bot] Nov 10, 2025
4b1d712
Update support/payment/accepted-payment-methods.mdx
mintlify[bot] Nov 10, 2025
dd33323
Update zh-CN/support/payment/accepted-payment-methods.mdx
mintlify[bot] Nov 10, 2025
a3e3c23
Add screenshots
comfyui-wiki Nov 10, 2025
46da3d4
Merge branch 'mintlify/support-docs-payment-section-multilingual-4382…
comfyui-wiki Nov 10, 2025
7edd89c
Update support/payment/invoice-information.mdx
mintlify[bot] Nov 10, 2025
701d6d0
Update zh-CN/support/payment/invoice-information.mdx
mintlify[bot] Nov 10, 2025
5b1f7d8
Refine invoice details
comfyui-wiki Nov 10, 2025
fb2eec0
Add Alipay/WeChat Pay checkout instructions and images
comfyui-wiki Nov 10, 2025
d94744e
Update support/payment/payment-currency.mdx
mintlify[bot] Nov 10, 2025
01f4739
Update zh-CN/support/payment/payment-currency.mdx
mintlify[bot] Nov 10, 2025
85e2f34
Fix the language switcher issue
comfyui-wiki Nov 10, 2025
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
110 changes: 50 additions & 60 deletions docs.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@
},
{
"group": "3D",
"pages": [
"tutorials/3d/hunyuan3D-2"
]
"pages": ["tutorials/3d/hunyuan3D-2"]
},
{
"group": "Video",
Expand Down Expand Up @@ -190,9 +188,7 @@
},
{
"group": "Audio",
"pages": [
"tutorials/audio/ace-step/ace-step-v1"
]
"pages": ["tutorials/audio/ace-step/ace-step-v1"]
},
{
"group": "Partner Nodes",
Expand All @@ -209,9 +205,7 @@
},
{
"group": "Google",
"pages": [
"tutorials/partner-nodes/google/gemini"
]
"pages": ["tutorials/partner-nodes/google/gemini"]
},
{
"group": "Stability AI",
Expand Down Expand Up @@ -303,9 +297,7 @@
},
{
"group": "Image",
"pages": [
"built-in-nodes/Canny"
]
"pages": ["built-in-nodes/Canny"]
},
{
"group": "Loader",
Expand All @@ -317,9 +309,7 @@
},
{
"group": "Latent",
"pages": [
"built-in-nodes/latent/video/trim-video-latent"
]
"pages": ["built-in-nodes/latent/video/trim-video-latent"]
},
{
"group": "Advanced",
Expand All @@ -343,17 +333,13 @@
"built-in-nodes/sampling/ksampler",
{
"group": "Custom Sampling",
"pages": [
"built-in-nodes/BasicScheduler"
]
"pages": ["built-in-nodes/BasicScheduler"]
}
]
},
{
"group": "3D",
"pages": [
"built-in-nodes/Load3D"
]
"pages": ["built-in-nodes/Load3D"]
},
{
"group": "Partner Node",
Expand Down Expand Up @@ -564,17 +550,11 @@
"pages": [
{
"group": "Workflow JSON",
"pages": [
"specs/workflow_json",
"specs/workflow_json_0.4"
]
"pages": ["specs/workflow_json", "specs/workflow_json_0.4"]
},
{
"group": "Node Definitions",
"pages": [
"specs/nodedef_json",
"specs/nodedef_json_1_0"
]
"pages": ["specs/nodedef_json", "specs/nodedef_json_1_0"]
}
]
}
Expand All @@ -583,6 +563,22 @@
{
"tab": "Support",
"pages": [
{
"group": "Billing Support",
"pages": [
{
"group": "Payment",
"pages": [
"support/payment/accepted-payment-methods",
"support/payment/editing-payment-information",
"support/payment/payment-history",
"support/payment/unsuccessful-payments",
"support/payment/payment-currency",
"support/payment/invoice-information"
]
}
]
},
{
"group": "Troubleshooting",
"icon": "bug",
Expand All @@ -594,10 +590,7 @@
},
{
"group": "Community",
"pages": [
"community/contributing",
"community/links"
]
"pages": ["community/contributing", "community/links"]
}
]
},
Expand Down Expand Up @@ -741,9 +734,7 @@
},
{
"group": "3D",
"pages": [
"zh-CN/tutorials/3d/hunyuan3D-2"
]
"pages": ["zh-CN/tutorials/3d/hunyuan3D-2"]
},
{
"group": "视频",
Expand Down Expand Up @@ -784,9 +775,7 @@
},
{
"group": "音频",
"pages": [
"zh-CN/tutorials/audio/ace-step/ace-step-v1"
]
"pages": ["zh-CN/tutorials/audio/ace-step/ace-step-v1"]
},
{
"group": "合作伙伴节点",
Expand All @@ -803,9 +792,7 @@
},
{
"group": "Google",
"pages": [
"zh-CN/tutorials/partner-nodes/google/gemini"
]
"pages": ["zh-CN/tutorials/partner-nodes/google/gemini"]
},
{
"group": "Stability AI",
Expand Down Expand Up @@ -897,9 +884,7 @@
},
{
"group": "图像",
"pages": [
"zh-CN/built-in-nodes/Canny"
]
"pages": ["zh-CN/built-in-nodes/Canny"]
},
{
"group": "加载器",
Expand All @@ -911,9 +896,7 @@
},
{
"group": "潜变量",
"pages": [
"zh-CN/built-in-nodes/latent/video/trim-video-latent"
]
"pages": ["zh-CN/built-in-nodes/latent/video/trim-video-latent"]
},
{
"group": "高级",
Expand All @@ -937,17 +920,13 @@
"zh-CN/built-in-nodes/sampling/ksampler",
{
"group": "自定义采样",
"pages": [
"zh-CN/built-in-nodes/BasicScheduler"
]
"pages": ["zh-CN/built-in-nodes/BasicScheduler"]
}
]
},
{
"group": "3D",
"pages": [
"zh-CN/built-in-nodes/Load3D"
]
"pages": ["zh-CN/built-in-nodes/Load3D"]
},
{
"group": "合作伙伴节点",
Expand Down Expand Up @@ -1176,6 +1155,22 @@
{
"tab": "支持",
"pages": [
{
"group": "账单支持",
"pages": [
{
"group": "支付",
"pages": [
"zh-CN/support/payment/accepted-payment-methods",
"zh-CN/support/payment/editing-payment-information",
"zh-CN/support/payment/payment-history",
"zh-CN/support/payment/unsuccessful-payments",
"zh-CN/support/payment/payment-currency",
"zh-CN/support/payment/invoice-information"
]
}
]
},
{
"group": "故障排除",
"icon": "bug",
Expand Down Expand Up @@ -1290,12 +1285,7 @@
]
},
"contextual": {
"options": [
"copy",
"view",
"chatgpt",
"claude"
]
"options": ["copy", "view", "chatgpt", "claude"]
},
"integrations": {},
"redirects": [
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/support/payment/billing-1-account.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/support/payment/billing-2-credits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
109 changes: 92 additions & 17 deletions language-switcher-fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,62 @@
return newPath + search + hash;
}

/**
* Normalize href into a URL object scoped to current origin
*/
function parseHref(href) {
if (!href) {
return null;
}

try {
const url = new URL(href, window.location.origin);
return {
url,
isSameOrigin: url.origin === window.location.origin,
relativePath: url.pathname + url.search + url.hash
};
} catch (error) {
return null;
}
}

/**
* Attach handler to language element
*/
function attachLanguageHandler(element, targetLang) {
if (!element || targetLang === getCurrentLanguage()) {
return false;
}

if (element.getAttribute('data-language-fixed') === 'true') {
return false;
}

const handler = event => {
if (event) {
if (typeof event.preventDefault === 'function') {
event.preventDefault();
}
if (typeof event.stopPropagation === 'function') {
event.stopPropagation();
}
if (typeof event.stopImmediatePropagation === 'function') {
event.stopImmediatePropagation();
}
}

const newPath = convertPathToLanguage(targetLang);
console.log('[Language Switcher] Navigating from', window.location.pathname, 'to', newPath);
window.location.href = newPath;
};

element.addEventListener('click', handler, true);
element.setAttribute('data-language-fixed', 'true');
element.setAttribute('data-target-lang', targetLang);
return true;
}

/**
* Fix language switcher links
*/
Expand Down Expand Up @@ -155,8 +211,12 @@
}

const href = link.getAttribute('href');
if (!href) return;
const parsedHref = parseHref(href);
if (!parsedHref || !parsedHref.isSameOrigin) {
return;
}

const { url } = parsedHref;
const linkText = link.textContent.trim().toLowerCase();

// Determine which language this link is for
Expand All @@ -166,13 +226,13 @@
targetLang = 'cn';
} else if (linkText.includes('english') || linkText === 'en') {
targetLang = 'en';
} else if (href === '/' && !link.closest('[class*="footer"]')) {
} else if (url.pathname === '/' && !link.closest('[class*="footer"]')) {
// Links to "/" might be English homepage (but not in footer)
const parent = link.closest('[role="menu"], [role="listbox"], [id*="localization"]');
if (parent) {
targetLang = 'en';
}
} else if (href.startsWith('/zh-CN') || href === '/zh-CN/') {
} else if (url.pathname.startsWith('/zh-CN')) {
targetLang = 'cn';
}

Expand All @@ -181,27 +241,42 @@

// Only fix if switching to a different language
if (targetLang !== currentLang) {
// Calculate the new path
// Calculate the new path and update the href for visual feedback
const newPath = convertPathToLanguage(targetLang);

// Update the href attribute
link.setAttribute('href', newPath);
link.setAttribute('data-language-fixed', 'true');
link.setAttribute('data-target-lang', targetLang);

// Override the click handler
link.addEventListener('click', function(e) {
e.preventDefault();
e.stopPropagation();
if (attachLanguageHandler(link, targetLang)) {
fixedCount++;
}
}
}
});

const newPath = convertPathToLanguage(targetLang);
console.log('[Language Switcher] Navigating from', window.location.pathname, 'to', newPath);
window.location.href = newPath;
}, true);
// Handle dropdown menu items rendered as div/button elements
const dropdownItems = document.querySelectorAll('[id^="localization-select-item-"]');

fixedCount++;
dropdownItems.forEach(item => {
let targetLang = null;
const itemId = item.id || '';

if (itemId.endsWith('-en')) {
targetLang = 'en';
} else if (itemId.endsWith('-cn')) {
targetLang = 'cn';
}

if (!targetLang) {
const text = item.textContent.trim().toLowerCase();
if (text.includes('english') || text === 'en') {
targetLang = 'en';
} else if (text.includes('中文') || text.includes('chinese') || text === 'cn') {
targetLang = 'cn';
}
}

if (targetLang && attachLanguageHandler(item, targetLang)) {
fixedCount++;
}
});

return fixedCount;
Expand Down
Loading