This commit is contained in:
pucketm2016 committed 2026-06-25 12:05:53 -05:00
commit b58e50e423
141 files changed
+28190

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
import { helpCatalog, helpCategories, helpSearch } from '../data/helpCatalog.js';
export function listHelp({ query = '', category = '' } = {}) {
const articles = helpSearch(query, category);
return {
categories: helpCategories(),
total: articles.length,
articles: articles.map((item) => ({
id: item.id,
category: item.category,
title: item.title,
summary: item.summary,
tags: item.tags || []
}))
};
}
export function getHelpArticle(articleId) {
return helpCatalog().find((item) => item.id === articleId) || null;
}