chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:22:34 +08:00
commit 4b22cfda96
9037 changed files with 2363717 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
export function postProcessSidebar(items) {
// Remove items with customProps.hide set to true
return items.filter((item) => item.customProps?.hide !== true);
}
export function apiReferencePrefix(): string {
let prefix = process.env.API_REFERENCE_PREFIX || 'https://mlflow.org/docs/latest/';
if (!prefix.startsWith('http')) {
throw new Error(`API reference prefix must start with http, got ${prefix}`);
}
if (!prefix.endsWith('/')) {
prefix += '/';
}
return prefix;
}